Descripziun
WPSwings AI Website Optimizer is a comprehensive WordPress performance plugin that combines full-page caching, asset optimization, media lazy loading, database cleanup, WooCommerce-specific tuning, and CDN integration into a single, React-powered admin interface.
Caching Engine
- Full-page HTML caching — Serve pre-built static HTML instead of rebuilding pages on every request
- Configurable cache lifetime — Set how long cached pages stay valid (1–720 hours)
- Separate mobile cache — Optionally store a distinct copy for mobile visitors
- Auto-purge on update — Automatically clear a page’s cache when its content is saved
- Cache exclusions — Exclude specific URLs or path patterns from caching
- Logged-in user exclusion — Never serve cached HTML to logged-in users
CSS, JS & HTML Optimization
- Minify HTML — Strip whitespace, comments, and redundant quotes from rendered HTML
- Minify CSS & JS — Compress both enqueued and inline stylesheets and scripts
- Remove duplicate CSS rules — Drop exact-duplicate rule blocks and repeated selectors
- Compress CSS values — Shorten
0pxto0,#ffffffto#fff, and similar - Defer JavaScript — Stop scripts blocking the initial render
- Move JS to footer — Relocate scripts from
<head>to the footer where safe - Remove jQuery Migrate — Drop the jQuery backward-compatibility script
- Combine CSS / Combine JS — Merge multiple compatible local files to reduce HTTP requests
- Critical CSS generation — Inline above-the-fold CSS and defer the rest (off by default — the most invasive option)
- Remove Unused CSS — Track selectors across real page visits and drop ones never matched (conservative heuristic, off by default)
- Delay JavaScript until interaction — Hold non-critical scripts until the visitor scrolls, clicks, or taps
- Per-page asset manager — Disable specific scripts or styles on individual posts/pages from the editor
- DOM & rendering diagnostics — Reports oversized DOM trees and render-blocking assets (diagnostic only — does not alter markup)
- Disable WordPress extras — Remove emoji CSS, Dashicons (front-end), oEmbed stylesheet, block editor CSS, and version query strings
Image & Media / Lazy Load
- Lazy load images — Defer offscreen images with native
loading="lazy"and a JS fallback - Responsive lazy loading — Defer
srcset/sizesattributes on responsive images - Lazy load iframes, videos, and HTML5 video — Defer generic iframes and self-hosted
<video>elements - YouTube / Vimeo / Google Maps facades — Replace embed iframes with click-to-load previews (no third-party request until clicked)
- Placeholder images — Show a lightweight placeholder while the real image loads
- Fade-in animation — Fade images in once they load instead of popping in abruptly
- Dominant color placeholders — Extract each image’s real average color (computed once per image, cached)
- LQIP placeholders — Show a tiny blurred preview of the actual image (computed once per image, cached)
- Image compression — Recompress uploaded images and generated thumbnails to reduce file size (JPEG-optimized; GD only)
- WebP generation — Create
.webpsiblings alongside uploaded images, served via a<picture>fallback wrapper - Original backup — Back up pre-compression bytes before optimizing so „Restore Original“ stays possible
- Above-the-fold exclusion — Never lazy-load the first N images to protect LCP scores
Database & Cleanup
- Disable emojis, embeds, XML-RPC, oEmbed, shortlinks, RSD, WLW Manifest
- Remove generator meta tag — Hide the WordPress version from page source
- Remove version query strings — Strip
?ver=from static asset URLs - Heartbeat API control — Disable or throttle the Heartbeat API
- Disable RSS feeds, pingbacks, and trackbacks
- Scheduled database optimization — Automatically clean up revisions, auto-drafts, trashed posts, spam comments, and expired transients
- Dry-run mode — Preview what the cleanup would remove before actually deleting anything
- Orphaned meta cleanup — Remove post meta and comment meta rows left after their parent was deleted
WooCommerce Optimization
- Cart fragments optimization — Load the cart-fragments AJAX request only where the cart is shown, or disable it entirely
- Optimize checkout scripts — Trim non-essential scripts (gallery, zoom, etc.) from the checkout page
- Disable WooCommerce JS/CSS on non-shop pages — Only enqueue WooCommerce assets where needed
- Cache related products — Fragment-cache the related-products block on product pages
- Checkout Blocks safe mode — Skip JS defer/delay/footer-move on block-based Cart and Checkout pages to protect WooCommerce Blocks hydration
- Optimize My Account assets — Trim unused scripts/styles on account endpoint pages
- Disable unused WooCommerce widgets — Prevent widget assets loading when unused
Server & CDN Integration
- CDN URL rewriting — Rewrite same-site image, CSS, and JS URLs to a merchant-configured CDN hostname
- Works with any origin-pull CDN — No API keys or provider-specific integration required
- Exclusion patterns — Skip specific URLs or wildcards from CDN rewriting
External Services & Privacy
All core processing (caching, minification, image compression) happens entirely on your server. The plugin does not use any AI APIs or cloud services. However, two optional lazy-loading features contact external services when enabled, as described below.
Vimeo oEmbed (server-side)
When the Lazy load Vimeo embeds feature is enabled and a Vimeo embed is found on the page, the plugin makes a single server-side request to Vimeo’s public oEmbed endpoint (https://vimeo.com/api/oembed.json) to retrieve the video’s real thumbnail URL. This request:
- Is made from your server, not the visitor’s browser
- Is cached locally for 30 days, so it happens at most once per video
- Sends only the public Vimeo video URL, nothing else
- Is governed by Vimeo’s privacy policy: https://vimeo.com/privacy
If you do not enable Vimeo lazy loading, no request is ever made to Vimeo.
YouTube Thumbnails (visitor’s browser)
When the Lazy load YouTube embeds feature is enabled, the plugin replaces YouTube iframes with a click-to-load facade. The facade displays the video’s thumbnail, which is loaded directly from YouTube’s image CDN (https://i.ytimg.com) by the visitor’s browser when the page renders. This means:
- Every page view that includes a YouTube facade causes the visitor’s browser to contact
i.ytimg.com - No YouTube request is made by your server — only by the visitor
- This connection is governed by Google’s/YouTube’s privacy policy: https://policies.google.com/privacy
If you do not enable YouTube lazy loading, no request to YouTube’s image CDN is ever made.
No Other External Services
Beyond the two optional features above, the plugin makes no external HTTP requests. All data (cache files, minified assets, combined files, image backups, usage tracking for Remove Unused CSS) is stored locally within wp-content/cache/wpsaiwo/ or the WordPress database.
Maletgs dal visur







Installaziun
- Upload the plugin files to
/wp-content/plugins/wpswings-ai-website-optimizer/or install via the WordPress plugin installer - Activate the plugin through the Plugins menu in WordPress
- Navigate to WPSwings Optimizer in the admin menu to configure each module
FAQ
-
Do I need WordPress 7.0 for this plugin to work?
-
No. The plugin works with WordPress 6.0+. It is tested up to WordPress 7.0.
-
Does this plugin require WooCommerce?
-
No. All modules except WooCommerce Optimization work independently of WooCommerce. The WooCommerce module is simply unavailable when WooCommerce is not active.
-
Is it safe to enable all toggles at once?
-
We recommend enabling features incrementally and testing after each group. A few features are explicitly off by default because they are more aggressive or site-specific: Critical CSS generation, Remove Unused CSS, Delay JavaScript, Remove optional closing tags, and the database cleanup options. The admin UI includes a description and scope note on each toggle.
-
What is „dry-run mode“ for database cleanup?
-
When dry-run mode is on, the plugin previews what the scheduled cleanup would delete without actually removing anything. It is on by default — review a few preview runs before enabling live cleanup.
-
Can I restore images after compression?
-
Yes. If Keep original backup is on, the plugin saves each image’s pre-compression bytes to
wp-content/cache/wpsaiwo/media-originals/{attachment_id}/. A „Restore Original“ action is available per attachment that swaps the compressed file back. -
Does this plugin make any external HTTP requests?
-
Two optional features contact external services:
- Vimeo lazy loading — the plugin’s server fetches a Vimeo video thumbnail via Vimeo’s public oEmbed API (once per video, cached 30 days).
- YouTube lazy loading — the visitor’s browser loads each video’s thumbnail directly from YouTube’s image CDN (
i.ytimg.com) when the facade is rendered.
See External Services & Privacy above for full details. No other external requests are made.
-
Does this plugin use AI?
-
The plugin name includes „AI“ as part of the WPSwings product family branding. It does not call any AI or machine-learning APIs. All optimizations are deterministic, server-side operations.
-
Does this work in a multisite network?
-
The plugin activates and stores settings per-site. Full network-wide management is planned for a future version.
-
Cart, checkout, and account pages are cached — is that safe?
-
No — they are never cached. WooCommerce cart, checkout, and account pages are always automatically excluded from the page cache when WooCommerce is active.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WPSwings AI Website Optimizer” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WPSwings AI Website Optimizer” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0 – 2026-07-27
- Initial release
