manifest / performance / wordpress-speed-optimization-scripts
WP Speed Optimization
A collection of PHP snippets to **optimize WordPress performance** by improving page load times, reducing database overhead, and cleaning up unused resources. Perfect for developers or site owners looking to boost Core Web Vitals and SEO.
★ 0stars
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/mahmooodsaeed/wordpress-speed-optimization-scripts/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.
A collection of PHP snippets to optimize WordPress performance by improving page load times, reducing database overhead, and cleaning up unused resources. Perfect for developers or site owners looking to boost Core Web Vitals and SEO.
✨ Features
- ➡️ Disable emojis and embeds to reduce unnecessary HTTP requests
- ➡️ Remove query strings from static resources
- ➡️ Enable GZIP compression and browser caching
- ➡️ Clean up WordPress head tags (RSD, WLW, etc.)
- ➡️ Lazy-load images for better LCP scores
- ➡️ Optimize database by deleting post revisions and transients
🛠️ Tech Stack
- WordPress
- PHP
📂 Installation
- Place
wp-speed-optimization.phpinto your theme’sfunctions.phpfile or convert it into a small custom plugin. - Refresh your site and test with Google PageSpeed Insights or GTmetrix.