=== Magic optimize ===
Contributors: mikalaizaitsau
Tags: optimization, webp, performance, elementor, minify
Requires at least: 5.6
Tested up to: 6.8
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Optimize images to WebP and minify CSS/HTML. Elementor-compatible performance plugin.

== Description ==

**Optimize Images & Speed** enhances your WordPress website's performance by optimizing images through WebP conversion, seamlessly integrating image replacement in Elementor, and compressing CSS and HTML files to reduce page size and load times.

### Current Features:

* **WebP Conversion:** Automatically converts images to the optimized WebP format.
* **Elementor Support:** Seamlessly replaces images in Elementor widgets with optimized WebP versions.
* **CSS Minification:** Compresses CSS files for faster page load.
* **HTML Minification:** Optimizes HTML code by removing unnecessary whitespace and comments.

== Installation ==

1. Upload `optimize-images-speed` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Configure the plugin from the `Settings > Optimize Images & Speed` menu.

== Frequently Asked Questions ==

= Does it optimize existing images? =

Yes, you can convert existing images to WebP format via the plugin settings page.

= Does it work with Elementor? =

Yes, it fully supports Elementor by automatically replacing images with optimized WebP versions.

= Can I disable CSS or HTML minification? =

Yes, you can enable or disable minification options separately from the plugin settings.

== Screenshots ==

1. WebP conversion settings.
2. Elementor integration in action.
3. CSS and HTML minification settings.

== Changelog ==

= 1.0.0 =
* Initial release with WebP conversion, Elementor integration, CSS and HTML minification.
* Improved compatibility with caching systems by restricting ob_start usage.
* Minor code cleanup for plugin review compliance.

= 1.0.1 =
* Fixed fatal error when `/uploads/` directory does not exist.
* Added nonce protection to the "Convert images" form to prevent expired link errors.
* Improved admin UI stability during form submission.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Activate to immediately improve your site's performance with optimized images and minified CSS/HTML.
Fixes compatibility issues with caching. Recommended update for improved stability.

= 1.0.1 =
Fixes fatal error if uploads directory is missing and resolves expired link issues during image conversion. Recommended update for all users.