=== MainWP Lighthouse Extension ===
/**
 * Plugin Name: MainWP Lighthouse Extension
 * Plugin URI: https://mainwp.com
 * Description: MainWP Lighthouse Add-on is used for measuring the quality of your websites. It uses the Google PageSpeed Insights API to audit performance, accessibility and search engine optimization of your WordPress sites.
 * Version: 5.2
 * Author: MainWP
 * Author URI: https://mainwp.com
 * Documentation URI: https://mainwp.com/help/category/mainwp-extensions/lighthouse/
 */

== Changelog ==

= Version 5.2 - 1-13-2026 =
* Added: Server-side DataTables support to the Lighthouse dashboard for improved performance and data filtering.
* Updated: Optimized processing limits (50 items per run) to reduce memory usage and improve responsiveness.
* Updated: Improved API error handling with structured JSON responses.

= Version 5.1.2 - 9-10-2025 =
* Fixed: Corrected a problem where the REST API endpoint for a single site results was returning results for all sites instead of the requested site.
* Fixed: Resolved a bug where site information was missing in the /audit endpoint response.

= Version 5.1.1 - 7-17-2025 =
* Fixed: Resolved an issue where scheduled audits were failing for newly added sites.
* Updated: Improved internal logic for updating or inserting Lighthouse records, resulting in more unified and reliable data management.
* Updated: Delegated data update logic to a dedicated method for better maintainability.
* Updated: Reformatted code for consistency and readability without affecting functionality.

= Version 5.1 - 6-10-2025 =
* Fixed: Issue with the page reloading after closing the Lighthouse Audit modal.
* Fixed: Problem with automated audits not completing the audit cycle consistently.
* Fixed: Issue with scheduled tasks persisting after MainWP Dashboard or extension deactivation to prevent background process conflicts.
* Added: FCP (First Contentful Paint) data display in "Manage Sites" and "Monitoring" table columns for more comprehensive performance insights.
* Added: Score tracking functionality that stores previous audit scores to enable performance comparison over time.
* Added: Score trend indicators that appear next to score numbers, showing whether performance has improved, declined, or remained stable since the last scan.
* Added: Placeholder elements in widgets when no Lighthouse data is available for sites to improve user experience.
* Added: Support for MainWP REST API v2
* Updated: Automated audit frequency setting labels for improved clarity.
* Updated: Score display in the Individual style widget to use a progress bar UI element for better visual representation of scores and score changes.
* Updated: Site column to include "Jump to WP Admin" icon link and site URL alongside the site name for easier navigation.
* Updated: Action menu styling in the Lighthouse Dashboard table for improved usability.
* Updated: Score label styling in the Lighthouse Dashboard table for better readability.
* Updated: "Last Audit" column to display time in elapsed format for more intuitive time reference.
* Updated: Settings page heading style to match the MainWP Dashboard Settings design for consistency.
* Updated: "Manage Sites" and "Monitoring" table column output to display Performance Score with trend indicators.
* Updated: Lighthouse Dashboard button styling in the Lighthouse Widget for improved visual appeal.
* Updated: General add-on styling to prominently display the 5 best and worst performing sites based on average scores.
* Dev: New `mainwp_lighthouse_count_top_bottom` filter to allow customization of the number of sites displayed in the Lighthouse widget.

= 5.0.2 - 5-29-2024 =
* Updated: Compatibility with the latest DataTables library version

= 5.0.1 - 4-9-2024 =
* Updated: Performence improvments for faster data loding in the Manage Sites table.

= 5.0 - 2-27-2024 =
* Updated: MainWP 5.0 compatibility

= 4.0.5 - 8-15-2023 =
* Added: Support for Flexible Widgets
* Updated: API key encryption method

= 4.0.4 - 5-19-2023 =
* Updated: The `audit` API endpoint required parameter
* Updated: The `results` API endpoint required parameter

= 4.0.3 - 5-12-2023 =
* Added: Support for Action Logs to catch potentials errors from the PageSpeed API
* Updated: Improvements with running scheduled audits
* Updated: REST API authentication process

= 4.0.2 - 6-21-2022 =
- Added: WP Nonce verification to the Go to WP Admin request for additional security

= 4.0.1 - 6-1-2022 =
* Added: Responsive feature to the audits table
* Fixed: An issue with running audits via MainWP REST API
* Fixed: Lighthouse report page layout on mobile device
* Updated: Bulk actions menu size on the Extension page
* Updated: Match notification and audit schedule

= 4.0 - 12-20-2021 =
* Updated: PHP 8 compatibility

= 4.0-beta2 - 11-18-2021 =
* Fixed: Multiple typos in info messages and option labels
* Fixed: An issue with rendering extension widget on 3 column layout
* Fixed: An issue with loading site ID in URLs
* Fixed: An issue with showing audit details items
* Fixed: Multiple incorrect URLs in info messages
* Fixed: Incorrect table headers in the extension widget
* Added: All audits filter in audit report page
* Added: Option to hide/show columns in the Lighthouse dashboard page
* Added: Option to show/hide the Lighthouse widget on the Overview page
* Updated: PHP 8 compatibility
* Updated: Failed audit icon
* Updated: Running audit process indicator to show more details

= 4.0-beta1 - 11-10-2021 =
* Beta 1 release
