AI Performance Doctor
AI-powered performance analysis with actionable recommendations and automated fixes for Core Web Vitals
Prerequisites Required
Before using AI Performance Doctor, you must configure:
- PageSpeed Insights API Key - Get your free API key from Google Developers Console
- AI Provider Configuration - Set up your AI provider (OpenAI, Gemini, or Claude) in AI Settings
Overview
The AI Performance Doctor analyzes your website's Core Web Vitals and PageSpeed Insights data using advanced AI to provide specific, actionable recommendations. Unlike generic performance tools, it understands your site's unique context and provides tailored solutions with automated fix capabilities for common issues.
AI-Powered Analysis
Intelligent analysis using your configured AI provider (Gemini, OpenAI, or Claude)
Auto-Fix Capability
One-click fixes for common performance issues using existing ProRank modules
Prioritized Actions
Recommendations ranked by impact with clear implementation steps
Setup Guide
Get PageSpeed Insights API Key
- Visit the Google Cloud Console
- Create a new project or select an existing one
- Enable the PageSpeed Insights API
- Create credentials (API Key)
- Optionally restrict the key to your domain for security
Configure PageSpeed API Key in ProRank
- Navigate to ProRank SEO → Analytics
- Click on the Integrations tab
- Find the PageSpeed Insights section
- Paste your API key
- Click Save Settings
Configure AI Provider
- Navigate to ProRank SEO → AI Tools
- Select your preferred AI provider (Gemini, OpenAI, or Claude)
- Enter your AI provider API key
- Select the model (optional - uses optimal defaults)
- Click Save Settings
Recommended AI Providers:
- Google Gemini - Free tier available, excellent for performance analysis
- OpenAI GPT-4 - Most advanced, detailed recommendations
- Claude 3 - Excellent technical understanding
How to Use
Running Performance Analysis
- 1
Navigate to ProRank SEO → Performance
- 2
Find the AI Performance Doctor section
- 3
Click Start Analysis
The system will:
- Fetch your current Core Web Vitals data
- Run PageSpeed Insights analysis
- Analyze the data with AI
- Generate prioritized recommendations
- 4
Review recommendations and apply fixes
Understanding the Results
Performance Score Overview
Excellent performance, minor optimizations only
Moderate issues affecting user experience
Core Web Vitals Metrics
- LCP (Largest Contentful Paint) - Loading performance
Target: < 2.5 seconds
- INP (Interaction to Next Paint) - Interactivity
Target: < 200 milliseconds
- CLS (Cumulative Layout Shift) - Visual stability
Target: < 0.1
Available Auto-Fixes
AI Performance Doctor can automatically apply these optimizations using ProRank's existing modules:
Lazy Loading
Automatically enables lazy loading for images and iframes to improve initial page load
- Native browser lazy loading
- Excludes above-the-fold images
Image Optimization
Queues unoptimized images for compression and format conversion
- WebP conversion
- Responsive image generation
Database Cleanup
Removes database bloat to improve query performance
- Post revisions cleanup
- Expired transients removal
- Table optimization
JavaScript Optimization
Defers non-critical JavaScript to reduce blocking time
- Script deferring
- jQuery Migrate removal
CSS Optimization
Optimizes CSS delivery for faster rendering
- Critical CSS inlining
- Unused CSS removal
Caching Setup
Enables page and browser caching for faster repeat visits
- Page cache activation
- Browser cache headers
Best Practices
Testing Recommendations
- Always test on a staging site first
- Create a backup before applying auto-fixes
- Monitor Core Web Vitals after changes
- Allow 28 days for Google to update field data
Performance Tips
- Run analysis during low-traffic periods for accurate results
- Focus on high-priority recommendations first
- Re-analyze after each major change
- Consider mobile performance as the priority
Troubleshooting
Common Issues
"PageSpeed Insights API key is required"
The PageSpeed API key is not configured.
Solution: Go to Analytics → Integrations and add your PageSpeed Insights API key
"AI is not configured"
No AI provider is set up.
Solution: Go to AI Tools and configure your preferred AI provider with API key
"Failed to complete analysis"
The analysis couldn't complete due to API issues.
Solutions:
- Check your API key quotas
- Verify API keys are valid
- Check site connectivity
- Try again after a few minutes
API Information
PageSpeed Insights API
- Free Quota: 25,000 queries/day
- Rate Limit: 400 queries/100 seconds
AI Provider Costs
- Gemini: Free tier available (60 requests/minute)
- OpenAI: ~$0.02 per analysis (GPT-4)
- Claude: ~$0.015 per analysis