All skills
automattic avatar

/wp-performance

@bfadcb7 official
by automatticautomattic/agent-skills211 stars
37

Use 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.

Use this Skill: https://skilld.dev/gh/automattic/agent-skills/wp-performance

This session only. Nothing lands on disk.

referencesautoload-options.md

≈203 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Autoloaded options

Autoloaded options are loaded on every request, so large autoload payloads can hurt performance site-wide.

Quick checks

  • Total autoload bytes:
    • wp option list --autoload=on --format=total_bytes
  • Find biggest autoloaded options:
    • wp option list --autoload=on --fields=option_name,size_bytes | sort -n -k 2 | tail

Docs:

Fix patterns

  • Stop autoloading large blobs:
    • store large data in non-autoload options (autoload=off)
    • move large computed data to transients/object cache
  • Remove stale options left behind by removed plugins/themes (careful: confirm usage before deleting).

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides a specialized set of tools for auditing and improving WordPress backend performance. It utilizes a custom Node.js inspection script and standardized WP-CLI commands to profile database queries, cron jobs, and autoloaded options. The skill follows security best practices for environment interaction and documentation.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    12/12 files flagged

Signed by skilld at bfadcb7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 months ago.

Dormantupdated 9 months ago
Other metadata
compatibility
Targets WordPress 6.9+ (PHP 7.2.24+). Backend-only agent; prefers WP-CLI (doctor/profile) when available.

README badge

README badge for automattic/agent-skills/wp-performance

Diagnoses and optimizes WordPress backend performance via WP-CLI profiling, Query Monitor headless API, and targeted fixes for database queries, autoloaded options, object caching, cron tasks, and HTTP calls. Targets WordPress 6.9+ on backend-only agents without browser access.

Generated from the current SKILL.md.

Does this skill work with frontend performance (Core Web Vitals, CSS/JS optimization)?
No. This skill is backend-only and focuses on server-side bottlenecks like database queries, autoloaded options, object caching, and cron tasks. It does not handle frontend assets, rendering, or browser-based metrics.
What WordPress versions and PHP does this support?
WordPress 6.9+ with PHP 7.2.24+. The skill prefers WP-CLI (doctor/profile) when available.
Can I use this skill in production?
Only with explicit approval and caution. The skill avoids risky operations by default (plugin installs, SAVEQUERIES, cache flushes), but you must confirm environment restrictions (dev/staging/prod, write permissions) before running diagnostics.
What tools does this skill use to profile WordPress?
Primarily WP-CLI commands (wp doctor, wp profile), Query Monitor via REST headers, and server-side measurement with curl and HTTP response headers. It does not require a browser.
Does this skill handle multisite setups?
Yes. The skill supports multisite targeting via the --url parameter when running WP-CLI commands.

Generated from the current SKILL.md. These answers refresh after source changes.