=== pars-optimizer ===
Contributors: parshost
Tags: optimization, speed, security, cache, minify, lazy load
Requires at least: 5.6
Tested up to: 6.9
Stable tag: 1.0.0
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

pars-optimizer is a comprehensive optimization plugin designed to speed up your website, enhance security, and beautify your WordPress admin panel.

== Description ==

Crafted with 💙 by the programmers and developers at Pars.host, **pars-optimizer** is programmed to significantly enhance your website's load speed, ensuring a seamless and faster user experience. Say goodbye to slow loading times!

pars-optimizer is not just a speed plugin; it's a complete toolkit for WordPress efficiency. It combines security features, performance optimizations, and UI enhancements in one lightweight package.

### Key Features:

**🚀 Performance & Speed**
* **Minify CSS & JS:** Compress your style and script files to reduce size.
* **Merge Assets:** Combine multiple CSS/JS files into one to reduce HTTP requests.
* **Lazy Load:** Built-in lazy loading for Images and Iframes to speed up initial page load.
* **Remove Comments:** Automatically strips HTML comments from your source code.
* **Preload Resources:** Easily define critical assets (fonts, CSS, JS) to preload for better Core Web Vitals.

**🛡️ Security Enhancements**
* **Hide Login URL:** Change your default `wp-admin` and `wp-login.php` to a custom slug (e.g., `/my-login`) to prevent brute-force attacks.
* **Force SSL:** Enforce HTTPS redirection for both the admin dashboard and the frontend.

**🛒 WooCommerce Optimization**
* **Disable Tracking:** Stop WooCommerce from tracking usage data to speed up your backend.

**🎨 Admin Interface & Fonts**
* **Persian Font (Yekan Bakh):** Beautiful "Yekan Bakh" font integration for both the Admin Dashboard and Frontend.
* **Modern Admin Theme:** A sleek, dark/modern theme for the WordPress dashboard to improve the management experience.

== Installation ==

1.  Upload the plugin files to the `/wp-content/plugins/pars-optimizer` directory, or install the plugin through the WordPress plugins screen directly.
2.  Activate the plugin through the 'Plugins' screen in WordPress.
3.  Use the **Optimizer** menu to configure the settings.
4.  Go to the **Analysis** tab to check your website's optimization score.

== Frequently Asked Questions ==

= Does this plugin work with other caching plugins? =
Yes, pars-optimizer is designed to be lightweight and compatible. However, if you use another plugin for Minify/Merge functionality (like Autoptimize), we recommend disabling those specific features in one of the plugins to avoid conflicts.

= How do I change my login URL? =
Go to **Optimizer > Settings > Security**. Enable "Hide Login URL", enter your desired slug (e.g., `secret-login`), and save. **Important:** If you get a 404 error, go to Settings > Permalinks and just click "Save Changes" to flush the rewrite rules.

= What if I get locked out after changing the login URL? =
Simply rename the `pars-optimizer` folder in `wp-content/plugins/` via FTP or File Manager to deactivate the plugin. Then you can access `wp-login.php` again.

== Screenshots ==

1.  **Dashboard & Analysis:** A comprehensive overview of your site's health and optimization score.
2.  **General Settings:** Easy toggles for security and performance features.
3.  **Assets Manager:** Advanced settings for Minify and Merge CSS/JS.

== Changelog ==

= 1.0.0 =
* Initial release.
* Added Security features (Hide Login, Force SSL).
* Added Optimization features (Minify, Merge, Lazy Load).
* Added WooCommerce optimization.
* Added Admin Theme and Custom Fonts.