=== Clenex===
Contributors: hidayatsafewp
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 6.8
Stable tag: 1.0.0
Tags: site analyzer, disk usage, optimization, 404 redirect, broken links
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Analyze and optimize your WordPress site with smart tools for disk space, performance, broken links, and duplicate files.

== Description ==

**CleneX** is a complete WordPress optimization plugin that helps site administrators analyze, clean up, and optimize their websites with ease.  
Quickly monitor disk usage, detect optimization opportunities, and maintain a healthy WordPress environment — all from a modern, easy-to-use dashboard.

= Key Features =

**📊 Total Site Size Analysis**
* Get a complete breakdown of your WordPress site's disk usage
* See detailed size information for uploads, plugins, themes, database, and WordPress core
* Track size percentages to identify the largest components of your site

**📁 File Type Breakdown**
* Analyze your site's content by file type (images, documents, archives, code, etc.)
* See the count and total size of each file type category
* Identify which file types are consuming the most space

**📄 Largest Files Detection**
* Automatically find the largest files on your WordPress site
* View file sizes and last modified dates
* Focus your optimization efforts on the files that will make the biggest impact

**🧹 Duplicate Media Detection**
* Scan your uploads folder for duplicate image files with identical content
* Group identical files together regardless of filename or location
* Calculate wasted space from duplicates to reclaim valuable disk space

**🗑️ Inactive Plugins & Themes Cleaner**
* Identify and safely remove deactivated plugins and unused themes
* View detailed information including size, version, and dependencies
* Bulk delete functionality with safety checks for dependencies
* Reclaim disk space and reduce security risks from outdated code

**📝 Bulk Dummy Content Remover**
* Scan for and remove placeholder content like "Hello World" posts and sample pages
* Identify content with lorem ipsum text or very short word counts
* Filter by post type, word count, and creation date
* Safely review and bulk delete or trash unwanted content

**🔄 Auto-Redirect Broken Links**
* Automatically detect and handle 404 errors to improve user experience and SEO
* Create custom redirect rules for specific URLs
* Log 404 errors to identify navigation issues
* Get intelligent suggestions for redirects based on content similarity
* Exclude specific patterns from redirection

**⚡ Realtime Disk Usage Monitor**
* Track your site's disk usage over time
* Get alerts for unusual growth patterns (hourly, daily, weekly, monthly)
* Identify potential issues before they become critical
* Auto-refresh option to keep monitoring throughout the day

**🧊 Image Optimization Report**
* Scan your media library for optimization opportunities
* Identify uncompressed images, oversized files, and non-web-friendly formats
* Get recommendations for image optimization tools and techniques

**🧠 Smart Optimization Suggestions**
* Receive intelligent, data-driven recommendations based on your site's analysis
* Prioritized suggestions (high/medium/low) to focus on what matters most
* Clear, actionable advice to improve your site's performance and storage usage

**⚙️ Modern React-based Dashboard**
* Clean, intuitive interface with tabbed navigation
* Real-time analysis with progress indicators
* Responsive design that works on all screen sizes
* Beautiful visualizations of your site's data

**🔧 Fast .htaccess & Robots.txt Tweaker**
* Safely edit critical files with a user-friendly interface
* Smart suggestions for common optimizations and security improvements
* Automatic backup before any changes are made
* One-click restore from backups if needed
* Syntax validation to prevent breaking your site
* Improve SEO and security with recommended configurations

= Who Is This For? =

* **WordPress Administrators** who want to keep their sites running smoothly
* **Developers** looking to optimize client sites
* **Site Owners** concerned about hosting storage limits
* **Anyone** who wants to maintain a fast, efficient WordPress installation

CleneX is the ultimate tool for WordPress site maintenance and optimization, giving you the insights you need to make informed decisions about your site's storage and performance.

== Installation ==

1. Download the plugin from WordPress.org.
2. Upload the `CleneX` folder to the `/wp-content/plugins/` directory.
3. Activate the plugin via the WordPress ‘Plugins’ menu.
4. Navigate to the "CleneX" menu in your WordPress dashboard.
5. Start analyzing, optimizing, and monitoring your WordPress site.


== External Services Used ==

### **1. MD5 Checksum**
**Purpose:** Used for detecting duplicate media files by comparing their MD5 hash values.

**What data is processed & when?**
- The plugin computes the MD5 checksum locally on your server for each media file.
- No file data is sent externally; all processing is done within your site.

**Terms of Service & Privacy Policy:**
- Not applicable, as no external server is used.

---

### **2. JSONPlaceholder API**
**Purpose:** Used to fetch demo user data for the demo block feature.

**What data is sent & when?**
- The plugin makes GET requests to JSONPlaceholder's `/users` endpoint when loading the demo block inside the editor.
- No personal or site data is sent to the service; it only fetches publicly available dummy data.
- Data is cached locally for 7 days to minimize API requests.

**Terms of Service & Privacy Policy:**
- [JSONPlaceholder Terms](https://jsonplaceholder.typicode.com/guide/)
- JSONPlaceholder is a free fake API service for testing and prototyping purposes.

---

### **3. HTTPS Redirect Suggestion**
**Purpose:** The plugin suggests an .htaccess code snippet to redirect HTTP traffic to HTTPS for better security.

**What data is processed & when?**
- This is not an external service but a code suggestion for the user's own server configuration.
- No data is sent externally; the code is simply provided as a suggestion in the File Tweaker module.
- The suggested code only runs on the user's own server if they choose to implement it.

**Terms of Service & Privacy Policy:**
- Not applicable, as no external service is used.


== Screenshots ==

1. Total Site Size Analysis Dashboard
2. File Type Breakdown with Visual Indicators
3. Bulk Dummy Content Remover
4. Auto-Redirect Broken Links
5. Realtime Disk Usage Monitor & Smart Optimization

== Frequently Asked Questions ==

= Is CleneX safe to use on my site? =

Yes! CleneX is designed to be non-destructive. It primarily analyzes your site and provides recommendations. Any actions that would modify your site (like deleting files) require explicit confirmation.

= Will CleneX slow down my site? =

No. CleneX runs its analysis in the WordPress admin area and doesn't affect your front-end performance. The analysis process is optimized to minimize server impact.

= How accurate is the duplicate file detection? =

Very accurate. CleneX uses MD5 checksums to identify files with identical content, regardless of filename or location. This ensures that only true duplicates are identified.

= Can I use CleneX on a multisite installation? =

Yes, CleneX works on WordPress multisite installations, analyzing the specific site you're currently managing.


== Upgrade Notice ==

= 1.0.0 =
Initial release of CleneX with powerful site analysis, optimization tools, and a modern React-based dashboard.



== Changelog ==

= 1.0.0 =
* New: Complete site size analysis with component breakdown
* New: File type categorization and size analysis
* New: Largest files detection and reporting
* New: Duplicate media detection using MD5 checksums
* New: Inactive plugins and themes cleaner with dependency detection
* New: Bulk dummy content remover for placeholder posts and pages
* New: Auto-redirect broken links with 404 logging and smart suggestions
* New: Realtime disk usage monitoring with growth alerts
* New: Smart optimization suggestions based on analysis results
* New: Image optimization reporting and recommendations
* New: Modern React-based dashboard with tabbed interface
* New: Visual indicators for storage usage and optimization priorities
