=== Anonindo Performance Optimizer ===
Contributors: anonymoustech
Tags: performance, speed, cache, optimization, core-web-vitals
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WordPress performance plugin that automatically optimizes websites using intelligent, real-time data.

== Description ==

**Anonindo Performance Optimizer** is a modular performance plugin that improves Core Web Vitals (LCP, CLS, TTFB) automatically without breaking your site.

= Key Features =

* **Auto Mode** - One-click optimization that detects your setup and applies safe, progressive optimizations with automatic rollback
* **Real User Monitoring (RUM)** - Track actual visitor performance data to drive optimization decisions
* **Critical CSS** - Automatically generate and load above-the-fold CSS per page
* **Adaptive Lazy Loading** - Smart lazy loading for images, iframes, and background images with above-fold protection
* **Plugin Bloat Detector** - Scan active plugins for unused assets and duplicate libraries
* **Database Optimizer** - Clean revisions, transients, orphaned meta, and optimize tables
* **CDN Integration** - Cloudflare API integration for cache purge and header optimization
* **Script Controller** - Delay, defer, async, or block JavaScript per script
* **Smart Asset Loader** - Conditionally load CSS/JS based on page-level rules

= Why Anonindo Performance Optimizer? =

Unlike traditional caching plugins, this plugin uses real user data to make intelligent optimization decisions. Auto Mode progressively applies optimizations and automatically rolls back if performance degrades.

= Safety First =

* Safe Mode toggle to instantly disable all optimizations
* Automatic rollback system
* Conflict detection for other performance plugins
* Full error logging

== Installation ==

1. Upload the `anonindo-performance-optimizer` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Anonindo Perf -> Dashboard** to get started
4. Click **Enable Auto Optimization** for one-click setup

== Frequently Asked Questions ==

= Does this plugin work with WooCommerce? =
Yes. It is designed and tested to work with WooCommerce, Elementor, and popular themes.

= Will it conflict with other caching plugins? =
The plugin detects conflicting plugins and warns you. We recommend disabling other performance plugins to avoid conflicts.

= Does it collect personal data? =
No. The RUM module collects anonymous performance metrics only. No IP addresses, cookies, or fingerprinting data are stored.

= How does Auto Mode work? =
Auto Mode detects your theme and plugins, applies safe optimizations first, then gradually increases based on real performance data. If degradation is detected, it automatically rolls back.

== External services ==

This plugin can connect to the Cloudflare API when the CDN module is enabled and configured by an administrator. Cloudflare is used to purge cached URLs, purge all cache, toggle development mode, and verify the configured API token.

When the Cloudflare CDN module is configured, the plugin sends the configured Cloudflare API token in the Authorization header, the configured Cloudflare zone ID in API request URLs, public page URLs selected for cache purging, purge-everything requests, development-mode settings, and token verification requests. These requests are sent only when an administrator triggers a CDN action, when automatic purge runs after a published post is saved, or when a theme switch triggers a purge and the CDN module is configured.

This service is provided by Cloudflare, Inc. Terms of service: https://www.cloudflare.com/terms/ Privacy policy: https://www.cloudflare.com/privacypolicy/

== Screenshots ==

1. Performance Dashboard with Core Web Vitals
2. Module toggle interface
3. Settings with tabbed interface
4. Plugin Bloat Report
5. RUM Analytics

== Changelog ==

= 1.0.1 =
* Updated plugin identity and text domain for WordPress.org review.
* Improved asset loading and escaping for review compliance.
* Added Cloudflare external service disclosure.

= 1.0.0 =
* Initial release
* 9 performance modules
* Auto Mode with progressive optimization
* Real User Monitoring
* Premium admin dashboard
* WordPress.org compliant

== Upgrade Notice ==

= 1.0.1 =
Compliance update for WordPress.org review.
