Skip to content

Mahmooodsaeed/wordpress-speed-optimization-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🟢 WordPress Speed Optimization Scripts

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

  1. Place wp-speed-optimization.php into your theme’s functions.php file or convert it into a small custom plugin.
  2. Refresh your site and test with Google PageSpeed Insights or GTmetrix.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages