woocommerce-performance

woocommerce-performance is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 26 tokens per session (2,634 once invoked), scanned B, original, MIT.

A guide to speeding up WooCommerce, the e-commerce system for WordPress. It focuses on slow database queries, temporary data, server-side caching, and routine cleanup.

In plain words
What is it for?
Use it to investigate performance problems, optimize product and order queries, add Redis or Memcached caching, and clean up stored WooCommerce data.
Why use it?
It helps find and remove common causes of slow store pages, high server load, and sluggish cart or checkout requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit Use it to investigate performance problems, optimize product and order queries, add Redis or Memcached caching, and clean up stored WooCommerce data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill woocommerce-performance
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for woocommerce-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for woocommerce-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/woocommerce-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,634 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.02634
Opus 5 $0.00013 $0.01317
Sonnet 5 $0.00005 $0.00527
Haiku 4.5 $0.00003 $0.00263

Measured 8d ago against content hash 4ce640df8005, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

woocommerce-performance scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install redis-server
skills/platform-woocommerce/woocommerce-performance/SKILL.md · 298 lines

How it starts

The opening of the file, as written. The whole thing — 298 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WooCommerce Performance

Overview

WooCommerce performance problems typically stem from five sources: expensive product queries with un-indexed meta tables, unbounded AJAX cart/checkout calls, missing persistent object cache, bloated wp_options autoload data, and a growing wp_woocommerce_sessions and order table without cleanup. This skill covers profiling, query optimization, Redis object caching, and scheduled maintenance routines.

When to Use This Skill

  • When store pages are slow to load under moderate traffic (hundreds of concurrent users)
  • When server CPU spikes during WooCommerce AJAX calls (add-to-cart, shipping calculation)
  • When MySQL query time shows in New Relic or Query Monitor as the primary bottleneck
  • When the wp_options table autoload size exceeds 1–2 MB
  • When wp_woocommerce_sessions has millions of rows slowing down session lookups
  • When implementing Redis or Memcached to reduce MySQL load on a high-traffic store

Core Instructions

  1. Profile first with Query Monitor

    Install Query Monitor plugin to identify slow queries in the admin and frontend:

    # Via WP-CLI
    wp plugin install query-monitor --activate
    

    Focus on:

    • Queries per page load (> 50 is a concern)
    • Duplicate queries (same query run multiple times)
    • Slow queries (> 100ms individual queries)
    • Large result sets (queries returning thousands of rows)

    For production profiling, enable MySQL slow query log:

    SET GLOBAL slow_query_log = 'ON';
    SET GLOBAL long_query_time = 0.5;
    SET GLOBAL slow_query_log_file = '/var/log/mysql/slow.log';
    
  2. Enable Redis persistent object cache

    The single highest-impact optimization for WooCommerce. Without it, every page load re-fetches the same product data from MySQL:

    # Install Redis server
    sudo apt install redis-server
    
    # Install the Redis Object Cache plugin
    wp plugin install redis-cache --activate
    wp redis enable
    

    Configure in wp-config.php:

Read the full file on GitHub · 298 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 298 lines · 26 tokens per session scan B 4ce640df8005

Subscribe to this mod's changes

woocommerce-performance is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 26 tokens to every session and 2,634 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.