=== FreshRepo - Official Repository Reinstaller & Integrity Restorer ===
Contributors: dilhan
Tags: security, malware, reinstall, repository, integrity
Requires at least: 5.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Identify 3rd-party vs official items, and easily clean and reinstall files from the official repository with 1 click.

== Description ==

**FreshRepo** is a security-oriented repository manager specifically designed for post-hack remediation and file integrity restoration.

When a website is compromised, attackers frequently inject backdoors, webshells, and malicious PHP files into repository subdirectories. Traditional updates only overwrite existing matching filenames, leaving orphan malware files behind.

FreshRepo solves this:
* **Smart Origin Identification**: Automatically detects whether each installed item is hosted on the official WordPress.org repository or is a 3rd-party / custom / premium item.
* **1-Click Clean Reinstall**: Downloads pristine zip packages directly from WordPress.org, completely deletes the existing directory to purge injected backdoors, and extracts fresh clean files.
* **Bulk Reinstall Engine**: Replaces all official items in an automated sequential AJAX batch with real-time progress bars and live execution terminal.
* **Safety First**: Automatically generates full ZIP snapshots in your uploads directory before wiping any directory.
* **Detailed Audit Log**: Keeps a complete record of reinstallation history, timestamps, versions, and statuses.

== Installation ==

1. Upload the `freshrepo` folder to your `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the **WP FreshRepo** menu in your WordPress admin panel.

== Frequently Asked Questions ==

= Does FreshRepo delete uploaded media or database content? =
No. FreshRepo only replaces files within the target plugin's own directory in `wp-content/plugins/`. Your database options and uploads are untouched.

= Are backups created automatically? =
Yes. FreshRepo automatically creates a full ZIP archive of the existing plugin directory in `wp-content/uploads/wp-freshrepo-backups/` prior to any replacement.

== Changelog ==

= 1.0.0 =
* Initial release with origin detection, 1-click clean reinstall, bulk runner, and audit logging.