=== ADT Shield - WordPress Malware Scanner ===
Contributors: adnanthemes
Tags: security, malware scanner, malware, scanner, wordpress security
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
.5.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Scan WordPress core, plugins, themes and uploads for malware and damaged files, and repair medium and low risk files in one click.

== Description ==

ADT Shield (ADT stands for AdnanThemes, the author of this plugin; it is not affiliated with any other company that uses the letters ADT) is a focused malware scanner. Press one button and it checks your whole WordPress install.

**What the scan does**

* Compares WordPress core files with the official release.
* Compares plugins from WordPress.org with their official checksums, and lists files that are not in the official package.
* Looks for known malware patterns in every PHP and JavaScript file in themes, plugins, mu-plugins and uploads, including PHP hidden inside images and scripts hidden in SVG and HTML files.
* Finds damaged files: empty or cut-off PHP, syntax errors, broken or incomplete pictures.
* Flags risky files lying in public folders, such as backups, logs and copies of wp-config.php.
* Explains every result in plain words: what it is and why it matters.

**Dashboard and reports**

* A dashboard with two cards: Scan (security score and last scan details) and Reports.
* Reports show the latest scan as charts: findings by status, by area and by type, and a security score trend over your last scans. Reports are view-only.

**Repair**

* Medium and low risk files that are safe to move can be repaired with one click. The file is moved to a quarantine folder where it cannot run. Nothing is deleted, and an Undo link puts the file back.

= Important notes =

Malware detection is pattern based. It can miss new threats and can occasionally flag harmless code, so review each finding. Keep WordPress, themes and plugins updated and keep backups off the server.

== External services ==

This plugin contacts WordPress.org only while you run a scan, to compare files with the official copies. No information about your site other than the plugin slug and version being checked is sent.

* api.wordpress.org (core checksums): https://api.wordpress.org/core/checksums/1.0/ - receives the WordPress version and locale. Terms: https://wordpress.org/about/privacy/
* downloads.wordpress.org (plugin checksums): https://downloads.wordpress.org/plugin-checksums/ - receives the slug and version of the plugin being checked. Terms: https://wordpress.org/about/privacy/

Like every request made with WordPress's HTTP API, these requests carry the standard WordPress user agent, which includes your WordPress version and site address.

The scan also requests a few addresses on your own site (for example a backup or log file it found in a public folder) to see whether that file can be downloaded from the internet. Nothing is sent to any other server. The plugin does not track you, does not send data to AdnanThemes, and does not load code from other servers.

== License ==

ADT Shield is released under the GNU General Public License version 2 or later (GPLv2+). The full text is in license.txt inside the plugin folder and at https://www.gnu.org/licenses/gpl-2.0.html.

All JavaScript and CSS in the plugin is written by AdnanThemes and shipped as readable, unminified source in the assets folder.

== Installation ==

1. Upload the plugin to /wp-content/plugins/ or install it from the Plugins screen.
2. Activate it. A new ADT Shield menu appears in the admin.
3. Open ADT Shield and press Start scan.

== Frequently Asked Questions ==

= Does it delete files automatically? =

No. Nothing is changed or moved until you press Repair, and every repair can be undone.

= Where do repaired files go? =

Into a quarantine folder inside your uploads folder (wp-content/uploads/adt-shield-quarantine). The files there cannot run. Use the Undo link to put a file back.

= Will uninstalling delete my files? =

No. Uninstall removes settings only. Quarantined files stay in the uploads folder so nothing irreplaceable is lost.

== Changelog ==

= 1.4.1 =
* Fixed high-risk finding count in scan history and the security score trend.
* Uninstall cleans Lite audit log and scheduled scan step entries.
* Retained all Lite 1.3.0 scanning, reporting, quarantine, restore, and ignored findings features.

= 1.4.0 =
* First release: one-click scan of core, plugins, themes and uploads, a dashboard with charts, view-only reports, and Repair with Undo for damaged and medium or low risk files.

== Changes in 1.4.0 ==
* Daily scan scheduled with bounded resumable WP-Cron steps. WP-Cron needs site traffic or a real cron runner.
* Lightweight capped audit log of plugin events.
* Note: quarantine remains in uploads for compatibility; restrict access at web-server level on Nginx.
