=== WD Online Support Diagnostics ===
Contributors: wdonlinedk
Donate link: https://www.paypal.com/ncp/payment/NKERMAVC4PXML
Tags: diagnostics, support, troubleshooting, site health, debug
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Local, privacy-conscious diagnostics and support reports for WD Online WordPress plugins.

== Description ==

WD Online Support Diagnostics helps site administrators collect useful technical information when troubleshooting WD Online plugins.

The plugin is designed for users who may not know which technical details are needed in a support request. It creates a structured local support report containing relevant WordPress environment information, active plugin versions, safe diagnostic checks and plugin-specific WD Online tests when supported by the installed plugin.

Features in version 0.1.1 include:

* Local support report generation.
* Copy support report with one click.
* Download support reports as TXT or JSON.
* Basic WordPress environment and configuration checks.
* Active plugin inventory with versions.
* Integration with WordPress Site Health -> Info.
* A standard filter that WD Online plugins can use to register their own diagnostic tests.
* Optional 15-minute local diagnostic event logging for WD Online plugins.
* Stable WD Online diagnostic/error code support.
* No automatic telemetry or external transmission of reports.

The plugin is diagnostic only. It does not automatically disable plugins, change settings, repair the database or modify the site configuration.

= Privacy =

Reports are generated locally on the WordPress site and are not sent automatically to WD Online or any third party.

The built-in report intentionally avoids site URLs, usernames, email addresses, IP addresses, passwords, WordPress salts, database credentials, API secrets, authentication cookies, customer data, complete order data and payment information.

Temporary diagnostic logging is only activated by an administrator and automatically stops after 15 minutes. WD Online plugins must explicitly opt in to logging diagnostic events.

= Support =

If you find this plugin useful, you can support WD Online via PayPal or card:
https://www.paypal.com/ncp/payment/NKERMAVC4PXML

== Installation ==

1. Upload the plugin ZIP through Plugins -> Add Plugin -> Upload Plugin.
2. Activate WD Online Support Diagnostics.
3. Open WD Online -> Support Diagnostics.
4. Copy or download the support report.
5. If a problem needs runtime diagnostics, start the temporary 15-minute diagnostic logging session, reproduce the issue, stop logging and generate the report again.

== Frequently Asked Questions ==

= Does this plugin send diagnostic data to WD Online? =

No. Version 0.1.1 does not automatically send telemetry, support reports or diagnostic data anywhere.

= Does it repair problems automatically? =

No. The first version is deliberately read-only. It reports useful information without changing the site configuration.

= Do other WD Online plugins require this plugin? =

No. WD Online plugins must continue to work independently. Support Diagnostics only adds optional troubleshooting capabilities.

= What happens when temporary diagnostic logging is enabled? =

A local 15-minute logging window is opened. Only plugins that explicitly use the WD Online diagnostic logging helper can add events. The event list is limited and is not sent externally.

== Changelog ==

= 0.1.1 =
* Replaced direct filesystem writability checks with the WordPress filesystem-compatible helper.
* Added nonce validation for diagnostic action notices.
* Removed the unused Domain Path header to avoid a missing-language-directory warning.
* Addressed the Plugin Check findings reported against version 0.1.0.

= 0.1.0 =
* Initial development release.
* Added local TXT and JSON support reports.
* Added core environment and configuration checks.
* Added active plugin inventory.
* Added Site Health information integration.
* Added extensible WD Online diagnostic provider interface.
* Added optional 15-minute diagnostic event logging.
* Added privacy-oriented event context filtering.
