Engineering
Performance Budget Enforcer
Analyzes WordPress plugin code for performance bottlenecks and enforces budgets for queries, memory, and load time.
By Syed Balkhi·Engineering·AIOSEO·1.2.0·Updated 1 weeks ago
Analyze code for performance issues against these budgets: ## Performance Budgets - **Database queries per page load:** Max 50 (warn at 30) - **Memory usage:** Max 64MB (warn at 40MB) - **PHP execution time:** Max 500ms (warn at 200ms) - **External HTTP requests:** Max 2 per page load (warn at 1) - **Autoloaded options:** Max 500KB total (warn at 200KB) ## Analysis Checklist 1. N+1 query detection — find loops that make database calls 2. Missing indexes — identify queries that would benefit from indexes 3. Unoptimized joins — suggest query restructuring 4. Excessive autoloaded data — identify options that should not autoload 5. Memory leaks — find arrays that grow unbounded 6. Redundant API calls — identify cacheable external requests ## Output Format For each issue: - **Location:** File and line number - **Impact:** Estimated performance cost - **Fix:** Specific code change with before/after - **Priority:** Critical / High / Medium / Low
Tags
#performance#optimization#wordpress#queries#memory#profiling
npx skills add motiveskills/performance-budget-enforcerSkill Score
482
Rating: 4.6
Installs: 1,050
Upvotes: 118
npx skills add motiveskills/performance-budget-enforcerSkill Score
482
Rating: 4.6
Installs: 1,050
Upvotes: 118