Wordpress pagespeed diagnosis

From lightspeedwp/.github · View interactive version

Wordpress pagespeed diagnosis is an AI agent skill from the GitHub repository lightspeedwp/.github. diagnose wordpress-specific causes behind pagespeed, lighthouse, core web vitals, or web performance audit findings. use when the user provides pagespeed results, lighthouse diagnostics, devtools traces, waterfall notes, asset urls, screenshots, audit exports, or asks why a wordpress site is slow. f

How to use this skill

Skill file

WordPress PageSpeed Diagnosis

Purpose

Diagnose WordPress-specific performance causes during a PageSpeed, Lighthouse, Core Web Vitals, or waterfall-based audit. Use this skill to add a WordPress layer to the audit, not to replace general performance analysis.

When to Use the Skill

Use this skill when the task involves a WordPress site and any of these inputs are available:

Do not use this skill for generic non-WordPress performance advice unless the user asks for a WordPress-specific interpretation.

Core Workflow

  1. Identify the measured performance issue from the evidence provided.
  2. Separate the evidence into asset, page, runtime, image, font, third-party, and server categories.
  3. Map evidence to likely WordPress sources only when the evidence supports that mapping.
  4. State confidence clearly: high, medium, or low.
  5. Recommend a practical WordPress remediation path with a validation step.
  6. Avoid claiming that a WordPress cause is universal, guaranteed, or proven unless the audit evidence directly proves it.

Common WordPress Performance Patterns

Plugin and Theme Asset Bloat

Look for:

Possible WordPress causes:

Recommended paths:

Unused CSS

Look for:

Possible WordPress causes:

Recommended paths:

Unused JavaScript

Look for:

Possible WordPress causes:

Recommended paths:

Render-Blocking Assets

Look for:

Possible WordPress causes:

Recommended paths:

Fonts

Look for:

Possible WordPress causes:

Recommended paths:

Images

Look for:

Possible WordPress causes:

Recommended paths:

Third-Party Scripts

Look for:

Possible WordPress causes:

Recommended paths:

Evidence Rules

Always separate:

Use high confidence only when the evidence directly names or clearly identifies the source, such as a plugin path, theme path, script handle, third-party domain, coverage result, or waterfall entry.

Use medium confidence when the source is strongly implied but not confirmed, such as a large page-builder bundle on a page with visible builder markup.

Use low confidence when the issue is plausible but not proven, such as assuming a plugin causes unused CSS without asset paths or coverage data.

Do not:

Remediation Guidance

Prioritise fixes in this order when evidence allows:

  1. High-impact, low-risk changes: image sizing/compression, duplicate script removal, font weight reduction, obvious unused feature assets, plugin cleanup.
  2. Conditional loading: route, template, post type, block presence, WooCommerce context, or interaction-based loading.
  3. Render path improvements: critical CSS, defer non-critical JavaScript, reduce blocking font requests, preload only critical assets.
  4. Structural theme or plugin work: bundle splitting, component-level assets, replacing heavy plugins, removing page-builder dependency, refactoring templates.
  5. Infrastructure changes: caching, CDN, object cache, PHP or database tuning only when TTFB, backend timing, or server evidence supports it.

For each recommendation, include a validation step. Examples:

Output Format for WordPress-Specific Findings

Use this structure when producing WordPress-specific findings:

## WordPress Performance Diagnosis

### Summary
- Main issue:
- Most likely WordPress source:
- Confidence:
- Highest-value next step:

### Findings

#### 1. [Finding title]
- Evidence observed: [specific metric, diagnostic, URL, file path, coverage result, or waterfall signal]
- WordPress interpretation: [plugin/theme/core/content/media/third-party explanation, phrased as likely unless proven]
- Confidence: [High / Medium / Low]
- Likely source: [plugin, theme, WordPress core, media library, third-party, content/editor pattern, unknown]
- Remediation path: [practical WordPress-specific action]
- Validation step: [how to prove the change worked and did not break key flows]
- Risk/notes: [what to retest or what remains unconfirmed]

### Evidence Gaps
- [missing evidence needed to confirm low-confidence items]

### Recommended Fix Order
1. [quick win]
2. [medium effort]
3. [larger engineering/theme/plugin work]

Keep the wording client-safe when the output is for a stakeholder. Use technical wording when the output is for developers.

_Docs signed by 🤖 Copilot for LightSpeedWP – always fresh!_

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.