Transient Cleaner
Clean expired transients from your options table. The original and best! Transient housekeeping was added to the core of WordPress after version 5.8. However, I have decided to open up this plugin to all versions to allow for manual transient cleaning. Longer term I am working on a new version of the plugin, designed specifically for all WordPress releases. Tested up to PHP 8.2 Fully complies with WordPress coding standards Compliant with the stronger WordPress VIP coding standards, as well as compatibility with their platform Community plugin – visit the Github page to get involved with the latest code development, request enhancements and report issues “Transients are a simple and standardized way of storing cached data in the WordPress database temporarily by giving it a custom name and a timeframe after which it will expire and be deleted.” Unfortunately, expired transients only get deleted when you attempt to access them. If you don’t access the transient then, even though it’s expired, WordPress will not remove it. This is a known “issue” but due to reasons, which are explained in the FAQ, this has not been adequately resolved. Why is this a problem? Transients are often used by plugins to “cache” data (my own plugins included). Because of this it means that expired data can be left and build up, resulting in a bloated database table. Meantime, this plugin is the hero that you’ve been waiting for. Simply activate the plugin, sit back and enjoy a much cleaner, smaller options table. It also adds the additional recommendation that after a database upgrade all transients will be cleared down. The Settings Screen Within Administration -> Tools -> Transients an options screen exists allowing you to tweak when you’d like cleaning to happen, including the ability to perform an ad-hoc run, and when you’d like the to be automatically scheduled. You can even request an optimization of the options table to give your system a real “pep”! Running in Lite mode A “lite” mode is available. By activating this the options screen will no longer appear and default settings will be used. The advantage? Improved performance to Admin and, especially if you’re running multi-site, no chance of anybody “tinkering” with the settings. To activate, use the following… define( 'TC_LITE', true ); This should be added to your wp-config.php file. Using hooks If you’re the type of odd person who likes to code for WordPress (really?) then I’ve added a couple of hooks so you can call our rather neat cleaning functions… housekeep_transients – this will clear down any expired transients clear_all_transients – this will remove any and all transients, expired or otherwise Acknowledgements I’d like to thank WordPress Developer Andrew Nacin for his early discussion on this. Also, I’d like to acknowledge the useful article at Everybody Staze for ensuring the proposed solution made sense, and W-Shadow.com for the cleaning code. Iconography is courtesy of the very talented Janki Rathod.
Top keywords
- transients10×2.00%
- wordpress8×1.60%
- expired6×1.20%
- options5×1.00%
- cleaning4×0.80%
- table4×0.80%
- added3×0.60%
- code3×0.60%
- data3×0.60%
- database3×0.60%
- expired transients3×0.60%
- options table3×0.60%
PlugoSpeed
PlugoSpeed is a WordPress performance plugin that combines page caching, asset optimization, and Core Web Vitals improvements in a single lightweight package. It generates static HTML cache files served directly from disk via Apache — bypassing PHP and WordPress on cached requests. In testing on a standard VPS, this approach achieves sub-50ms TTFB and PageSpeed scores of 95/100 on desktop. A React 18 dashboard provides real-time cache hit rates, bandwidth saved, and PageSpeed score tracking — no jQuery required. Core Features (Free) Static HTML Cache Pages are stored as static .html files on disk. Apache serves them directly — no PHP, no database, no WordPress bootstrap. Cache TTL is configurable (default: 24 hours). HTML Minification Removes unnecessary whitespace and comments from the final HTML output, reducing page size without affecting content or functionality. CSS Minification Minifies stylesheet files inline, reducing transfer size. Combine is intentionally disabled by default for HTTP/2 compatibility. JavaScript Defer Adds defer to non-critical scripts, improving Time to Interactive (TTI) and Largest Contentful Paint (LCP) scores on mobile. Image Lazy Loading Adds native loading="lazy" to images and iframes below the fold. Injects explicit width and height attributes to reduce Cumulative Layout Shift (CLS). Database Cleanup Scheduled cleanup of post revisions, auto-drafts, spam comments, and expired transients. Configurable schedule: daily, weekly, or monthly. Cache Preloading After purge, PlugoSpeed re-warms the cache automatically by walking your XML sitemap. Rate-limited to avoid server overload. Auto Cache Purge Cache is invalidated on post save, theme change, plugin activation, and WooCommerce stock/price updates. PageSpeed Dashboard Tracks your Google PageSpeed Insights score over time with a 30-day graph. Shows live cache hit/miss ratio, bandwidth saved, and page count. Pro Features Remove Unused CSS (RUCSS) Generates a per-page stylesheet containing only the CSS rules that are actually used. Eliminates render-blocking CSS from page builders and plugin stylesheets. Requires a PlugoPress API key. Critical CSS Inlines the above-the-fold CSS directly in , eliminating render-blocking for a faster LCP. Requires a PlugoPress API key. WebP Image Serving Automatically serves .webp versions of images to supported browsers, reducing image payload by 25–35% without quality loss. Upgrade to Pro → plugopress.com/plugospeed/ Compatibility PlugoSpeed is tested and verified compatible with: Page Builders: Elementor, Divi, Beaver Builder, Bricks, Oxygen, WPBakery Themes: Astra, GeneratePress, Kadence, Hello Elementor, OceanWP, Blocksy, Neve, Flatsome E-Commerce: WooCommerce (cart exclusion, stock purge, vary by currency) Multilingual: WPML, Polylang (vary cache by language) SEO: Rank Math, Yoast SEO, All in One SEO CDN: Cloudflare (Pro: API purge integration) Technical Highlights Apache .htaccess rules serve cached HTML at low TTFB — before PHP loads advanced-cache.php drop-in captures misses and writes cache files Optimizer pipeline: Image → JS → CSS → HTML (order matters for correctness) WooCommerce cart/checkout pages are automatically excluded from cache Logged-in users never receive cached pages (preserves nonces and personalisation) Action Scheduler handles background jobs (preload, cleanup, RUCSS generation) REST API powers the dashboard — all actions are nonce-protected with manage_options capability checks Links Plugin Page Documentation Changelog Support External Services This plugin connects to the following external services: Google PageSpeed Insights API Purpose: Measures your site’s performance score and Core Web Vitals (LCP, CLS, FID) When it is called: Only when viewing the PlugoSpeed dashboard or when a manual refresh is triggered by the site administrator Data transmitted: Your site’s public URL — no personal data is sent Terms of Service: https://developers.google.com/terms Privacy Policy: https://policies.google.com/privacy PlugoPress Cloud API (api.plugopress.com) Purpose: Powers Pro features: Remove Unused CSS (RUCSS) and Critical CSS generation When it is called: Only when a valid API key is configured by the site administrator AND the corresponding Pro feature is enabled Data transmitted: The page URL and rendered HTML of the requested page, used solely for CSS analysis Terms of Service: https://plugopress.com/terms Privacy Policy: https://plugopress.com/privacy-policy PlugoPress Badge Service (plugopress.com) Purpose: Displays a performance badge in the PlugoSpeed dashboard When it is called: When the dashboard is viewed and a PageSpeed score is available Data transmitted: Only the numeric PageSpeed score is included in the image URL — no personal data is sent Terms of Service: https://plugopress.com/terms Privacy Policy: https://plugopress.com/privacy-policy