All guides
No guide matches your search.
Performance
Find out why a WordPress page or job is slow, based on measurements. The skill ranks causes by how much of the request they use and checks that a fix keeps the results the same.
On this page
When to use it
Use this skill for a journey that is slow or has to scale, and bring some workload context. It covers slow queries, N+1 loads (one query repeated for every item), autoloaded options, object and page cache correctness, cron and remote calls, hook cost and Core Web Vitals. An ordinary code review does not select this skill.
Other skills for nearby topics
- Security of an endpoint:
wp-devkit-security-review. - WooCommerce HPOS order APIs:
wp-devkit-woocommerce-dev. - WP-CLI batch runbooks:
wp-devkit-wpcli-and-ops. - Schema backfills:
wp-devkit-migration-upgrade-review. - Accessibility of loading states:
wp-devkit-wcag-review.
Run a review in Claude
With the plugin loaded, start a read-only review of one bounded target:
/wp-devkit:performance-review <target-path>The short form /wp-devkit:performance asks for a quick scan.
Run a review in Codex, ChatGPT or Antigravity
Name the installed skill and keep the request small. Replace the target with your files or the journey you care about.
$wp-devkit-performance-review
Review the target without editing files.
Read the project instructions and the skill's engineering contract first.
Separate confirmed findings from candidates and state the evidence and checks you could not run.The engineering contract is the set of rules every DevKit skill follows, such as how severity is graded and what counts as evidence.
Reference files
The agent loads only the file that matches your task:
profiling-and-tooling.mdis read before any measuring. It covers Query Monitor,wp profile,SAVEQUERIES, EXPLAIN, load tools and safe sampling in production.queries-and-options.mdapplies to slow queries and database load. It coversWP_Queryarguments, meta and taxonomy queries, N+1, autoload and options, indexes, HPOS and large tables.performance-cache-coordination.mdapplies to stale or wrong cached data and to stampedes, where many requests rebuild the same cache at once. It covers the object cache, transients, page cache privacy, invalidation, locks and counters.background-work-and-http.mdapplies when work runs on the request path or jobs pile up. It covers WP-Cron, Action Scheduler, remote HTTP, admin-ajax, Heartbeat and hook cost.frontend-performance.mdapplies to browser metrics. It covers LCP, INP, CLS, the WordPress asset APIs, images, fonts and speculative loading.performance-review-workbook.mdholds symptom triage, worked decisions, look-alikes that are not defects, and verification steps.
How a review runs
- The agent defines the journey and the type of symptom: slow server response (TTFB), a slow query, memory or timeouts, stale or wrong cached data, a background backlog, or slow browser metrics. Each type needs different evidence.
- It sets up the measurement. Before and after runs use the same build, dataset, user and cache state. There are enough repetitions to see variance, and cold and warm cache runs are kept apart.
- It locates the cost. It starts with the database (query count, duplicates, slow statements, EXPLAIN), then hooks and filters, remote HTTP, cache miss rate and memory, and last the frontend (network waterfall, long tasks, layout shifts).
- It judges the cause against the topic references and loads only the ones that apply.
- It checks that a proposed change keeps the result contract: filters, order, visibility, pagination, totals, privacy and multisite scope. A faster query that changes the results is not an optimization.
- It ranks findings by their measured share of the request, not by how suspicious the code looks. A gain is estimated only with a stated basis, and a speedup is never invented from reading source. The workbook holds the severity rules, the finding template, false positives and acceptance checks.
What you get back
The report leads with the verdict, the journey and the basis of the measurement. Each finding lists its severity, file:line, the trigger (request or data volume), the measured evidence (numbers, tool and run conditions), the root cause, the expected effect and its basis, a minimal fix, and a regression or budget check. Hypotheses and missing measurements stay separate.
The report ends with executed checks (command and exit status), unexecuted checks such as a persistent cache, production-size data or field data, and the remaining risk. Implementation work adds before and after numbers on the same dataset. A pass in a lab run does not prove an improvement for real visitors.
Note
Reviews are read-only. A clean review covers the code that was inspected and is not a certification. Ask for implementation as a separate, bounded task with a regression check.
Where to go next
Use review to fix to turn findings into a bounded change. Use Doctor and reports for environment checks and evidence tooling.
Was this page helpful?