Store speed audit
Find the few things that make a store slow (usually images, apps/plugins and third-party tags), fix them in order of impact, and confirm with field data.
Paths below are relative to this skill's folder (in Claude Code: ${CLAUDE_SKILL_DIR}).
When to use
- "My store is slow", "PageSpeed score is 30 on mobile", "LCP/INP/CLS failing in Search Console"
- After installing several plugins/apps or a new theme
- Before a sale or ad campaign
- Bulk product photo uploads that look heavy
When not to use
- Server-level tuning (PHP workers, MySQL, object cache, nginx): that is hosting work; the checklist points to it but this skill does not tune servers
- Checkout friction that is not about speed: use
checkout-cro-audit - Rewriting a theme from scratch
Workflow
- Measure first. Ask for (or have the user run) PageSpeed Insights on the home page, a collection/category page and a product page, mobile. Record field data (CrUX: LCP, INP, CLS) separately from the lab score. Targets: LCP <= 2.5 s, INP <= 200 ms, CLS <= 0.1. Note the LCP element PageSpeed names (usually the hero or main product image).
- Scan saved pages (read-only). Save each page's HTML (
curl -sL -A 'Mozilla/5.0' URL -o product.htmlor browser Save page, HTML only) and run:
It lists files per WordPress plugin and per Shopify app extension so you can see which ones load on pages that do not need them, plus third-party hosts, render-blocking scripts, jQuery duplicates, cart fragments, fonts, inline JS, image attributes and DOM size.python3 scripts/page_assets.py product.html --site-host shop.example.com python3 scripts/page_assets.py home.html --site-host shop.example.com --json > home-assets.json - Scan product images (read-only) from a local copy (WordPress: download
wp-content/uploadsor a sample year/month folder; Shopify: product images from the admin or a CSV of image URLs downloaded by the user):
WordPress generated sizes (python3 scripts/image_weight.py ./uploads --max-kb 250 --max-px 2048 python3 scripts/image_weight.py ./product-photos --json > images.json-300x300.jpg) are skipped unless--include-thumbnails. Exit 1 when findings at or above--fail-on(medium) exist. The script never modifies files. - Walk the bloat checklist in references/bloat-checklist.md (WooCommerce and Shopify sections) for what the scans cannot see: unused plugins/apps, leftover app code after uninstall, autoloaded options, sliders and page builders, tag manager containers.
- Prioritise by impact on the failing metric: LCP (hero image weight, render-blocking CSS/JS, slow server), INP (third-party scripts, heavy JS from apps/page builders), CLS (images without dimensions, late banners, font swaps). Image fixes and removing unused apps/plugins usually come first. Fix recipes: references/fixes.md.
- Propose, do not apply. Deactivating plugins/apps, theme edits and image re-compression are changes to the live store: list them with expected impact and risk, get the user's confirmation, and recommend a staging site or duplicate theme plus a backup of original images. Never delete originals.
- Verify by re-running PageSpeed (lab) right away and checking field data after 28 days.
Output
Product page (mobile): LCP 4.8 s (hero image), INP 310 ms, CLS 0.18
1. Hero image 1.9 MB, 4000x4000 -> 1600px WebP ~180 KB; remove loading="lazy" from it (LCP)
2. 17 plugins load assets here; revslider, popup-maker, instagram-feed are not used on product
pages -> load conditionally or remove (LCP/INP)
3. jQuery loaded twice (theme + revslider) (INP)
4. 8 third-party hosts: Hotjar + Clarity both installed, Tawk.to on every page (INP)
5. 20 product thumbnails without width/height (CLS)
Images folder: 1,240 files, 610 MB, est. saving 420 MB; 85 opaque PNG photos.