=== PixRem – Unused Image Cleaner ===
Contributors: ommediasa
Tags: media cleaner, unused images, media library, image optimizer, remove images
Requires at least: 5.4
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Support URI: https://pixrem.ommedia.link/support-form/

Find and delete unused images in your Media Library. Backup, restore, whitelist, and scan support for all major page builders.

== Description ==

**PixRem** scans your WordPress site to find images no longer in use and helps you safely delete them to save storage space and improve performance.

Key benefits:
- 🕵️‍♂️ **Comprehensive detection**: scans posts, pages, custom post types, serialized data, ACF, Elementor, Divi, Bricks, WPBakery
- 🛒 **WooCommerce support**: finds featured & gallery images
- ⚙️ **Theme options & SEO**: custom logos, backgrounds, Yoast OG images, site icon
- 🛡 **Automatic backup**: every deleted image is saved to /wp-content/uploads/pixrem-backups/YYYY/MM/
- 📝 **Log system**: review all deletions and restore individual images
- 🔒 **Whitelist / Exclude**: prevent deletion of critical files by ID or path

== Installation ==

1. Upload the pixrem folder to /wp-content/plugins/
2. Activate the plugin via the **Plugins** menu
3. Go to **PixRem** in the admin sidebar
4. Click **Start Scan** and review unused images

== Frequently Asked Questions ==

= Is it safe to delete images? =
Yes. Deleted files are backed up automatically, so you can restore them if needed.

= How do I restore a deleted image? =
Use the **Restore from Backup** link shown after deletion, or copy the file manually from /wp-content/uploads/pixrem-backups/YYYY/MM/.

= How does the whitelist work? =
Enter attachment IDs (comma-separated) or upload paths/folders (one per line) in **PixRem → Whitelist** to always skip those files.

== Changelog ==

= 1.0.3 =
* Removed all deletion limit references
* Removed Freemius and external license checks
* Minor code cleanups and improved compatibility notes

= 1.0.2 =
* Removed donate link
* Removed references to external licensing SDKs and any remote license checks
* Secured restore-handler.php against direct access

= 1.0.1 =
* Minor fixes and wording improvements
* Updated translation strings
* Enhanced backup reliability

= 1.0 =
* Initial stable release
* Scan engine for posts, postmeta, WooCommerce, SEO, theme options
* Backup before delete and log system

== Upgrade Notice ==

= 1.0.3 =
* Removed all deletion limit references and improved compliance with guidelines.

= 1.0.2 =
* Removed donate link and external license check references
* Improved compliance with WordPress.org guidelines
* Secured restore-handler.php against direct access

== Screenshots ==

1. **Progress bar** during scanning  
2. **Unused images list** with delete buttons  
3. **Backup & restore** options  
4. **Whitelist** page for excluding files

**Ready to clean your media library?** Start scanning now with PixRem!
