=== UpSnap Website Monitoring & Uptime Dashboard ===
Contributors:      appsumit
Tags:              monitoring, uptime, incidents, status, performance
Requires at least: 5.8
Tested up to:      6.9
Requires PHP:      7.4
Stable tag:        1.0.5
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Official UpSnap monitoring integration for WordPress. Monitor uptime, track incidents, and view performance stats from your dashboard.

== Description ==

UpSnap delivers real-time monitoring and actionable insights so you can detect downtime, performance issues, and security risks before they impact your users.

**Core Monitoring Features:**

- Reachability monitoring with uptime tracking, response times, HTTP status checks, and historical trends
- SSL/TLS certificate validation with expiry alerts and security checks
- Broken link scanning for internal and external URLs
- Google Lighthouse analysis with Performance, Accessibility, Best Practices, and SEO scores
- Domain health checks including DNS validation and expiry monitoring
- Mixed content detection to identify insecure resources on HTTPS pages

**Multi-Region Monitoring:** Monitor your website from multiple global locations to detect regional downtime, latency issues, and real user impact across different geographies.

**Public Status Page Monitoring:** Create and share public status pages to display uptime, performance history, and live monitoring stats with your users or clients.

**Incidents Lists & Reporting:** Track monitoring incidents with detailed timelines, status history, recovery tracking, and per-monitor reporting for better visibility and troubleshooting.

**Rich Notification Integrations:**
Get real-time alerts through multiple channels: Email, Slack, Discord, SMS, Telegram, Google Chat, Microsoft Teams, Webhooks, PagerDuty, Zapier, and more integrations coming soon.

**Website Monitoring:** Comprehensive website health monitoring including availability, performance checks, SSL status, and content integrity monitoring in one place.

UpSnap helps WordPress developers, agencies, and site owners maintain reliable, secure, and high-performing websites - all from a simple, integrated dashboard.

== External services ==

1. This plugin integrates with the UpSnap API ([https://api.upsnap.ai](https://api.upsnap.ai)) to provide real-time website monitoring, uptime tracking, and performance analysis. 

    Usage of this service is required for the plugin's core functionality.

    - What data is sent: 
        - Site URLs and server hostnames for reachability checks.
        - Authentication tokens to securely sync data with your UpSnap account.
        - Monitor configurations (e.g., check intervals, notification settings).
    - Why: 
        - To perform global uptime checks from multiple regions.
        - To generate historical performance charts and response-time metrics.
        - To provide SSL/TLS expiry alerts and SEO/Lighthouse scoring.
    - Privacy & Terms: 
        - Privacy Policy: [https://upsnap.ai/privacy](https://upsnap.ai/privacy)
        - Terms of Service: [https://upsnap.ai/terms](https://upsnap.ai/terms)

2. **ipapi (https://ipapi.co)**
   - **Purpose:** Used once during initial plugin setup to resolve the administrator's IP address to a country for localized monitoring telemetry.
   - **Data Sent:** The user's IP address.
   - **Privacy Policy:** [https://ipapi.co/privacy/](https://ipapi.co/privacy/)


## Privacy & Tracking

To help us improve our service and troubleshoot issues, this plugin collects a one-time installation telemetry payload when the dashboard is first opened by an administrator.

The following specific data is collected and sent to the UpSnap API securely:
- **Server Data:** WordPress version, PHP version, Site URL, and plugin version.
- **Administrator Data:** Email address, display name, and (if available in user meta) phone number and company name of the user who first accesses the dashboard.
- **Client/Browser Data:** User-Agent (browser), OS platform, browser language, screen resolution, and local timezone.
- **Network Data:** The user's IP address, which is resolved to a country using the external `ipapi.co` service (as disclosed above).

This telemetry is collected strictly for diagnostic purposes, support enablement, and aggregated usage metrics.

== Installation ==

1. Upload the `upsnap-monitoring` folder to the `/wp-content/plugins/` directory, or install directly through the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** screen in WordPress. Upsnap will appear in your admin sidebar.
3. Navigate to **Upsnap > Settings** to create a account.

== Frequently Asked Questions ==

= What WordPress version is required? =
WordPress 5.8 or higher is required.

= What PHP version is required? =
PHP 7.4 or higher is required.


== Upgrade Notice ==

= 1.0.5 =
Adds SSL/domain expiry alerts, auto-recheck on publish, and a revamped Dashboard widget with live uptime/incident stats. Fixes monitor-edit channel errors and stale plan/monitor-count caching after switching accounts.

= 1.0.4 =
This update introduces vital stability, reliability, and security fixes for installation tracking.

= 1.0.3 =
This update adds unique installation tracking and telemetry to help us improve the monitoring service. We recommend all users update to this version.

= 1.0.2 =
Contributors changed

= 1.0.1 =
Version update and readme improvements.

= 1.0.0 =
Initial release.

== Documentation ==

Full documentation: [https://github.com/Appfoster/upsnap-docs/blob/master/wordpress/Home.md](https://github.com/Appfoster/upsnap-docs/blob/master/wordpress/Home.md)

== Changelog ==

= 1.0.5 =
* Added SSL/domain certificate expiry alerts with a dismissible dashboard notice.
* Added automatic monitor recheck on post/page publish, with an on/off toggle in Settings.
* Added `upsnap_status()` / `upsnap_all_statuses()` template functions and an `[upsnap_status]` shortcode for theme developers.
* Added an optional Organisation ID setting for accounts belonging to more than one organisation.
* Improved the WordPress Dashboard widget with search, sorting, and live uptime/incident stats; free-plan accounts now see a capped list with an upgrade prompt.
* Changed monitor links (Dashboard widget and Monitors list) to set the monitor as primary and open the plugin's own Dashboard tab, instead of linking out to the Upsnap web app.
* Fixed a "channel does not belong to the selected scope" error when editing monitors with notification channels no longer valid in the current scope.
* Fixed stale plan and down-monitor-count data being served after reconnecting or switching Upsnap accounts.
* Fixed incorrect browser tab titles and sidebar highlighting on several admin pages.
* Improved installation and uninstallation tracking reliability.

= 1.0.4 =
* Implements critical security, reliability, and robustness improvements for installation telemetry and tracking endpoints.

= 1.0.3 =
* Added unique installation tracking to improve platform telemetry.
* Dynamic collection of WordPress version, PHP version, and Site URL for better support.
* Improved activation flow with robust dependency loading.

= 1.0.2 =
* Contributors changed

= 1.0.1 =
* Updated documentation links and readme formatting.
* Standardized versioning across plugin files.

= 1.0.0 =
* Initial release of the UpSnap Website Monitoring & Uptime Dashboard plugin.
* Integrated uptime monitoring, SSL checks, and broken link scanning.
* Added Google Lighthouse and domain health analysis.

== Changelog (detailed) ==

See: [https://github.com/Appfoster/upsnap-docs/blob/master/wordpress/changelog.md](https://github.com/Appfoster/upsnap-docs/blob/master/wordpress/changelog.md)

== Contact ==

Email: [support@upsnap.ai](mailto:support@upsnap.ai)
Website: [https://upsnap.ai/](https://upsnap.ai/)
