Skip to content
bartekmis avatar

Wordpress Performance Best Practices

WordPress performance guidelines covering 34 prioritized rules for writing, reviewing, and refactoring plugin and theme PHP code.

CCM score
58 of 100
skills.sh installs
758
GitHub stars
13
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers 8 categories ranked by impact: database, caching, assets, theme, plugin architecture, media, API and AJAX, and advanced patterns
  • Includes rules on $wpdb->prepare(), WP_Query limits, transient and object cache usage, and wp_enqueue_script and wp_enqueue_style
  • Provides an incorrect and correct code example for each rule, plus a _sections.md index and a compiled AGENTS.md
  • Designed for agents and LLMs performing code review or generation on WordPress projects that involve queries, caching, hooks, or the REST API

Install

$ npx -y skills add bartekmis/wordpress-performance-best-practices --skill wordpress-performance-best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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)

Details

Repository
github.com/bartekmis/wordpress-performance-best-practices
Categories
PHP & Laravel, Code Review & Quality
First seen
Jun 3, 2026

Similar to Wordpress Performance Best Practices

More PHP & Laravel