diagnostic-wpcli-profile

Profile WordPress load stages and identify slow bootstrap hooks with WP-CLI.

27|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill diagnostic-wpcli-profile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnostic-wpcli-profile
Source: https://github.com/dr-robert-li/cowork-wordpress-expert/tree/main/skills/diagnostic-wpcli-profile
Command: npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill diagnostic-wpcli-profile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill identifies performance bottlenecks in WordPress by analyzing the execution time of different load stages and pinpointing the slowest hooks, helping to optimize site speed.

Core Features & Use Cases

  • Stage Profiling: Measures the time taken by WordPress's bootstrap, main_query, and template stages.
  • Hook Timing: Identifies the top 5 slowest hooks during the bootstrap stage, indicating which plugins or theme functions are causing delays.
  • Use Case: A website is experiencing slow load times. This Skill can be used to determine if the slowness is due to slow plugin initialization (bootstrap stage) or specific slow functions within that initialization process.

Quick Start

Analyze the performance of the WordPress bootstrap stage and identify the top 5 slowest hooks.

Frequently Asked Questions about diagnostic-wpcli-profile

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

FAQPage Schema
How do I diagnose slow WordPress page load times using WP-CLI?

To diagnose slow WordPress page load times, this Skill profiles the execution time of your site's bootstrap, main_query, and template stages using WP-CLI to pinpoint exactly where the delays occur.

How can I find which plugins are causing WordPress bootstrap overhead?

To find plugins causing WordPress bootstrap overhead, it profiles the initialization stage and identifies the top 5 slowest hooks, revealing which specific plugin or theme functions are delaying load times.

Do I need the wp-cli/profile-command package installed to profile WordPress performance?

Yes, you need the wp-cli/profile-command package installed on your server along with WP-CLI to run the profiling commands and measure the load stage execution times.

What is the best way to identify slow hooks during WordPress plugin initialization?

The best way to identify slow hooks during plugin initialization is to profile the bootstrap stage, which measures and ranks the top 5 slowest functions causing your site's performance bottlenecks.

Can I measure the execution time of WordPress template and main query stages?

Yes, you can measure the execution time of WordPress template and main_query stages alongside the bootstrap stage to determine if slow page loads stem from theme rendering or database queries.