Pivot Performance Toolkit
WordPress Performance Plugin
by Pivot Labs · github.com/pivot-labs/pivot-performance-toolkit · website
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/pivot-labs/pivot-performance-toolkit/archive/refs/heads/master.zip
Pivot Performance Toolkit
A modular WordPress plugin focused on practical, safe-by-default performance optimizations: page caching, file optimization, media/lazy-loading, database cleanup, and Cloudflare integration.
Features
- Disk-based page cache for anonymous GET requests, with TTL and max-size controls
- HTML minification, and inline/external CSS and JavaScript minification
- Script defer support, with safe built-in exclusions
- Native image lazy-loading
- Cloudflare integration: connection test, cache purge, and auto-purge on content update
- Database cleanup tools: revisions, auto-drafts, trashed posts/comments, spam comments, expired transients, table optimization
- Import/export and cache-clearing utilities
See readme.txt for the full WordPress.org plugin description, FAQ, and changelog.
Requirements
- WordPress 6.5+
- PHP 8.2+
Structure
pivot-performance-toolkit.php— plugin bootstrap and lifecycle hooksincludes/Core— plugin bootstrap, settings, lifecycleincludes/Admin— menu router, shared shell, and dedicated admin page classesincludes/Cache— page cache moduleincludes/Optimization— frontend asset optimization moduleincludes/Media— media/content optimization moduleincludes/Database— database cleanup moduleincludes/Integrations— Cloudflare integrationtests/smoke-settings.php— lightweight smoke test for settings sanitization
Building from Source
The shipped plugin includes compiled admin assets (dist/admin.css, dist/admin-js.js) and Composer-vendored, Strauss-prefixed PHP dependencies (includes/Vendor/). To build both from source:
composer install
npm install
npm run build
Re-run composer dump-autoload after adding or renaming classes.
Development
composer lint
composer test:smoke
License
GPL-2.0-or-later. See license.txt.