=== Clicks Site Monitoring and Audit Logs ===
Contributors: sykologicist
Tags: cron, monitor, errors, activity, security
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clicks Site Monitoring and Audit Logs is a unified monitoring, logging, and audit-trail plugin for WordPress. It tracks crons, PHP errors, and administrative activity.

== Description ==

Clicks Site Monitoring and Audit Logs keeps an eye on the critical aspects of your WordPress site that usually go unnoticed:

1. **Cron Monitor**: Tracks scheduled WP-Cron jobs, logs execution times and durations, and catches missed/failed crons.
2. **Error Logger**: Intercepts PHP errors, warnings, fatals, and uncaught exceptions, deduplicates them, and attributes them to specific plugins or themes.
3. **User Audit**: Logs user login activities, detects failed login velocity (potential brute-force attempts), tracks user role changes, and monitors plugin/theme lifecycle actions.
4. **Alerts Engine**: Delivers alerts instantly or in digests via Email, Slack, Discord, or generic Webhooks.

= Zero Telemetry Policy =
Phase 1 of Clicks Site Monitoring and Audit Logs collects zero telemetry and sends no data back to the developers. All logs stay on your server, and external requests only occur if you explicitly configure webhooks.

== Installation ==

1. Upload the `clicks-site-monitoring-audit-logs` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the new 'Clicks Site Monitoring and Audit Logs' menu in your WordPress admin dashboard to configure settings and alert channels.

== Frequently Asked Questions ==

= Does this plugin affect site performance? =
No. All DB interactions are highly optimized, and the cron/error hooks run with minimal overhead.

= Can I use this on a Multisite network? =
Yes, Clicks Site Monitoring and Audit Logs supports Multisite. In Phase 1, it allows configuring and monitoring on a per-site basis.

== External services ==

This plugin can optionally send notifications to third-party messaging services if you configure webhook URLs in the Alerts Settings. If configured:

* Slack Webhook:
    * Domain: hooks.slack.com
    * Data Sent: Formatted JSON payloads containing details of cron failures, PHP error logs, and administrative user security events.
    * Terms of Service: https://slack.com/terms-of-service
    * Privacy Policy: https://slack.com/trust/privacy/privacy-policy

* Discord Webhook:
    * Domain: discord.com
    * Data Sent: Formatted JSON payloads containing details of cron failures, PHP error logs, and administrative user security events.
    * Terms of Service: https://discord.com/terms
    * Privacy Policy: https://discord.com/privacy

== Changelog ==

= 1.0.0 =
* Initial release of Clicks Site Monitoring and Audit Logs (Phase 1).

