=== Lightify - All-in-One Cache & Performance Optimizations & Core Web Vitals ===

Contributors: daftplug
Tags: cache, performance optimization, speed, core web vitals, optimize
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Supercharge your site with fast caching, asset & media optimization, network improvements, WordPress cleanup, and Core Web Vitals monitoring.

== Description ==

Lightify is an all-in-one performance optimization plugin for WordPress. It supercharges your website with lightning-fast page caching, asset and media optimization, network improvements, and deep WordPress cleanup — all while monitoring your Core Web Vitals in real time.

Speed up your site, improve your search rankings, and deliver a better user experience on autopilot.

👉 **[Learn more about Lightify](https://daftplug.com/lightify/)** — full feature tour, screenshots, documentation and Pro pricing.

### ⚡ Supercharge Your Site's Performance

- **Full-Page Caching** – Blazing-fast page cache with automatic preloading, smart purge, and an advanced-cache.php drop-in for maximum speed.
- **Asset Optimizations** – Minify CSS, JS, and HTML, defer or delay scripts, self-host external assets, and remove unused CSS.
- **Media Optimizations** – Lazy load images, videos, and iframes, properly size images, preload critical images, and replace YouTube embeds with lightweight previews.
- **Font Optimization** – Preload fonts, add display swap, self-host external fonts, and prioritize system fonts.
- **Network Improvements** – Preconnect, DNS prefetch, resource prefetch and preload, plus speculative loading for near-instant navigations.
- **Bloat Removal** – Disable emojis, block editor CSS, dashicons, jQuery Migrate, oEmbed, XML-RPC, RSS feeds, throttle Heartbeat, and schedule database cleanup.
- **Core Web Vitals Dashboard** – Real-time FCP, LCP, CLS, INP, and TTFB monitoring with a weighted performance score.

= 🗝️ Countless More Features =

Lightify offers a wide range of performance optimizations and seamlessly integrates them into your website:

- **Page Cache**: Full-page caching with gzip compression
- **Cache Preloading**: Automatic background cache warming
- **Smart Cache Purge**: Automatic purge on content changes
- **Mobile Cache**: Separate cache variants for mobile devices
- **Logged-in Caching**: Optional caching for authenticated users
- **CSS Minification**: Reduce CSS file sizes
- **JS Minification**: Reduce JavaScript file sizes
- **HTML Minification**: Compress HTML output
- **Defer JavaScript**: Eliminate render-blocking scripts
- **Delay JavaScript (Pro)**: Load JS only on user interaction
- **Remove Unused CSS (Pro)**: Strip unused CSS selectors
- **Self-Host External Assets (Pro)**: Serve third-party CSS, JS, and fonts locally
- **Image Lazy Loading**: Native lazy loading for images
- **Video & iFrame Lazy Loading**: Defer media loading
- **YouTube Previews (Pro)**: Lightweight YouTube embed placeholders
- **Font Preloading**: Preload critical font resources
- **Resource Hints**: Preconnect, DNS prefetch, prefetch, and preload
- **Speculative Loading (Pro)**: Browser-level link prefetching
- **Bloat Removal**: Disable emojis, dashicons, jQuery Migrate, oEmbed, and more
- **Database Cleanup (Pro)**: Scheduled cleanup of revisions, drafts, spam, and transients
- **Core Web Vitals**: Real-time performance monitoring dashboard

= 🚀 Upgrade to Lightify Pro =

The free version already caches your pages, minifies your assets and cleans up WordPress. **[Lightify Pro](https://daftplug.com/lightify/)** removes the limits and adds the heavy-duty optimizations that move Core Web Vitals the most:

- **Critical CSS & Remove Unused CSS** – Inline above-the-fold styles and strip the selectors a page never uses, so nothing render-blocking is left.
- **Delay JavaScript** – Hold non-essential scripts until the first user interaction to cut Total Blocking Time.
- **Self-Host External Assets** – Serve third-party CSS, JS and fonts from your own domain and drop the extra connections.
- **Advanced Media Optimization** – Lightweight YouTube preview placeholders, precise image sizing and critical image preloading.
- **Speculative Loading** – Browser-level prerendering and prefetching for near-instant navigations.
- **Scheduled Database Cleanup** – Automatic pruning of revisions, auto-drafts, spam, orphaned meta and expired transients.
- **Core Web Vitals Action Items** – Prioritised, site-specific fixes instead of a generic score.
- **Every Advanced Setting** – All exclusion rules, cache variants and fine-grained controls unlocked.
- **Priority Support** – Direct help from the team instead of the public support forum.
- **Simple Pricing** – Pro is $29.99 for Lightify on its own, or become a DaftPlug Pro member and get every one of our All-in-One Pro plugins in a single membership at [daftplug.com/pricing](https://daftplug.com/pricing/).

**[See everything in Lightify Pro →](https://daftplug.com/lightify/)**

### 🎉 Why Performance Matters

Website speed directly impacts your bottom line:

- **+53% Bounce Rate**: Google found that 53% of mobile users leave a site that takes over 3 seconds to load.
- **+7% Conversions**: Every 1-second improvement in page load time can increase conversions by 7%.
- **SEO Ranking Factor**: Core Web Vitals are a direct Google ranking signal affecting your search visibility.
- **Better UX**: Fast sites keep users engaged, reduce bounce rates, and drive more repeat visits.

= ⚡ Smart Features, No Hassle =

- **No Coding Required**: Ready-made, fully configurable optimizations that work out of the box.
- **Live Updates**: Updates with fixes, new features and improvements are automatically pushed to your WordPress website.
- **High Quality**: Built with a modular design, ensuring fast, reliable performance without frequent bugs and failures.
- **Support**: Get support in the support forum from friendly professionals ready to answer your questions.

= 🌐 Fully Translatable =

Lightify supports multiple languages, typography options, and RTL layouts. It's fully translatable via POT files using tools like Poedit and Loco Translate and is compatible with WPML, Polylang, TranslatePress, Weglot, and more.

= 🔌 Compatible with All Themes & Plugins =

Lightify works out-of-the-box with any WordPress setup, theme, or plugin. Whether you're running a blog, e-commerce store, forum, portfolio, membership site, or news portal, it integrates seamlessly without requiring extra configuration.

== Frequently Asked Questions ==

**What does Lightify cache?**

Lightify creates gzipped HTML snapshots of your pages and serves them directly via an advanced-cache.php drop-in, bypassing most of WordPress's PHP execution. It supports separate variants for mobile, logged-in users, different user roles, and currency switchers.

**Will Lightify break my site?**

Lightify is designed with safety in mind. All optimizations can be toggled individually, and exclusion patterns let you skip specific pages or assets. If something looks off, simply disable the relevant feature.

**Does it work with WooCommerce?**

Yes. Lightify automatically excludes dynamic pages like cart, checkout, and my-account from caching. Currency switcher plugins (Aelia, YITH, WCML) are also supported with separate cache variants.

**How does the preloader work?**

After a cache purge, Lightify queues all published posts, pages, taxonomy archives, and author archives for preloading. It processes the queue in the background using Action Scheduler, warming your cache so visitors always hit a cached page.

**Can I use Lightify with other caching plugins?**

Lightify is a complete caching and optimization solution. Using it alongside other caching plugins is not recommended and may cause conflicts.

**Is Lightify compatible with my theme?**

Lightify is compatible with any WordPress theme, plugin, or configuration — standard sites, e-commerce, membership, forums, and more. It is a standalone plugin that does not require or depend on anything else to function.

**What is the difference between the free and Pro versions?**

The free version gives you the complete caching engine, preloading, CSS/JS/HTML minification, deferred scripts, lazy loading, resource hints, bloat removal and the Core Web Vitals dashboard. [Lightify Pro](https://daftplug.com/lightify/) adds critical CSS, remove unused CSS, delayed JavaScript, self-hosted external assets, advanced media optimization, speculative loading, scheduled database cleanup, Core Web Vitals action items, every advanced setting and priority support. Pro is $29.99. If you use more than one of our plugins, a [DaftPlug Pro membership](https://daftplug.com/pricing/) covers all our All-in-One Pro plugins in one subscription.

**Where can I see documentation and pricing?**

Everything — the full feature list, screenshots, documentation and Pro pricing — is at [daftplug.com/lightify](https://daftplug.com/lightify/).

**Will it slow down my admin area?**

No. Lightify's optimizations only apply to the frontend. The admin area is untouched, and background tasks like preloading run asynchronously via Action Scheduler.

== Screenshots ==

1. **Dashboard** – View your site's Core Web Vitals performance at a glance, including FCP, LCP, CLS scores, and cache statistics.
2. **Asset Optimizations** – Minify CSS, JS, and HTML, defer or delay scripts, remove unused CSS, and self-host external assets.
3. **Media Optimizations** – Lazy load images, videos, and iframes, properly size images, and optimize YouTube embeds.
4. **Network Improvements** – Configure preconnect, DNS prefetch, resource prefetch, preload, and speculative loading hints.
5. **Bloat Removal** – Disable unnecessary WordPress features and schedule automatic database cleanup.

== Changelog ==
= 1.3.2 =
* Improvement: Pro is now enabled from daftplug.com; the in-plugin popup sends you straight to pricing instead of running checkout inside wp-admin
* Improvement: Every call to action and every prompt now reads "Enable Pro" rather than "Upgrade to Pro"
* Improvement: Redesigned the Pro popup: seven benefits instead of two terms lines, an Enable Pro switch that flips as it opens the store, and it now closes on Escape and returns focus where you left it
* Fix: Removed the 14-day free trial from the plugin description, which no longer offers one
* Improvement: Free installs show a count badge on the admin menu so the Pro build is visible without opening anything
* Improvement: Removed the free trial offer, including the leftover "Start Trial" item in the plugin menu
* Improvement: The Freemius checkout script is no longer loaded on admin pages

= 1.3.1 =
* Improvement: Score Alerts moved from the dashboard to a dedicated Notifications section in Settings

= 1.3.0 =
* Improvement: Redesigned settings with a vertical navigation rail and a single-column layout

= 1.2.3 =
* Improvement: Remove unused CSS now avoids duplicated styles
* Fix: JS exclusions not saving is now fixed

= 1.2.2 =
* Improvement: Stability improvements

= 1.2.1 =
* Improvement: Lazy Render Elements feature is now more stable.
* Improvement: Added dashboard widget.

= 1.2.0 =
* New: Added Core Web Vitals score monitoring functionality.
* New: Added Browser and Object cache features.
* New: Added compatibility with various themes, plugins, and hosting platforms.
* Improvement: Added header / footer in the admin area.
* Improvement: LCP element is now automatically detected and excluded from lazy loading with high fetch priority.
* Improvement: lazy loading and fetch priority attributes are no longer overridden if were present.

= 1.1.0 =
* New: Added Pro version features for full page caching, optimizations and improvements.
* Improvement: Various stability and compatibility improvements.

= 1.0.0 =
* Initial release.

== External services ==

This plugin connects to external services to provide specific functionality. Below is a complete list of the services, what they do, when they are used, and what data may be transmitted.

- Freemius SDK (freemius.com)
	- Purpose: Manages plugin licensing, premium feature gating, updates, and optional usage tracking.
	- What is sent and when: During activation, license checks, and updates, the plugin communicates with Freemius servers. Data may include site URL, plugin version, WordPress version, and license key. No personal user data is sent unless the site admin explicitly opts in to usage tracking.
	- Provider: Freemius. Terms: https://freemius.com/terms/ — Privacy: https://freemius.com/privacy/

Notes:
- Lightify does not send any page content or visitor data to external services.
- All caching, optimization, and Core Web Vitals measurement happens locally on your server and in the visitor's browser.
