Lwakit Carbon Footprint Tracker

Сүрөттөө

Lwakit Carbon Footprint Tracker (Lwakit CFT) calculates each page’s real-world environmental footprint using the Sustainable Web Design Model methodology (data transfer × energy intensity × grid carbon intensity), combining actual WordPress traffic data — not synthetic, one-off tests — with server-side metrics gathered natively in PHP.

Free version features:

  • (Free) Real-Time Carbon Dashboard — An Eco-Score gauge (A–F letter grade) rendered with plain HTML5 Canvas, a 30-day graph of page views vs. estimated daily gCO2e, summary tiles (monthly gCO2e, data transferred, green-hosting status), and a “heaviest assets” breakdown of your top 5 largest media files.
  • (Free) Per-Page Traffic Mapping — Measures real page weight on the front end: actual HTML byte count, local script/style file sizes, local image sizes, and database query overhead, accumulated per page with daily granularity.
  • (Free) Per-Page Impact Ledger — Adds sortable “Page Weight”, “Traffic Vol.” and “Total Monthly CO2e” columns to your Posts and Pages list tables.
  • (Free) Lightweight Frontend Trust Badge — A [lwakit_eco_badge] shortcode and a matching Gutenberg block render an inline-SVG “Eco-Friendly Site” badge (zero extra image requests) in 3 style variants, with a settings-based default and a live-preview customizer.
  • (Free) Basic Actionable Recommendations — Plain-language alerts generated from your collected metrics and media library, e.g. oversized images not in a modern format, or large non-minified scripts.
  • (Free) Settings — Pick your host from a bundled offline green-hosting provider list, optionally verify via the Green Web Foundation API, edit the assumed grid carbon intensity, and control whether data is removed on uninstall.
  • (Free) Automated ESG/Sustainability PDF Audits — Generate a branded (your own logo, company name and accent color), downloadable PDF carbon-footprint audit report on demand, or email it directly to a client — built for agencies that manage sites on behalf of others.
  • (Free) Green Grid Caching — Optional, off by default. Shift to an aggressive page cache during detected peak carbon-intensity hours on your regional power grid, to reduce server compute during dirty-energy windows. Choose a fully offline manual schedule, the free UK National Grid ESO API, or your own ElectricityMaps account for global coverage.

Every number Lwakit Carbon Footprint Tracker shows is a modeled estimate, not a metered measurement — the methodology and every constant used are documented in the plugin’s source code and summarized in the dashboard’s “About these estimates” note.

A separate premium version with deeper optimization tooling is planned for the future; this free version is a complete, standalone tracking and reporting tool on its own and does not require any premium add-on to function.

External services

Lwakit Carbon Footprint Tracker’s core features (dashboard, tracking, recommendations, badge) work entirely offline and make no external network requests.

Optional: Green Web Foundation API verification. If you explicitly enable “Verify via Green Web Foundation API” on the Settings Green Hosting tab (this setting is off by default), Lwakit Carbon Footprint Tracker sends your site’s domain name (e.g. example.com, taken from your WordPress Site Address, or a domain you enter manually) to:

https://api.thegreenwebfoundation.org/greencheck/{your-domain}

This is a GET request containing only the domain name — no visitor data, page content, or personal information is included. It is used solely to check whether your hosting domain appears on the Green Web Foundation’s public registry of verified green hosts, so Lwakit Carbon Footprint Tracker can display a “Verified” badge instead of relying on the bundled offline list. The result (a true/false flag) is cached locally in a WordPress transient for 30 days to minimize repeated requests, and the request is made only when an administrator views data that needs it — never on visitor-facing front-end page loads.

This service is operated by The Green Web Foundation, a third party independent of Lwakit Carbon Footprint Tracker. See their privacy policy and terms of service for how they handle this request.

Optional: UK National Grid ESO Carbon Intensity API. If you select “UK National Grid ESO Carbon Intensity API” as your Green Grid Caching data source on the Settings Green Grid Caching tab (Green Grid Caching itself is off by default, and this data source is one of three choices, not the default), Lwakit Carbon Footprint Tracker polls, roughly every 30 minutes via WordPress’s scheduled tasks:

https://api.carbonintensity.org.uk/intensity

This is a plain GET request with no parameters and no API key — no site data, domain name, or personal information of any kind is sent. It returns the current UK national grid carbon-intensity reading, used only to decide whether to activate the page cache. This service is free, requires no registration, and is operated by National Grid ESO, a third party independent of Lwakit Carbon Footprint Tracker. See their terms and data policy for how they handle this request.

Optional: ElectricityMaps API. If you select “ElectricityMaps API” as your Green Grid Caching data source and supply your own account’s zone code and API key, Lwakit Carbon Footprint Tracker polls, roughly every 30 minutes:

https://api.electricitymap.org/v3/carbon-intensity/latest

This request sends only the zone code and your own API key (as an authentication header) — no other site or visitor data. This service is operated by ElectricityMaps, a third party independent of Lwakit Carbon Footprint Tracker, and requires your own ElectricityMaps account. See their privacy policy and terms of service for how they handle this request.

No other external service is contacted by this plugin.

Скриншоттор

Блоктор

This plugin provides 1 block.

  • Lwakit Eco Badge Displays an inline-SVG "Eco-Friendly Site" trust badge with no extra image requests.

Орнотуу

  1. Upload the lwakit-carbon-footprint-tracker folder to /wp-content/plugins/, or install the plugin zip through Plugins Add New Upload Plugin.
  2. Activate Lwakit Carbon Footprint Tracker through the Plugins menu in WordPress.
  3. Go to Lwakit CFT Settings and select your hosting provider, review the assumed grid carbon intensity, and choose your default badge style.
  4. Visit Lwakit CFT Dashboard after some front-end traffic has been recorded to see your Eco-Score and 30-day chart.
  5. Optionally add the [lwakit_eco_badge] shortcode or the “Lwakit Eco Badge” block to any page or post.
  6. Optionally visit Lwakit CFT Reports to download or email a branded PDF audit report, after customizing your logo/company name/accent color on the Settings PDF Reports tab.
  7. Optionally enable Green Grid Caching on the Settings Green Grid Caching tab if you’d like the site to cache aggressively during your grid’s dirtiest hours.

FAQ.KG

How accurate are the carbon estimates?

They are estimates, not precise measurements. Lwakit Carbon Footprint Tracker uses the published Sustainable Web Design Model methodology (energy per gigabyte transferred × a grid carbon-intensity assumption you can edit) combined with real, server-measured page weight from your own site’s traffic. Actual emissions vary by visitor device, network path, and local energy mix, and no software can measure true end-to-end emissions without instrumenting every device and network hop involved. Treat the numbers as a consistent, comparable trend indicator rather than an audited absolute figure.

Does Lwakit Carbon Footprint Tracker slow down my site?

Lwakit Carbon Footprint Tracker only measures pages that are already being rendered — it buffers the page output to count its size and reads file sizes already known to WordPress (enqueued scripts/styles, referenced local images), it does not add new database tables to every query, fetch additional remote resources, or block/modify your page output. Metrics are written once per page load using a single upsert query. Your own visits as a logged-in administrator are skipped automatically so testing doesn’t add overhead or skew your stats.

The one exception is the optional, off-by-default Green Grid Caching feature — see the next question.

What data leaves my site?

By default, none. Green-hosting detection works fully offline against a static list of known providers bundled with the plugin. The only outbound network request Lwakit Carbon Footprint Tracker can make is an optional, opt-in check against the Green Web Foundation’s public API, which is off by default — see “External services” below for exactly what that sends.

Does Lwakit Carbon Footprint Tracker track my visitors personally?

No. Lwakit Carbon Footprint Tracker aggregates page weight, view counts, and database query counts per page per day. It does not store IP addresses, cookies, or any other visitor-identifying information.

Will this plugin block scripts or convert my images?

Not in the free version. Image conversion and script blocking remain out of scope for this version.

Can I generate a PDF report, or use a page cache?

Yes — both are included free. PDF reports: go to Lwakit CFT Reports to download or email a branded carbon-footprint audit, after customizing your logo/company name/accent color on Settings PDF Reports. The report is generated locally (no external service involved) and, if emailed, is sent only through your own site’s mail configuration — never through Lwakit’s or any third party’s servers.

Green Grid Caching (Settings Green Grid Caching, off by default): when enabled, the site shifts to an aggressive page cache during detected peak carbon-intensity hours on your regional grid. This is the one place this plugin does change front-end behavior, and only while this optional feature is turned on. It only ever serves cached pages to visitors with no logged-in, comment-author, or cart/session cookie present — never to a logged-in user, and never a search result, feed, 404, or password-protected page. Two trade-offs worth knowing: while a page is served from cache during a peak window, WordPress does not run for that request, so that view is not added to your traffic/CO2e metrics (an expected consequence of genuinely skipping backend work, not a bug); and if another plugin personalizes anonymous page output using its own cookie or session mechanism that this plugin doesn’t recognize (membership/paywall plugins, quiz progress, A/B testing, etc.), that personalization is not automatically detected — test carefully before relying on this feature alongside such a plugin. The feature automatically stays off entirely if another caching plugin (WP Rocket, W3 Total Cache, WP Super Cache, or LiteSpeed Cache) is already active.

Сын-пикирлер

There are no reviews for this plugin.

Contributors & Developers

“Lwakit Carbon Footprint Tracker” is open source software. The following people have contributed to this plugin.

Мүчөлөрү

Өзгөртүүлөр

1.1.1

  • Changed: the Green Grid Caching status is now shown as a colored pill at the top of Settings Green Grid Caching (above the enable toggle), with a distinct icon and color per state — red “Disabled”, green “Normal grid conditions” (matching the Eco Badge’s own palette), amber “Peak carbon hours” (matching Bootstrap’s warning color) — chosen and tested for color-blind-safe contrast, and never relying on color alone since each state also has its own icon and text label.
  • Fixed: “Flush cache now” and “Check grid status now” gave no visual confirmation after clicking. Both now show a proper success notice, matching the existing “Settings saved” notice style.
  • Added: a show/hide toggle on the ElectricityMaps API key field, so you can verify what you typed without retyping it.

1.1.0

  • Added: Automated ESG/Sustainability PDF Audits (Settings PDF Reports for branding, Lwakit CFT Reports to download/email). Bundles the Dompdf library (LGPL-2.1, GPL-compatible) to generate reports locally — no external service involved in report generation itself.
  • Added: Green Grid Caching (Settings Green Grid Caching), optional and off by default. Shifts to an aggressive page cache during detected peak carbon-intensity hours, with a manual/offline schedule option or two optional live data sources (UK National Grid ESO Carbon Intensity API — free, no signup; or your own ElectricityMaps account). Automatically stays disabled if another caching plugin is already active.
  • Changed: the “Will this plugin generate PDF reports?” FAQ answer, previously “not in the free version,” now documents the new Reports feature. Also documents the one behavior change Green Grid Caching introduces: a cached page view does not add to your traffic/CO2e metrics while served from cache.
  • Fixed (caught in review before release): the page cache’s own hook could fire before WordPress’s own redirect logic (redirect_canonical(), wp_old_slug_redirect()) had a chance to run, risking a blank cached page in place of a legitimate redirect during a peak window. Also excludes feeds and 404 pages from caching (their correct Content-Type/status can’t be replayed by this cache), and never caches an empty response body as an extra safety net.

1.0.14

  • Changed: extended the “Lwakit CFT” short-form label to the readme’s Description and Installation sections, the Green Web Foundation domain-check text, the uninstall-behavior description, the JS error message, and LICENSE.txt — for consistency with the 1.0.13 admin menu label change.

1.0.13

  • Changed: the top-level admin menu label is now “Lwakit CFT” (was “Lwakit”).

1.0.12

  • Changed: the shortcode is now [lwakit_eco_badge] (was [begreen_badge]) to match the plugin’s new name — WordPress shortcode tags can’t contain spaces, so this is the closest valid form to “Lwakit Eco Badge”.
  • Changed: admin page titles/headings “Recommendations” and “Lwakit Settings” are now “Lwakit Carbon Recommendations” and “Lwakit Carbon Settings” (sidebar menu labels stay short, as “Dashboard”/”Recommendations”/”Settings”).
  • Fixed: the dashboard’s “About these estimates” text still referenced “BeGreen” — missed in the 1.0.11 rename because the string spanned multiple lines. Now reads “Lwakit Carbon Footprint Tracker estimates emissions…”.

1.0.11

  • Changed: renamed the plugin from “BeGreen — Carbon Footprint Tracker” to “Lwakit Carbon Footprint Tracker” (slug: lwakit-carbon-footprint-tracker), per WordPress.org review feedback regarding potential brand confusion with the “BeGreen” name. Updated the display name, Text Domain, and all user-facing UI text accordingly.
  • Fixed: the admin menu icon’s sizing rule is now registered via wp_register_style()/wp_add_inline_style() instead of a raw echo‘d <style> tag, per Plugin Check guidance to use WordPress’s enqueue APIs for all CSS/JS output.

1.0.10

  • Fixed: Text Domain header now matches the plugin slug assigned by the WordPress.org review team (begreen-carbon-footprint-tracker), resolving a textdomain_mismatch warning from Plugin Check. Every translation-function call across the plugin (PHP and the Eco Badge block’s JS) and block.json‘s textdomain field were updated to match.

1.0.9

  • Changed: the dismissible “premium version” admin notice is temporarily disabled ahead of submission; its link now points to the real premium info page for when it’s re-enabled.

1.0.8

  • Fixed: the remaining Plugin Check nonce-verification false positive on class-begreen-admin.php‘s current_page_slug() — the $_GET['page'] read happened on two separate lines, so a single-line phpcs:ignore only ever covered one of them. Collapsed to a single statement with one ignore comment; re-ran WP-CLI’s wp plugin check and confirmed zero remaining findings.

1.0.7

  • Fixed: the “BeGreen Eco Badge” block now declares apiVersion: 3 in block.json, as required for WordPress 7.0’s iframe-based block editor.
  • Fixed: all custom-table SQL in class-begreen-db.php, class-begreen-recommendations.php and uninstall.php now passes the table name through $wpdb->prepare()‘s %i identifier placeholder instead of raw string interpolation.
  • Fixed: a nonce-verification false-positive flagged by Plugin Check on class-begreen-admin.php (a read-only $_GET['page'] navigation check, not a state-changing action) by relocating the existing phpcs:ignore justification onto the exact line PHPCS parses.
  • Updated: added scoped phpcs:ignore/phpcs:disable comments (with justification) for the direct-database-query and local-template-variable warnings that Plugin Check reports on every custom-table query and every included admin view — both are expected, unavoidable patterns for a plugin with its own table and plain-include view templates, not real issues.

1.0.6

  • Updated: Contributors field corrected to the WordPress.org username.

1.0.5

  • Fixed: menu icon and header logo now use a genuinely transparent source image, sized purely via CSS (object-fit: contain) instead of pre-cropped image files, so the artwork displays correctly without a visible background box.

1.0.4

  • Updated: refreshed menu icon and header logo artwork.

1.0.3

  • Updated: author and contact information.

1.0.2

  • Updated: new brand icon and logo artwork used throughout the admin UI (menu icon and page headers).

1.0.1

  • Fixed: the admin menu icon was rendered at its full native image size instead of matching the other sidebar icons, since WordPress applies no CSS sizing to a custom add_menu_page() icon. Replaced it with a properly sized 20×20 icon.

1.0.0

  • Initial release: Real-Time Carbon Dashboard, Per-Page Traffic Mapping, Per-Page Impact Ledger columns, Frontend Trust Badge (shortcode + block), Basic Actionable Recommendations, and Settings (offline green-hosting list, optional Green Web Foundation verification, editable grid intensity, uninstall data control).