wp-performance

Profile WordPress backend performance with WP-CLI and Node.js scripts.

9|1|Updated Sep 10, 2022
One-click install
npx skills add https://github.com/WPdoaction/animal-shelter --skill wp-performance-wpdoaction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wp-performance
Source: https://github.com/WPdoaction/animal-shelter/tree/main/.claude/skills/wp-performance
Command: npx skills add https://github.com/WPdoaction/animal-shelter --skill wp-performance-wpdoaction

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps WordPress users diagnose and improve backend performance by guiding them through profiling, measurement, and targeted fixes using WP-CLI tools, REST headers, and server-side timing techniques (without relying on browser UI).

Core Features & Use Cases

  • Backend-only profiling with WP-CLI (doctor, profile) and Query Monitor data via REST envelopes.
  • Guided measurement workflow from baseline to deep profiling, enabling fast wins and targeted optimizations (autoloaded options, DB queries, cron, and HTTP calls).
  • Use cases include slow admin pages, slow REST endpoints, or heavy cron tasks that require repeatable, scripted diagnostics.

Quick Start

  • Start baseline checks with wp doctor check.
  • Generate a backend profiling report with node skills/wp-performance/scripts/perf_inspect.mjs --path=<path> [--url=<url>].
  • Review guidance in the references directory to identify bottlenecks and recommended fixes.

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?

You can profile WordPress backend performance using WP-CLI commands and the Node.js perf_inspect script. This approach analyzes slow admin screens, REST endpoints, and scheduled tasks via server-timing data and CLI profiling without relying on browser UI.

What's the best way to diagnose slow WordPress admin pages and heavy cron tasks?

The best way to diagnose slow WordPress admin pages and heavy cron tasks is running a guided measurement workflow. Start with baseline checks using wp doctor check, then generate a backend profiling report to identify bottlenecks in autoloaded options, DB queries, and HTTP calls.

Do I need WP-CLI and Node.js to run WordPress performance diagnostics?

Yes, you need both WP-CLI and a Node.js runtime to run these WordPress performance diagnostics. The profiling workflow requires WP-CLI for baseline checks and the Node.js perf_inspect script to generate backend profiling reports, along with access to a WordPress install via --path and --url.

Can I use server-timing headers to analyze WordPress REST endpoint performance?

Yes, you can use server-timing headers and REST envelopes to analyze WordPress REST endpoint performance. The profiling workflow leverages server-side timing data and Query Monitor REST envelopes to identify bottlenecks in slow REST endpoints across dev, staging, and production environments.

What WordPress performance issues can I identify using WP-CLI profiling?

Using WP-CLI profiling, you can identify WordPress performance issues related to autoloaded options, database queries, cron tasks, and HTTP calls. The guided workflow progresses from baseline checks to deep profiling, enabling targeted optimizations for slow admin screens and REST endpoints.

Does WordPress backend profiling work across development, staging, and production environments?

Yes, WordPress backend profiling works across development, staging, and production environments. The CLI-based profiling approach uses scripted diagnostics with WP-CLI and server-timing data, making it repeatable and safe to run in any environment with access to the WordPress install via --path and --url.