=== Incident Agent ===
Contributors: craiggomes, pixelvise
Tags: monitoring, uptime, error tracking, security, alerts
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Complete WordPress monitoring with real-time alerts, error tracking, and uptime monitoring. Know about issues before your users do.

== Description ==

Incident Agent is a powerful WordPress monitoring plugin that connects your site to the IncidentWP monitoring platform. Get instant alerts when your site goes down, track all WordPress events, and monitor SSL certificates - all from a beautiful dashboard.

= Key Features =

* **Real-Time Uptime Monitoring** - Automated health checks every minute
* **Event Tracking** - Track user logins, plugin changes, theme updates, and more
* **Error Monitoring** - Catch PHP errors and warnings before they impact users
* **SSL Certificate Monitoring** - Get alerts 7 days before expiration
* **Email Alerts** - Instant notifications for critical issues
* **Beautiful Dashboard** - Monitor all your sites from one place
* **Free Plan Available** - Start monitoring for free, upgrade anytime

= How It Works =

1. Install and activate the Incident Agent plugin
2. Sign up for free at [app.incidentwp.com](https://app.incidentwp.com)
3. Connect your site using the provided API key
4. Start monitoring immediately!

= What Gets Tracked =

* User logins and logouts
* Failed login attempts
* Plugin installations, updates, and deletions
* Theme changes and updates
* WordPress core updates
* Post and page changes
* User profile updates
* Settings changes
* And much more!

= Free vs Pro =

This plugin is free and open source (GPL-2.0-or-later). A **Pro plan** is available at [incidentwp.com](https://incidentwp.com) and unlocks additional features such as extended event history, multi-site management, advanced alerting, and priority support. The free version is fully functional and does not require a paid plan.

= Privacy & Security =

* All data transmitted over HTTPS
* API key authentication
* No sensitive data stored
* GDPR compliant
* Open source code

= Documentation =

Full documentation is available at [incidentwp.com/docs/](https://incidentwp.com/docs/)

= Support =

Need help? Visit our [documentation](https://incidentwp.com/docs/) or email support@incidentwp.com

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Go to Plugins > Add New
3. Search for "Incident Agent"
4. Click "Install Now" and then "Activate"
5. Go to Incident Agent menu and follow the setup wizard

= Manual Installation =

1. Download the plugin ZIP file
2. Log in to your WordPress admin panel
3. Go to Plugins > Add New > Upload Plugin
4. Choose the ZIP file and click "Install Now"
5. Activate the plugin
6. Go to Incident Agent menu and follow the setup wizard

= After Installation =

1. Visit [app.incidentwp.com/register](https://app.incidentwp.com/register.php?plan=free&billing=monthly) to create a free account
2. Copy your API key from the dashboard
3. Go to IncidentWP > Settings in your WordPress admin
4. Paste your API key and click "Connect"
5. Your site is now being monitored!

== Frequently Asked Questions ==

= Is Incident Agent free? =

Yes! We offer a free plan that includes 1 site with 7 days of event history. Pro plans start at just $3/month.

= How often are sites monitored? =

Sites are checked every minute for uptime and availability. Events are tracked in real-time as they happen.

= What happens if my site goes down? =

You'll receive an instant email alert. The alert includes the error details and timestamp so you can respond quickly.

= Does this slow down my site? =

No. The agent is extremely lightweight and only logs events to a local database. Data transmission happens asynchronously in the background.

= Can I monitor multiple sites? =

Yes! Each site needs the agent plugin installed. You can manage all your sites from one dashboard at app.incidentwp.com.

= Is my data secure? =

Absolutely. All data is transmitted over HTTPS, and we never store sensitive information like passwords or payment details.

= Can I export my data? =

Yes, you can export event logs and reports from your dashboard at any time.

== Screenshots ==

1. Beautiful monitoring dashboard showing all your sites
2. Real-time event tracking with detailed logs
3. Uptime monitoring with status indicators
4. SSL certificate monitoring and alerts
5. Email alert notifications
6. Easy plugin setup and API key connection

== Changelog ==

= 1.0.3 =
* Security: Removed problematic wp_ajax hook to resolve WordPress.org plugin check warnings
* Compliance: Final fixes for WordPress.org approval requirements
* Code: Improved SQL query structure to avoid interpolation warnings
* Stability: Streamlined event tracking for better plugin compatibility

= 1.0.2 =
* Security: Added nonce verification to all form submissions
* Security: Fixed unsafe SQL queries with proper wpdb::prepare()
* Security: Added user capability checks for file edit tracking
* Compliance: Extracted inline scripts to separate JS file with proper enqueuing
* Compliance: Updated contributor list with WordPress.org usernames
* Compliance: Improved code security and WordPress.org standards

= 1.0.1 =
* Added Mailtrap email integration
* Improved error tracking
* Enhanced SSL monitoring
* Better mobile UI
* Cache-busting for fresh data display
* Performance improvements

= 1.0.0 =
* Initial release
* Real-time uptime monitoring
* Event tracking system
* SSL certificate monitoring
* Email alerts
* Dashboard interface
* Free and Pro plans

== Upgrade Notice ==

= 1.0.3 =
Final WordPress.org compliance update. Resolves all plugin check warnings and ensures full compatibility with WordPress.org standards. Essential update for plugin approval.

= 1.0.2 =
Important security update with nonce verification, SQL injection prevention, and WordPress.org compliance fixes. Recommended update for all users.

= 1.0.1 =
Improved email notifications and better mobile experience. Recommended update for all users.

== Privacy Policy ==

Incident Agent collects and transmits WordPress event data to the IncidentWP monitoring platform. This includes:

* Site URL and WordPress version
* Plugin and theme information
* User activity (logins, logouts, profile changes)
* Error logs and PHP warnings
* Uptime and performance metrics

No personally identifiable information (PII) such as passwords, email content, or payment details is collected or transmitted.

For more information, visit our [Privacy Policy](https://app.incidentwp.com/privacy)
