Analysis Toolswordpress_analyze_performance

wordpress_analyze_performance

Analyze page performance including load time, image optimization, CSS/JS optimization, caching, and plugin performance impact.

wordpress_analyze_performance

Analyze page performance metrics including load time, image optimization, CSS/JS optimization, caching, and plugin performance impact.

Parameters

1 parameter, 1 required.

NameTypeRequiredWhat it is
page_idnumberyesPage ID to analyze

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_analyze_performance",
  "arguments": {
    "page_id": 123
  }
}

Response

{
  "success": true,
  "summary": {
    "grade": "B",
    "score": 82
  },
  "opportunities": [
    {
      "priority": "high",
      "category": "images",
      "message": "Serve images in next-gen formats",
      "details": "Convert JPEG/PNG to WebP/AVIF for faster loading"
    }
  ],
  "metrics": {
    "estimated_load_time_ms": 2100,
    "total_page_weight_kb": 1860,
    "image_weight_kb": 980,
    "js_weight_kb": 520,
    "css_weight_kb": 160
  }
}

What it changes

Nothing. It only reads, so there is nothing to approve and nothing to undo.

How long it takes

A typical call takes about 1.9 seconds. 19 in 20 finish within 3.6 seconds. Measured on real sites over the last week, so it includes the site's own hosting.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Full Example

Prompt: "Analyze performance on page 42"

Response:

{
  "success": true,
  "summary": {
    "grade": "C",
    "score": 68
  },
  "opportunities": [
    {
      "priority": "high",
      "category": "images",
      "message": "Large hero image is unoptimized",
      "details": "Compress and resize hero image; add responsive sizes"
    },
    {
      "priority": "medium",
      "category": "scripts",
      "message": "Too much JS on initial load",
      "details": "Delay non-critical scripts and remove unused plugins"
    }
  ]
}

Notes

  • Read-only tool - doesn’t modify content
  • Use it as the first step before a performance fix sprint

Example Prompts

  • "Analyze performance of my homepage"
  • "Check speed issues on page 42"
  • "What are the biggest performance problems on the services page?"