WordPress.org

Plugin Directory

GreenMetrics – Website Carbon Footprint, Sustainability & Performance Metrics

GreenMetrics – Website Carbon Footprint, Sustainability & Performance Metrics

Description

GreenMetrics helps you build a more sustainable internet.
This plugin tracks your website’s carbon footprint, energy consumption, and resource usage, offering insights and recommendations for eco-friendly performance improvements.

GreenMetrics is perfect for eco-conscious website owners who want to reduce their digital carbon footprint and showcase their commitment to sustainability.

For more information, visit getgreenmetrics.com.

🌱 Free Features

  • Comprehensive Dashboard: Real-time metrics showing Carbon Footprint (g CO2), Energy Consumption (kWh), Data Transfer, HTTP Requests, Page Views, and Performance Score.
  • Environmental Impact Context: Understanding the real-world impact of your website through relatable metrics.
  • Optimization Suggestions: Actionable advice with status indicators for Page Size, HTTP Requests, Performance Score, and Green Hosting.
  • Gutenberg Block & Shortcode: Easily display your environmental stats on any page using the built-in block editor or [greenmetrics_badge] shortcode.
  • Customizable Badge: Control the position, theme, size, colors, icon and text of your eco-metrics badge with numerous configuration options.
  • Enhanced Metrics Display: Fully customizable metrics list with hover effects, fonts, and styling options.
  • Real-time Tracking: Continuous monitoring of your site’s performance and environmental impact metrics.
  • Per-Page and Total Website Metrics: View both aggregated stats and per-page averages to identify optimization opportunities.
  • Carbon Intensity Settings: Configure your energy consumption calculations based on your hosting location.
  • Global Badge Display: Option to automatically display badge site-wide without manual placement.
  • Popover Customization: Complete control over popover appearance including colors, fonts, metrics display and hover effects.
  • Data Management: Automated data aggregation and pruning to maintain optimal database performance.
  • Advanced Reporting: Detailed metrics with customizable time periods and visualization options.
  • Email Reporting: Scheduled email reports with customizable frequency (daily, weekly, monthly) and content.
  • Email Templates: Fully customizable email templates with color schemes, placeholders, and content options.
  • Email History: Track and view all sent email reports with detailed history and status information.
  • Visual Chart Generation: Beautiful charts showing metrics trends over time in email reports.
  • Data Export & Import: Export your environmental metrics data in CSV, JSON, or PDF formats, and import previously exported data with options to skip, replace, or merge duplicates.

🌍 Who Is This For?

GreenMetrics is ideal for:

  • Eco-conscious Website Owners who want to reduce their digital carbon footprint
  • Developers looking to optimize website performance and efficiency
  • Businesses striving to meet sustainability goals and showcase environmental responsibility
  • Bloggers and Content Creators focusing on green initiatives

📊 Track What Matters

GreenMetrics gives you comprehensive insights into your website’s environmental impact:

  • Carbon Footprint (grams of CO2)
  • Energy Consumption (kilowatt-hours)
  • Data Transfer (megabytes)
  • HTTP Requests (count)
  • Page Views (count)
  • Performance Score (percentage)

🎯 Actionable Insights

Beyond raw metrics, GreenMetrics provides:

  • Status Indicators showing where you need improvement
  • Optimization Recommendations specific to your site
  • Real-world Comparisons to help understand environmental impact
  • Historical Trends to track your progress over time

Usage

Admin Dashboard

  1. Go to WordPress admin > GreenMetrics
  2. Enable/disable tracking and badge display
  3. View your website’s performance metrics and environmental impact

Display Settings

The Display Settings page provides comprehensive customization for your badge and metrics display:

  • Badge Configuration: Control visibility, position, size, and text
  • Icon Settings: Choose between different icon styles or upload a custom icon
  • Color Options: Customize badge background, text, and icon colors
  • Popover Settings: Configure title, metrics to display, and custom content
  • Styling Options: Customize fonts, font sizes, background colors, and hover effects

Data Management

The Data Management page helps you maintain optimal database performance:

  • Data Aggregation: Automatically aggregate detailed metrics into daily summaries
  • Data Pruning: Remove old data to keep your database lean and efficient
  • Manual Controls: Run aggregation and pruning operations on demand
  • Schedule Settings: Configure automatic maintenance schedules
  • Data Export/Import: Export data in CSV, JSON, or PDF formats, and import previously exported data with options to skip, replace, or merge duplicates

Advanced Reporting

The Advanced Reporting page provides detailed insights into your website’s environmental impact:

  • Time Period Selection: View metrics for custom date ranges
  • Visualization Options: Toggle between different chart types
  • Metric Filtering: Focus on specific metrics of interest
  • Data Export: Download your metrics data in CSV, JSON, or PDF formats for external analysis

Email Reporting

The Email Reporting page allows you to set up automated email reports and track their history:

  • Schedule Configuration: Set daily, weekly, or monthly reporting frequency
  • Recipient Management: Add multiple email recipients
  • Content Customization: Choose which metrics to include in reports
  • Template Selection: Pick from different email templates
  • Custom Styling: Personalize colors, fonts, and layout
  • Visual Charts: Include trend charts showing metrics over time
  • Email History: View a complete history of all sent reports with status tracking
  • Template Preview: Real-time preview of your email template as you customize it
  • Test Emails: Send test emails to verify your template and settings
  • Placeholder System: Use dynamic placeholders like [site_name], [date], [admin_email], etc.

Display Badge

You can display the eco-friendly badge in three ways:

  1. Gutenberg Block

    • Add the “GreenMetrics Badge” block to your page/post
    • Customize the appearance in the block settings
  2. Shortcode

    • Use [greenmetrics_badge theme="light" size="medium" position="bottom-right"]
    • Parameters: theme (light/dark), size (small/medium/large), position (bottom-right/bottom-left/top-right/top-left)
  3. Global Badge

    • Enable the global badge option in Display Settings to show the badge site-wide
    • Customize all aspects of the badge and popover through the admin interface

License

This plugin is licensed under the GPLv2 or later.

Credits

  • Icons provided by various open-source icon libraries
  • Built with love for a greener, more sustainable web

Blocks

This plugin provides 1 block.

  • GreenMetrics Badge Display a GreenMetrics badge with customizable styles.

Installation

  1. Upload the plugin files to the /wp-content/plugins/greenmetrics directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Go to your WordPress dashboard to view the metrics.
  4. Use the GreenMetrics block or [greenmetrics_badge] shortcode to display your site’s stats.

FAQ

How does GreenMetrics calculate my site’s environmental impact?

We use a combination of observed data based on asset size, page views, and HTTP requests. Our calculations account for data transfer, energy consumption per byte, and regional carbon intensity to provide meaningful insights.

Will it slow down my website?

No. GreenMetrics is lightweight and designed for performance. It uses efficient tracking methods and does not load external scripts on the frontend.

Can I customize how the metrics are displayed?

Yes, the Display Settings page offers extensive customization options for the badge and popover, including colors, fonts, metrics selection, and hover effects. Additionally, the shortcode and block offer multiple customization options.

How accurate are the carbon and energy calculations?

Our calculations are based on industry research regarding energy consumption per byte of data transferred and carbon intensity of electrical grids. While they provide meaningful approximations, they may not account for all variables in the hosting infrastructure.

Can I track individual page performance?

Yes, GreenMetrics tracks metrics on a per-page basis, allowing you to identify which pages have the highest environmental impact and optimize them accordingly.

Does the plugin work with caching plugins?

Yes, GreenMetrics is compatible with most popular caching plugins. It tracks actual user visits regardless of whether they’re served cached content.

Is the data stored locally or on external servers?

All data is stored locally in your WordPress database. GreenMetrics does not send your website metrics to any external servers.

Can I export my environmental impact data?

Yes, you can export your metrics data in CSV, JSON, or PDF formats from the Data Management page. This allows you to analyze your data externally, create custom reports, or back up your metrics.

Can I import previously exported data?

Yes, the Data Management page includes an import feature that allows you to import previously exported data in CSV or JSON formats. You can choose how to handle duplicate records (skip, replace, or merge) during the import process.

How often are the statistics updated?

Statistics are updated in real-time as users visit your site. The dashboard displays are refreshed daily or can be manually refreshed at any time.

How do the email reports work?

Email reports can be scheduled to send daily, weekly, or monthly summaries of your website’s environmental metrics. You can customize the recipients, content, and appearance of these reports through the Email Reporting settings page. The system tracks all sent emails and maintains a complete history for your reference.

What information is included in email reports?

Email reports include key metrics such as carbon footprint, energy consumption, and data transfer, along with visual charts showing trends over the selected time period. You can customize which metrics to include and how they’re displayed. Dynamic placeholders allow you to personalize the content with site-specific information.

Can I customize the appearance of email reports?

Yes, you can fully customize the email templates, including colors, fonts, header/footer content, and which metrics to display. You can also choose between different template styles to match your brand. A real-time preview shows exactly how your emails will look as you make changes.

How does the email history feature work?

The Email History tab maintains a complete record of all sent email reports, including date/time, recipients, subject, report type, and delivery status. You can view the full content of any previously sent report and track which reports were successfully delivered.

How does the data management system work?

The data management system automatically aggregates detailed metrics into daily summaries and prunes old data to maintain optimal database performance. You can configure the aggregation and pruning schedules, or run these operations manually when needed.

Will data aggregation affect the accuracy of my metrics?

No, data aggregation preserves the accuracy of your metrics while reducing database size. The system maintains daily summaries that provide the same insights as detailed data for historical analysis.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“GreenMetrics – Website Carbon Footprint, Sustainability & Performance Metrics” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release with core environmental metrics, dashboard integration, and shortcode/block support
  • Comprehensive metrics dashboard with total and per-page averages
  • Environmental impact context visualizations
  • Optimization suggestions with status indicators
  • Customizable metrics badge via shortcode and block
  • Global badge display option
  • Enhanced display settings with complete customization of colors, fonts, and hover effects
  • Popover customization with metrics selection
  • Data Management system for database optimization
  • Advanced Reporting with customizable time periods and visualization options
  • Email Reporting with scheduled reports (daily, weekly, monthly)
  • Customizable email templates with color schemes and styling options
  • Email History tracking with status monitoring and report viewing
  • Dynamic placeholder system for personalized email content
  • Visual chart generation for email reports
  • Data export capabilities