Skills
Skill 12 of 20
Use when investigating or improving WordPress performance (backend-only agent): profiling and measurement (WP-CLI profile/doctor, Server-Timing, Query Monitor via REST headers)…
3 minutes · 724 words · 15 sections
Install
npx skills add WordPress/agent-skills --skill wp-performancenpx skills add WordPress/agent-skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Use this skill when:
This skill assumes the agent cannot use a browser UI. Prefer WP-CLI, logs, and HTTP requests.
--path=<path>--url=<url>curl if possibleRead:
references/measurement.mdRun:
node skills/wp-performance/scripts/perf_inspect.mjs --path=<path> [--url=<url>]This detects:
wp doctor / wp profile are availableIf you have WP-CLI access, prefer:
wp doctor check --all (add --spotlight to show only warnings and errors)wp doctor check autoload-options-size constant-savequeries-falsy constant-wp-debug-falsywp doctor check with no check names and no --all exits with an error instead of running anything.
It catches common production foot-guns (autoload bloat, SAVEQUERIES/WP_DEBUG, plugin counts, updates).
Read:
references/wp-cli-doctor.mdPreferred order:
wp profile stage to see where time goes (bootstrap/main_query/template).wp profile hook (optionally with --url=) to find slow hooks/callbacks.wp profile eval for targeted code paths.Read:
references/wp-cli-profile.mdQuery Monitor is normally UI-driven, but it can be used headlessly via REST API response headers and _envelope responses:
x-qm-*) and/or the qm property when using ?_envelope.Read:
references/query-monitor-headless.mdUse the profile output to pick one primary bottleneck category:
references/database.mdreferences/autoload-options.mdreferences/object-cache.mdreferences/http-api.mdreferences/cron.mdwp profile / wp doctor / REST request.Be aware of these 6.9 changes when profiling:
On-demand CSS for classic themes:
Block themes with no render-blocking resources:
Inline CSS limit increased:
wp doctor check --all is clean (or improved) when applicable.--url mismatch), caches masked results, or opcode cache is staleSAVEQUERIES/Query Monitor causes overhead:
SAVEQUERIES, run load tests, or flush caches during trafficUse when investigating or improving WordPress performance (backend-only agent): profiling and measurement (WP-CLI profile/doctor, Server-Timing, Query Monitor via REST headers), database/query optimization, autoloaded options, object caching, cron, HTTP API calls, and safe verification.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
skills/wp-performance/SKILL.mdtrunk, last pushed 9 November 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:/WordPress/agent-skills.md, and each skill at its own .md URL.11 files · 12 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 12.
Documentation the agent loads on demand, rather than up front.
Executable code the skill can run.