manifest / performance / wp-performance-toolkit
WP Performance Toolkit
Enterprise WordPress performance plugin - bloat removal, asset optimization, critical CSS, lazy loading, query & image hooks
★ 1stars
v1.0.0latest · 4mo ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/midasmoradi/wp-performance-toolkit/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Enterprise-grade WordPress performance plugin with modular optimization layers. Built to demonstrate production-ready performance engineering.
Author: Midas Moradi
Modules
| Module | What it does |
|---|---|
| Remove Bloat | Emojis, wp-embed, dashicons, generator, XML-RPC, jQuery Migrate |
| Asset Optimization | Defer JS, HTML minify, block CSS dequeue, preload hints |
| Critical CSS | Inline critical CSS + async non-critical stylesheets |
| Lazy Loading | Images, iframes, oEmbed; skip first N above-fold images |
| Query Optimization | Revision limits, no_found_rows, heartbeat removal |
| Image Optimization | JPEG quality, CLS dimensions, WebP/AVIF, optimizer hooks |
Architecture
src/
├── App.php # Bootstrap + DI wiring
├── Container/Container.php # Service container
├── Modules/
│ ├── Bloat/BloatRemovalModule.php
│ ├── Assets/AssetOptimizationModule.php
│ ├── CriticalCss/CriticalCssModule.php
│ ├── LazyLoad/LazyLoadModule.php
│ ├── Query/QueryOptimizationModule.php
│ └── Images/ImageOptimizationModule.php
├── Options/PluginOptions.php
├── Admin/SettingsPage.php
└── Security/SecurityManager.php
Requirements
- WordPress 6.4+
- PHP 8.1+
- Composer (recommended)
Installation
git clone https://github.com/midasmoradi/wp-performance-toolkit.git
cd wp-performance-toolkit
composer install --no-dev
Copy to wp-content/plugins/wp-performance-toolkit and activate.
Configure at Settings → Performance Toolkit.
Developer Hooks
// Custom critical CSS per context
add_filter( 'wp_perf_critical_css', function ( $css, $context ) {
return $css . ' .hero{min-height:80vh}';
}, 10, 2 );
// Image optimizer integration
add_filter( 'wp_perf_image_srcset', function ( $sources, $attachment_id ) {
return $sources;
}, 10, 2 );
add_action( 'wp_perf_after_optimize_image', function ( $attachment_id ) {
// Send to external optimizer API
});
Development
composer install
composer phpcs
composer phpcbf
License
GPL v2 or later. See LICENSE.
Releases
1 release.
Tag
Published
v1.0.0
latest
Jun 8, 2026 4mo ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.