bartekmis avatar

Wordpress Performance Best Practices

This is a structured ruleset for keeping WordPress code performant, with 34 rules across database queries, caching, assets, and theme development. It's designed for code review and generation, triggering when you're working with WP_Query, hooks, or REST API implementations. The rules are prioritized by impact (database and caching are marked critical, things like cron optimization are lower), which is smart because not all WordPress performance issues matter equally. Each rule has a prefix system and points to detailed markdown files with bad/good code examples. If you're building plugins or themes and want Claude to catch performance antipatterns like post__not_in or hardcoded script tags, this gives it a concrete checklist to work from.

skills.sh installs
518
GitHub stars
10
last updated
Jul 14, 2026

Install

$ npx -y skills add bartekmis/wordpress-performance-best-practises --skill wordpress-performance-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

WordPress Performance Best Practices

Comprehensive performance optimization guide for WordPress development, designed for AI agents and LLMs. Contains 34 rules across 8 categories, prioritized by impact to guide code review and generation.

When to Apply

Reference these guidelines when:

  • Writing WordPress plugins or themes
  • Working with WP_Query or database operations
  • Implementing caching (transients, object cache)
  • Optimizing asset loading (scripts, styles)
  • Reviewing WordPress code for performance issues
  • Working with REST API or AJAX handlers

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Database OptimizationCRITICALdb-
2Caching StrategiesCRITICALcache-
3Asset ManagementHIGHasset-
4Theme PerformanceHIGHtheme-
5Plugin ArchitectureMEDIUM-HIGHplugin-
6Media OptimizationMEDIUMmedia-
7API and AJAXMEDIUMapi-
8Advanced PatternsLOW-MEDIUMadvanced-

Quick Reference

1. Database Optimization (CRITICAL)

Sponsors

Details

Repository
github.com/bartekmis/wordpress-performance-best-practises
Categories
Debugging, PHP & Laravel
First seen
Jun 3, 2026

Recommended

More Debugging
1davila7 avatarweb-performance-optimizationdavila7/claude-code-templatesOptimize website and web application performance including loading speed, Core Web Vitals, bundle size, caching strategies, and runtime performance518skills.sh installs
2longbridge avatarlongbridge-performance-attributionlongbridge/skillsPortfolio performance attribution via Longbridge Securities — Brinson industry attribution (allocation / selection / interaction effects), factor alpha/beta dec497skills.sh installs
3aj-geddes avatarweb-performance-optimizationaj-geddes/useful-ai-promptsOptimize web application performance using code splitting, lazy loading, caching, compression, and monitoring. Use when improving Core Web Vitals and user exper487skills.sh installs
4bobmatnyc avatarweb-performance-optimizationbobmatnyc/claude-mpm-skillsOptimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques469skills.sh installs
5manutej avatarperformance-benchmark-specialistmanutej/luxor-claude-marketplacePerformance benchmarking expertise for shell tools, covering benchmark design, statistical analysis (min/max/mean/median/stddev), performance targets (<100ms, >457skills.sh installs
6nansen-ai avatarnansen-wallet-profilernansen-ai/nansen-cliWallet profiler — balance, PnL, labels, transactions, counterparties, related wallets, batch, trace, compare. Use when analysing a specific wallet address or co413skills.sh installs