WP Manifestindependent plugin directory
manifest / performance / wordpress-speed-toolkit

WP Speed Toolkit

Lightweight WordPress performance plugin: safe front-end speed tweaks with a clean Settings API page

★ 0stars

Install

Download source zip No release zip yet

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/usama-afzall/wordpress-speed-toolkit/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A single, lightweight WordPress plugin with a handful of independent, opt-in front-end performance toggles. Everything is off by default, so activating the plugin changes nothing until you choose.

Requires WordPress 6.0+ and PHP 7.4+.

What it does

WP Speed Toolkit adds one page, Settings > Speed Toolkit, built on the WordPress Settings API. Each toggle is independent, so you can enable only what suits your site.

Design notes:

  • All settings are stored in a single option array (wpst_options).
  • Only users with the manage_options capability can change settings.
  • Every setting goes through a sanitize callback; all output is escaped.
  • No external requests and no database writes on the front end.
  • Deleting the plugin removes its option via uninstall.php.

Toggles

Toggle What it does Risk
Disable emoji scripts and styles Removes WordPress's emoji detection script and inline styles. Low. Modern browsers render emoji natively.
Disable oEmbed / embeds script Stops loading wp-embed.min.js. Low to medium. Other sites can no longer embed your posts as rich previews.
Remove block library CSS Dequeues the wp-block-library stylesheets on the front end. High on block themes. Only for sites that use neither a block theme nor core blocks.
LCP hint for the first image On single posts and pages, adds fetchpriority="high" and removes loading="lazy" from the first image to render (featured image or first content image). Low. Only one image per page is changed.
Lazy-load iframes Adds native loading="lazy" to iframes in post content. Low. Test embeds near the top of the page.
Preconnect origins Adds preconnect resource hints for origins you list, one https origin per line (max 10). Hints use the crossorigin attribute, which suits fonts. Low. Too many hints waste connections.
Preload LCP image URL Adds a preload tag for one https image URL on every page. Medium. Preloading an image a page does not use wastes bandwidth.
Defer script handles Adds defer to the script handles you list (front end only). Medium to high. Scripts that must run immediately, or that inline code depends on, can break. Test each handle.
Heartbeat API Slows the Heartbeat interval to 60 seconds, optionally disabling it on the front end. Low to medium. Some plugins use Heartbeat on the front end.
Remove WordPress version tag Removes the generator meta tag and feed generator output. Low. This is not a security measure on its own.

Installation

  1. Download the repository as a zip, or copy the plugin files into a folder named wp-speed-toolkit.
  2. Upload it via Plugins > Add New > Upload Plugin, or place the folder in wp-content/plugins/.
  3. Activate WP Speed Toolkit.
  4. Go to Settings > Speed Toolkit, enable one option at a time and save.

The zip must contain the plugin files inside a wp-speed-toolkit folder. If you download the repository zip, rename the extracted folder before uploading, or compress the files into such a folder.

Verifying changes

Use PageSpeed Insights or Lighthouse in Chrome DevTools. Test the same URL before and after each change, run it several times, and test both mobile and desktop. Results vary by site, theme, hosting, caching and test conditions. This plugin makes no guaranteed score promises, and some toggles will have no measurable effect on a given site. Also check the page visually and watch the browser console for errors after enabling any toggle.

Compatibility

  • WordPress 6.0 or later, PHP 7.4 or later.
  • Works alongside caching plugins; clear your cache after changing settings.
  • Overlap with other optimization plugins is possible. Avoid enabling the same feature in two places.
  • Multisite: settings are per site.

License

Source-available, not open source. You may read and evaluate this code, but commercial or production use requires a written licence from Usama Afzall. See LICENSE and https://usama.websiteprism.com/contact.

Need this customized? https://usama.websiteprism.com/contact