Optimize Scripts & Styles
Optimize Scripts & Styles combines scripts and styles on your site, minifies them and provides cachable versions for improved site performance.
Use with caution
Optimize Scripts & Styles works, but test it on a staging site before relying on it in 2026. It runs on 40+ sites, is rated 5/5 and was last updated 8 months ago, and scores 46/100 on our health check.
- Small user base (40+ active installs)
- Very few reviews so far
- Only tested up to WordPress 6.8 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Optimize Scripts & Styles stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| minify | #74 |
| optimization | >100 |
| Optimize | #78 |
| scripts | #29 |
| styles | #25 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 2 reviews
About Optimize Scripts & Styles
From the official readme · v1.9.7Description
Optimize Scripts & Styles optimizes your site’s JavaScript and CSS files by combining, minifying and caching them. This will help your site’s overall performance and user experience by reducing the number of files served up and the overall size of these files.
For developers, this allows you to maintain uncompressed versions for development themes or plugins, while compressing them for a production environment.
For you SEO buffs, it cleans up the number of scripts that get included and downloaded to your site visitors, helping your overall PageSpeed score.
Header and footer script locations are maintained as well as any localized data used for the scripts and the minified files are stored in the /cache folder, making it friendly for plugins like WP Super Cache. Media attributes are also maintained for print stylesheets.
Features
- Combine & minify all JavaScript & CSS that is enqueued
- Stores the optimized files in the cache folder for faster page loads
- Compatible with caching plugins like WP Super Cache and W3 Total Cache
- Enable for logged in users (not recommended)
- Available options to remove or ignore enqueued scripts and styles
- Optional button in the admin bar to clear scripts and styles
- Includes an option to remove script type attributes for HTML5 validation
Installation
- Upload the plugin files to the /plugins/ directory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress
- Configure the plugin through ‘Settings’ > ‘Optimization’
Changelog
This update fixes the way the plugin keeps track of already processed scripts. You should be using at least this version.
1.9.7
- PHP 8.4 compatibility
- [New Feature] DNS prefetch options to add preconnect and dns-prefetch hints for external resources
- [New Feature] HTML minification. Page HTML & script content (application/ld+json, application/json, application/speculationrules, importmap) is now minified when HTML minification is enabled
- Fixed JS error when clicking Clear OS&S Cache in the admin bar on non-settings admin pages
- Before and after inline scripts (localized data, wp_add_inline_script) are now minified when the minify JavaScript setting is enabled, for both cached and non-cached output
- Relaxed the “already minified” heuristic that was skipping valid pages (previously required 10+ newlines; now only skips when HTML is clearly pre-minified)
- Improved internationalization for admin UI strings (settings page, DNS prefetch controls, localized JavaScript messages for cache clearing, main Optimization admin screen)
- Diagnostic logging (including cache clears and file/cache errors) only when both WP_DEBUG and WP_DEBUG_LOG are enabled, via a shared helper
1.9.6
- SECURITY FIX: Fixed critical directory traversal vulnerability in CSS import processing and script path handling
- Added comprehensive path validation to prevent directory traversal attacks
- Enhanced security checks for file operations to ensure paths are within WordPress directory structure
- Improved input sanitization for import paths and script URLs
1.9.5
- PHP 8.3 compatibility
- Updated minify package to 1.3.73
- Added better recursion for JavaScript dependencies
- Added better handling of localized scripts before & after javascript
- Added handling for async and defer scripts, retaining their intended load strategy
- Code refactoring
1.9.4
- PHP 8.2 compatibility
- Updated minify package to 1.3.71
- Fixed a bug with stylesheet dependencies
1.9.3
- Added recursive stylesheet dependency inclusion
- Better code comments
1.9.2
- Fixed an issue with the HTML5 text/css feature inadvertently converting link tags to script tags
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Optimize Scripts & Styles alternatives
All minify plugins →FAQ
Optimize Scripts & Styles: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Optimize Scripts & Styles free?
Yes. Optimize Scripts & Styles is free to download and use from the official WordPress.org plugin directory.
Is Optimize Scripts & Styles safe to use in 2026?
Optimize Scripts & Styles works, but test it on a staging site before relying on it in 2026. It runs on 40+ sites, is rated 5/5 and was last updated 8 months ago, and scores 46/100 on our health check.
How many websites use Optimize Scripts & Styles?
Optimize Scripts & Styles is active on 40+ WordPress websites and has been downloaded 12,482 times since it launched in June 2018. It was downloaded 175 times in the last 30 days.
Does Optimize Scripts & Styles work with WordPress 7.1?
Optimize Scripts & Styles is officially tested up to WordPress 6.8.13, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Optimize Scripts & Styles need?
Optimize Scripts & Styles requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Optimize Scripts & Styles last updated?
The latest version, 1.9.7, was released on April 20, 2026 (8 months ago).
Who makes Optimize Scripts & Styles?
Optimize Scripts & Styles is developed and maintained by Sean Michaud.
What are the best alternatives to Optimize Scripts & Styles?
The most popular alternatives to Optimize Scripts & Styles are WP-Optimize (1M+ installs), SpeedyCache (500K+ installs) and Clearfy Cache (40K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card






