This plugin replaces a common set of manual functions.php tweaks with a friendly Settings page under
Settings -> Performance Optimizer.
Features:
- Speculative loading rules with configurable eagerness (front end only).
- Preconnect and preload hints for styles, fonts, and a hero image.
- One-click auto-detect to prefill preload URLs from your homepage (no external proxy).
- Removes emoji scripts/styles and the embeds script (front end only).
- Defers eligible scripts while skipping Elementor, jQuery, and core handles.
- Optional REST/oEmbed link removal and XML-RPC disable.
- Smarter image handling: high fetch priority for LCP candidates and optional lazy-load skip on the homepage.
-
Automatically detects Elementor edit/preview mode and backs off to avoid conflicts.
Options you can control:
-
Speculative loading on/off and eagerness level.
- Preconnect host list, stylesheet preload URL, font preload URL, hero image preload URL, and whether hero preload is front-page only.
- Toggle emoji removal, embeds script removal, XML-RPC disable, REST link removal, and oEmbed link removal.
- Defer scripts toggle with custom exclusion handles.
- Image tweaks: set fetchpriority=high when missing, and disable lazy-load on the homepage.
Built for WordPress 6.9 using the Settings API, proper escaping/sanitization, and uninstall cleanup to meet WordPress.org guidelines.
Settings are registered with a sanitize callback and defaults to ensure inputs are cleaned on save.