wp-performance

Diagnose WordPress backend performance bottlenecks using WP-CLI profiling and targeted diagnostics.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/MrGKanev/agent-skills --skill wp-performance-mrgkanev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-performance
Source: https://github.com/MrGKanev/agent-skills/tree/main/skills/wp-performance
Command: npx skills add https://github.com/MrGKanev/agent-skills --skill wp-performance-mrgkanev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

WordPress sites often suffer backend performance issues that impact TTFB and user experience. This skill provides a deterministic, backend-only approach to profiling and measuring performance without a browser UI, enabling precise diagnosis and fixes.

Core Features & Use Cases

  • WP-CLI profiling: uses wp profile and wp doctor to surface bottlenecks.
  • Headless data via REST headers: leverages Query Monitor's envelope data when available.
  • Targeted bottleneck fixes: guides optimization for DB queries, autoloaded options, object caching, cron tasks, and external HTTP calls.
  • Use Case: imagine a slow REST endpoint; run the profiler to identify slow hooks and propose changes.

Quick Start

Run the performance inspector against your WordPress install: node skills/wp-performance/scripts/perf_inspect.mjs --path=<path-to-wp> --url=<site-url>

Frequently Asked Questions about wp-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I profile WordPress backend performance bottlenecks without a browser UI?

Profile WordPress backend performance bottlenecks using deterministic profiling via WP-CLI commands and headless Query Monitor REST headers to diagnose slow pages, admin screens, or WP-Cron tasks without requiring a browser UI.

What is the best way to diagnose slow WordPress REST endpoints and admin screens?

Diagnose slow WordPress REST endpoints and admin screens by running the performance inspector script to leverage WP-CLI profiling and surface slow hooks, DB queries, and external HTTP calls for targeted fixes.

Can I use WP-CLI to check autoloaded options and object caching issues?

Yes, you can use WP-CLI to check autoloaded options and object caching issues by running wp profile and wp doctor checks, which surface specific backend bottlenecks impacting your site's time to first byte.

Does WordPress profiling work across dev, staging, and production environments?

WordPress profiling works across dev, staging, and production environments by executing deterministic backend diagnostics that measure server-timing data and query performance without relying on browser-based tools.

How do I optimize WordPress DB queries and external HTTP calls identified during profiling?

Optimize WordPress DB queries and external HTTP calls by following the targeted bottleneck fixes guided by the profiling output, which identifies specific slow hooks and inefficient autoloaded options to refactor.