New advertisers: 50% off your first month with code FIRSTMONTHSee slots
wordpress avatar

Wp Performance

Backend-only agent that profiles and optimizes WordPress performance via WP-CLI, headless Query Monitor, and safe verification.

skills.sh installs
7K
GitHub stars
2.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers measurement and profiling with WP-CLI doctor and profile, Server-Timing, and Query Monitor data read from REST headers
  • Includes a deterministic perf_inspect.mjs report for WP-CLI availability, autoloaded options size, and object-cache drop-in presence
  • Guides fixes across database queries, autoloaded options, object caching, cron, and remote HTTP calls, one dominant bottleneck at a time
  • Designed for production-aware work on WordPress 7.0+ where write operations, cache flushes, and SAVEQUERIES need explicit approval

Install

$ npx -y skills add wordpress/agent-skills --skill wp-performance -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WP Performance (backend-only)

When to use

Use this skill when:

  • a WordPress site/page/endpoint is slow (frontend TTFB, admin, REST, WP-Cron)
  • you need a profiling plan and tooling recommendations (WP-CLI profile/doctor, Query Monitor, Xdebug/XHProf, APMs)
  • you’re optimizing DB queries, autoloaded options, object caching, cron tasks, or remote HTTP calls

This skill assumes the agent cannot use a browser UI. Prefer WP-CLI, logs, and HTTP requests.

Inputs required

  • Environment and safety: dev/staging/prod, any restrictions (no writes, no plugin installs).
  • How to target the install:
    • WP root --path=<path>
    • (multisite/site targeting) --url=<url>
  • The performance symptom and scope:
    • which URL/REST route/admin screen
    • when it happens (always vs sporadic; logged-in vs logged-out)

Procedure

0) Guardrails: measure first, avoid risky ops

  1. Confirm whether you may run write operations (plugin installs, config changes, cache flush).
  2. Pick a reproducible target (URL or REST route) and capture a baseline:
    • TTFB/time with curl if possible
    • WP-CLI profiling if available

Read:

  • references/measurement.md

Details

Repository
github.com/wordpress/agent-skills
Categories
PHP & Laravel, Debugging
First seen
Apr 16, 2026

More from wordpress/agent-skills

All 17

Similar to Wp Performance

More PHP & Laravel