wp-performance
Skill by WordPress
Profiles and tunes WordPress performance from the backend using WP-CLI, REST headers and database checks. Built for AI agents working on WordPress sites without a browser UI.
Install wp-performance
Built from the published package, never by AI.
git clone --depth 1 https://github.com/WordPress/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/wp-performance ~/.claude/skills/wp-performanceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/WordPress/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/wp-performance ~/.gemini/antigravity-cli/skills/wp-performanceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
WP Performance is an agent skill for investigating and improving the speed of WordPress sites. It works from the backend and does not use a browser UI. It guides the agent through a baseline measurement, then WP-CLI diagnostics such as wp doctor and wp profile, and Query Monitor data read through REST response headers. It covers database queries, autoloaded options, object caching, cron and remote HTTP calls.
The skill checks write permissions before changes. It includes a script, perf_inspect.mjs, that produces a backend report on WP-CLI availability, core version, autoloaded options size and object-cache drop-ins. The agent picks one main bottleneck, then repeats the same measurement to confirm the change. It is aimed at WordPress developers and ops teams who want measured, low-risk fixes on WordPress 7.0+ sites.
Written from the project's SKILL.md and checked against it.
What it can do
- Backend performance reportRuns perf_inspect.mjs to report WP-CLI availability, core version, autoloaded options size and object-cache drop-in.
- WP-CLI doctor checksRuns wp doctor checks for autoload bloat, SAVEQUERIES and WP_DEBUG settings.
- WP-CLI profilingUses wp profile stage, hook and eval to find where request time is spent.
- Query Monitor headlessReads x-qm headers and the qm property from REST responses using _envelope.
- Bottleneck fixesGuides fixes for DB queries, autoloaded options, object cache, remote HTTP calls and cron.
- Safe verificationRepeats the same measurement after a change to confirm the performance difference and unchanged behavior.
What you need
- WordPress 7.0+
- PHP 7.4.0+
- WP-CLI (preferred when available)
- Node.js (to run perf_inspect.mjs)
Try asking
- Profile why my WordPress homepage is slow using WP-CLI.
- Check my WordPress install for autoload bloat and SAVEQUERIES settings.
- Find slow hooks on my WordPress site with wp profile hook.
Good to know
- Backend-only agent that cannot use a browser UI.
- Query Monitor and SAVEQUERIES add overhead and should not run in production without approval.
- Cache flushes should be a last resort.
- wp doctor check needs check names or --all, otherwise it exits with an error.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/wp-performance/SKILL.md, skills/wp-performance/scripts/perf_inspect.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/autoload-options.md810 B -
references/cron.md483 B -
references/database.md619 B -
references/http-api.md458 B
Show all 12 files
-
references/measurement.md1 KB -
references/object-cache.md756 B -
references/query-monitor-headless.md1 KB -
references/server-timing.md639 B -
references/wp-cli-doctor.md1023 B -
references/wp-cli-profile.md858 B -
scripts/perf_inspect.mjs5 KB
Alternatives to wp-performance
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
wp-performance: common questions
Does WP Performance need a browser?
No. The source says the skill assumes the agent cannot use a browser UI, so it relies on WP-CLI, logs and HTTP requests.
Can I use WP Performance on a production site?
Only with explicit approval. Without it, the source says not to install plugins, enable SAVEQUERIES, run load tests or flush caches during traffic.
Which WordPress and PHP versions does it target?
The source says it targets WordPress 7.0+ with PHP 7.4.0+.
How do I install wp-performance?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is wp-performance free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is wp-performance safe to use?
It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to wp-performance?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
