=== Greenify ===
Contributors: digitalorigin
Tags: sustainability, idle, overlay, performance, energy saving
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.51
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Reduce visual activity on idle pages with an elegant standby overlay for WordPress, validated through Greenify Cloud, with free installs that work immediately without manual activation.

== Description ==

Greenify detects visitor inactivity and shows a polished standby screen after 30 seconds by default. The free package connects to Greenify Cloud, which validates the connected site, scans public HTML pages remotely, and keeps the free allowance available for websites with up to 15 live pages while the basic runtime remains active.

Included in the free package:

* Fixed 30-second inactivity timeout
* Default Greenify branding
* Built-in icon and visual style
* Powered by Digital Origin line displayed in the overlay
* Lightweight vanilla JavaScript behavior
* Immediate wake-up on the first interaction
* Safe for cached pages and common crawlers
* Greenify Cloud plan checks and remote page counting
* Free allowance for up to 15 live public HTML pages on a single domain

Paid plans available on wp-greenify.com:

* PRO 16-50 pages
* PRO 51+ pages
* Custom enterprise and agency plans

== External services ==

This plugin communicates with Greenify Cloud hosted at [wp-greenify.com](https://wp-greenify.com/) when a site token is connected.

Greenify Cloud is used to:

* Validate the site token
* Return the current plan status and feature availability
* Crawl the connected domain remotely to count live public HTML pages
* Receive aggregate public telemetry used for global impact counters
* Start the guided upgrade flow when the user explicitly asks to install the separate PRO package

When the plugin connects or refreshes its status, it sends:

* Site token
* Site domain
* Plugin version
* Package edition
* Instance ID

When public telemetry is sent, it may include:

* Anonymous instance ID
* Event type (`active`, `inactive`, `session`)
* Session seconds for completed standby sessions
* Estimated watts saved during the session

When PRO analytics is enabled in the separate PRO package, the site may also send:

* Session seconds
* Wake source
* Page path
* Analytics ingest token issued by the local site

When the user explicitly starts the guided PRO upgrade from the plugin backend, WordPress may download the separate Greenify PRO package from a signed URL on wp-greenify.com and install it automatically.

Service terms: [https://wp-greenify.com/termini-e-condizioni/](https://wp-greenify.com/termini-e-condizioni/)
Service privacy policy: [https://wp-greenify.com/privacy-policy/](https://wp-greenify.com/privacy-policy/)

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate **Greenify** from the Plugins screen.
3. Open **Greenify** in the WordPress admin menu.
4. Free installs are ready to use immediately, while paid plans can be connected from the Cloud panel when needed.

== FAQ ==

= Can I use Greenify for free? =

Yes. The free package is available for one domain with up to 15 live public HTML pages discovered by Greenify Cloud.

= What happens if my site has more than 15 pages? =

Greenify Cloud will mark the site as upgrade required, keep the basic runtime active in the free package, and offer an upgrade path to the separate PRO package.

= Can I change the timeout in the free package? =

No. The free package is intentionally fixed at 30 seconds. Custom timeout is available in paid plans through the PRO package.

= Does it affect SEO? =

No. The effect is applied on the frontend with JavaScript and common bots are ignored.

== Changelog ==

= 1.1.51 =
* Fixed the remaining plugin-checker errors in the usage analytics insert queries.

= 1.1.50 =
* Updated the tested-up-to header to match the current WordPress release checked by the plugin validator.

= 1.1.49 =
* Fixed the remaining plugin-checker errors in the frontend standby markup and usage analytics insert query.
* Kept the free package identity and upload structure intact while publishing a new build.

= 1.1.48 =
* Fixed remaining frontend text domain mismatches found by the second plugin checker report.
* Reworked the usage analytics daily insert query to avoid the checker warning on the intermediate SQL variable.

= 1.1.47 =
* Fixed WordPress plugin checker i18n text domain issues for the free package.
* Added translator comments for placeholder strings.
* Hardened usage statistics database queries for repository review.

= 1.1.46 =
* Changed the free upgrade button to open the public plans page instead of the old install flow.
* Simplified the free cloud card so it no longer shows refresh or install actions.
* Kept free installs active immediately without requiring a site token.

= 1.1.45 =
* Removed the remaining cloud warning box and status-refresh/install buttons from the free license card.
* Made the free package active immediately on install so it no longer depends on a site token to start.
* Kept the upgrade path available while simplifying the free admin screen.

= 1.1.44 =
* Removed the mandatory free activation prompt from the Cloud card so free installs work immediately.
* Kept the allowance and status warnings visible while hiding the manual token entry and wp-greenify.com management buttons from the free screen.
* Updated the release metadata and install guidance to match the new free-flow behavior.

= 1.1.43 =
* Refactored the plugin to use Greenify Cloud site tokens, remote page limits and legacy key migration.
* Added the free allowance for up to 15 live pages on a single domain.
* Reworked admin screens around plan status, live page count and cloud connection.
* Added guided PRO installation from the backend while keeping the free runtime active above the Free allowance.

