=== OptimizeSho ===
Contributors: ishayanabad
Donate link: 
Tags: performance, optimization, speed, security, database
Requires at least: 5.8
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

Comprehensive performance, security, and database optimization suite for WordPress.

== Description ==
OptimizeSho boosts your WordPress site speed, strengthens security, and cleans your database. It provides fine-grained control over outgoing HTTP requests, resource loading order, lazy loading, Google Fonts removal, jQuery Migrate removal, and much more – all from a single admin panel.

**Key Features:**

* **HTTP Request Management:** Monitor and block external requests to slow third-party services.
* **Resource Loading Optimization:** Preconnect, preload, and reorder CSS/JS in the `<head>` for faster rendering.
* **Google Fonts Control:** Disable Google Fonts globally or per context (admin/frontend).
* **Lazy Loading:** Add native `loading="lazy"` to images, iframes, and videos.
* **Minification:** Minify HTML, inline CSS, and inline JS; remove HTML comments.
* **Brotli Compression:** Serve pages compressed with Brotli (requires PHP extension).
* **JavaScript Tweaks:** Remove jQuery Migrate, add async/defer to scripts.
* **Heartbeat Control:** Adjust Heartbeat API interval or disable it completely.
* **Security Hardening:** Disable XML-RPC, REST API restrictions, file editor, user enumeration, and add security headers.
* **Database Cleanup:** Remove revisions, auto-drafts, trashed posts/comments, transient data, and optimize database tables.
* **Elementor Optimization:** Disable Font Awesome and load assets only on Elementor pages.
* **Import/Export Settings:** Easily transfer your configuration between sites.
* **Debug Logging:** Track outgoing request times to identify slow external calls.

== Installation ==
1. Upload the `optimizesho` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **OptimizeSho** in the admin sidebar to configure settings.

== Frequently Asked Questions ==
= Does Brotli compression work on all servers? =
No. Brotli requires the `brotli` PHP extension. If absent, the option remains available but will not function.

= Will disabling Google Fonts break my theme? =
Some themes heavily rely on Google Fonts; test on a staging site first. You can limit disabling to admin or frontend only.

= Can I use this alongside caching plugins? =
Yes, but avoid enabling overlapping features (like minification) to prevent conflicts.

== Changelog ==
= 1.0.0 =
* Initial release on WordPress.org.
* Complete rewrite for modern PHP 7.4+ and WordPress 6.7.
* Added Brotli support, Elementor conditional assets, REST API link removal, import/export.