Performance Optimisation helps you speed up your site with cache management, JavaScript and CSS minification, image conversion (WebP and AVIF), lazy loading, preload hints, and a modern admin UI. It is designed to stay off by default for aggressive options (defer/delay JS, WooCommerce asset removal, server rules) so you can enable features gradually and test as you go—similar to how you would tune Autoptimize or a caching stack, but with a focused, dashboard-first workflow.
Why use this plugin?
- Clear scope: One place for cache stats, file optimisation, images, preload, and tools—without bundling unrelated features.
- Safety-first UX: Advanced toggles show warnings; WooCommerce-related options remind you to test cart and checkout.
- Core Web Vitals & PageSpeed: Lazy loading, minification, preconnect/prefetch, and image formats help real-world metrics—not just a higher score on a single lab test.
Features:
- Dashboard with an overview of cache, JavaScript, CSS, and image optimisation status.
- Cache management tools, including size display and a “Clear Cache” button.
- JavaScript & CSS Optimization: Minify, combine, defer/delay (opt-in), and exclude specific files.
- Core Tweaks: Safely disable Core bloat (Emojis, Embeds, Dashicons, XML-RPC, Heartbeat API).
- Image optimization: Convert images to WebP and AVIF formats.
- Preload settings for cache, fonts, DNS, and images.
- Advanced lazy loading options.
- Database Optimization: Clean database bloat manually or schedule automated cleanups (Daily/Weekly/Monthly) with granular control over post revisions.
- Enterprise Redis Support: High-availability Object Cache with Sentinel, Cluster, and TLS/SSL support.
- Performance Monitor: High-precision local telemetry for Core Web Vitals and network diagnostics.
- System Info Dashboard: Real-time environment diagnostic tool for PHP, DB, and WordPress.
- Import/export plugin settings.
Usage
-
Dashboard Overview
- View cache size and clear cache.
- Check the number of minified JavaScript and CSS files.
- Monitor image optimisation (WebP/AVIF status).
- Review recent plugin activities.
-
File Optimization Settings
- Minify JavaScript, CSS, and HTML.
- Combine CSS and exclude specific files.
- Defer and delay JavaScript loading.
- Core Tweaks: Disable emojis, embeds, XML-RPC, and control Heartbeat limits.
-
Preload Settings
- Enable cache preloading.
- Preconnect to origins and prefetch DNS.
- Preload fonts, CSS, and images.
-
Image Optimisation Settings
- Lazy load images with SVG placeholders.
- Convert images to WebP/AVIF formats and exclude specific images.
- Preload feature images for selected post types.
-
Database Cleanup
- Schedule automatic cleanup for revisions, auto-drafts, and transients.
- Keep recent revisions based on age or maximum count.
- Clean all overhead in one click.
-
Tools
- Import/export plugin settings for quick setup.
Composer Libraries
This plugin uses the following composer libraries:
voku/html-min – For HTML minification.
matthiasmullie/minify – For JavaScript and CSS minification.
Composer configuration:
{
"name": "nilesh/performance-optimisation",
"description": "A package for performance optimization, including HTML minification and code minification tools.",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "nilesh",
"email": "[email protected]",
"homepage": "https://github.com/nilesh32236"
}
],
"require": {
"voku/html-min": "^4.5",
"matthiasmullie/minify": "^1.3",
"woocommerce/action-scheduler": "^3.8"
},
"extra": {
"cleanup": {
"dirs": ["bin", "tests", "docs"],
"exclude": ["*.md", "*.yml", "*.xml", "tests", "docs"]
}
}
}