manifest / performance / wp-cinch
Cinch
WordPress plugin that dequeues unused assets, concatenates per-page CSS + JS, minifies through the best engine available on the host (esbuild, then matthiasmullie/minify, then a regex fallback), and writes brotli + gzip siblings for the edge. No build step.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/rennerdo30/wp-cinch/archive/refs/heads/main.zipFrom the readme
Cinch
Cut request count, drop unused bytes, and ship smaller files — without a build step.
A surgical CSS + JS optimizer for WordPress. Dequeues what shouldn't load, concatenates what should, minifies through the best engine on the host, and pre-compresses to .br + .gz on disk so the edge cache hits stay cheap.
What it does (v0.2)
Four layers, each independently toggleable:
1. Dequeue — strips dashicons, admin-bar, emoji, optionally the block library, and any operator-supplied handle list. Runs on wpenqueuescripts priority 999. Anonymous-only variants gate on isuserloggedin().
2. Per-page concat — groups WPStyles::$queue + WPScripts::$queue into media / location / strategy buckets, walks dependencies in resolved order, fuses each bucket into a single bundle file. Cache key is sha1(handle versions + source mtimes + source sizes + inline data).
3. Minifier chain — esbuild → matthiasmullie/minify → regex fallback. The chain picks the first engine that's available + supports the type; on exception or empty output, falls through. Regex is the always-available terminator.
4. Pre-compression — every cached file gets a .br (quality 11) + .gz (level 9) sibling on disk. A self-written