=== Sutrify Cleaner ===
Contributors: aayushshrestha
Tags: css optimization, js optimization, performance, cache, database optimization
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

All-in-one performance plugin to optimize CSS, JS, Google Fonts, database tables, and transients.

== Description ==

Sutrify Cleaner is a lightweight, high-performance WordPress optimization plugin designed to improve Core Web Vitals (LCP, INP, CLS), page load times, and database efficiency.

= Key Features =
* **Optimize CSS:** Fix render-blocking CSS automatically.
* **Minify & Inline CSS:** Compress CSS and inline critical small stylesheets (<20KB).
* **Optimize JS:** Fix render-blocking JavaScript with defer attributes.
* **Delay JS Execution:** Delay JavaScript loading until user interaction (scroll, click, mousemove).
* **Faster Google Fonts:** Adds resource preconnect hints and display=swap automatically.
* **Database & Transient Engine:** Clean post revisions, auto-drafts, spam comments, expired transients, and optimize database table overhead.
* **Database Action Modal:** Built-in confirmation safety modal for high-risk database cleanup operations.
* **Page Builder Support:** Built-in optimizations for Elementor and WPBakery Page Builder.
* **Third-Party Compatibility:** Automatically disables conflicting minification settings in WP Rocket, LiteSpeed Cache, and Autoptimize.
* **Granular Exclusions:** Exclude specific CSS or JS files from optimization via admin settings.

== Installation ==

1. Upload the `sutrify-cleaner` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Configure your optimization preferences under **Settings > Sutrify Cleaner**.

== Frequently Asked Questions ==

= Does Sutrify Cleaner work with caching plugins? =
Yes, Sutrify Cleaner is compatible with major caching plugins (e.g. WP Rocket, LiteSpeed Cache, Autoptimize) and automatically disables duplicate CSS/JS minification features to prevent conflicts.

= How does database optimization work? =
Navigate to **Settings > Sutrify Cleaner > Database & Transients** to view live database metrics. You can run quick cleanups for revisions, drafts, comments, and expired transients, or execute an `OPTIMIZE TABLE` operation.

= How do I exclude a script or stylesheet? =
Navigate to **Settings > Sutrify Cleaner**, select either the CSS or JS tab, and enter the file name or string in the Exclude box (one per line).

== Changelog ==

= 1.0.0 =
* Initial release with CSS, JS, Google Fonts, and Database/Transient optimization features.
