=== kombat-optimizer ===
Contributors: alin  
Tags: webp, image optimization, performance, woocommerce, cron 
Requires at least: 5.0  
Tested up to: 6.8  
Stable tag: 1.2.3
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  

WebP optimizer for WordPress/WooCommerce with scan, cron, and TTFB tools in a fast tabbed interface.

== Description ==

kombat-optimizer is a lightweight WebP optimization plugin for WordPress and WooCommerce. It helps improve performance, reduce image size, and boost SEO by converting images to WebP and replacing them automatically.

Built for speed and clarity, it offers a unified admin panel with intuitive tabs, instant feedback, and visual indicators.

**Features include:**

- WebP generator for uploaded images  
- Automatic image replacement in frontend HTML (WebP fallback)  
- Folder scan for WebP coverage (valid, missing, corrupt)  
- TTFB monitoring for homepage  
- Weekly cron job for automated WebP generation  
- Visual status indicators and confirmation messages  
- Tabbed interface with persistent tab memory (localStorage)  
- Loading indicators and fade-in transitions for smooth UX  

Whether you're managing a WooCommerce store or a content-heavy site, kombat-optimizer helps you stay fast, efficient, and SEO-friendly.

== Installation ==

1. Upload the `kombat-optimizer` folder to `/wp-content/plugins/`  
2. Activate the plugin via the WordPress admin panel  
3. Access the kombat-optimizer panel from the admin menu

== Frequently Asked Questions ==

= Does this plugin modify existing images? =  
No. It generates `.webp` versions and optionally replaces image URLs in frontend HTML if enabled.

= Is it compatible with WooCommerce? =  
Yes. It works seamlessly with WooCommerce product images and galleries.

= Can I run the cron manually? =  
Not yet — but a manual trigger button is planned for future updates.

== Changelog ==

= 1.2.3 =
* Removed hardcoded limitation to 150 images
* Added control on maximum processing time
* UX improvements: visual loader and success message

= 1.2.2 =
* Added ✖ close button to the "How it works" info message
* Implemented persistent localStorage logic to remember if the info message was dismissed
* Added "🔄 Show explanation again" link to manually restore the info message
* Unified all JavaScript into a single DOMContentLoaded block for better performance and maintainability
* Improved visual loader with spinner and message: "Processing images... please wait"
* Confirmed compatibility with WordPress 6.8 and tested on real WooCommerce scenarios

= 1.2.1 =
* Eliminated all WordPress Coding Standards warnings and errors  
* Replaced direct error_log() calls with modular logging function  
* Added nonce verification and input unslash for all POST handlers  
* Refactored logging into inc/log.php with timestamped file output  
* Updated readme.txt short description to comply with 150-character limit  
* Replaced date() with gmdate() for timezone-safe logging  
* Fixed text domain mismatch for plugin header

= 1.2.0 =
* Added tabbed admin interface with persistent tab memory  
* Added visual status indicators and loading effects  
* Improved WebP scan reporting  
* Refined cron control and feedback  
* Escaped all dynamic outputs for security compliance  
* Updated compatibility to WordPress 6.8

== Roadmap ==

✅ Manual cron execution (planned with button trigger)  
✅ Persistent UI preferences (info box memory, tab memory)  
⏳ Live WebP preview  
Feedback and feature requests are welcome via the plugin page.

== Author ==

Developed by Alin – WordPress/WooCommerce specialist, performance optimizer, and UI/UX enthusiast.  
Website: https://webdesign-profesional.com  
Plugin page: https://webdesign-profesional.com/kombat-optimizer
