WordPress Carbon Footprint

WordPress Carbon Footprint is a simple plugin for WordPress which works out and displays the carbon footprint of your blog. It works out how many words and images are on your blog and then calculates how many sheets of paper it would take to print a copy of your blog. It finally works out how much carbon is in those sheets of paper and displays all this information for you or your readers so you can show off how much carbon you’re offsetting by hosting your content online instead of printing it.

Installation

1. Extract & upload the carbon-footprint folder to your ‘/wp-content/plugins/’ directory.
2. Activate the plugin via the Plugins menu in WordPress.
3. Navigate to Design -> Theme Editor -> Sidebar.php (or whichever page you like) and insert this code wherever you want your carbon footprint displayed:

<?php carbonfootprint_display_footprint(); ?>

Thats it! Your carbon footprint details should show up wherever you pasted the code. The sidebar is a good place because it’s on every page. You can specify the detail to print out by calling carbonfootprint_display_footprint(‘Small’); carbonfootprint_display_footprint(‘Medium’); carbonfootprint_display_footprint(‘Large’); or carbonfootprint_display_footprint(‘Extended’);

Small will display something like this:
42.4g

While Medium will display something like this:
Words: 12323 (18.9g)
Images: 2 (0.70g)
Pages: 19.6
Carbon: 0.15g

And Large will display a table like this:

Count Pages Carbon
Words 12323 19.4 0.15g
Images 2 0.71 0.01g
Total 20.11 0.16g

How are the figures worked out?

The script searches through every post and every page on your blog, counting the total number of words and images in each post.
It then works out how many pages the text would take up assuming a standard of 794 words per page. This was worked out by taking the most widely used fonts, font sizes, the word processor being used and other print options.
It also works out how many pages the images would take up, again based on DPI, margins and other factors.
The most widely used paper is around 120gsm (grams per square meter) and standard A4 paper is 210x297mm. This means that we can approximate that there is 0.0074844g of carbon per sheet of paper which we multiply by our number of pages to give the total amount carbon saved by the blog vs it being printed out on paper.

While it is by no means fully accurate, it does give a reasonable approximation as to how much carbon your blog would take up if you printed it onto standard printer paper.

Demo & Download

This plugin is active on SeanBluestone.com and you can view it in the sidebar to the right near the bottom.
You can download the WordPress Carbon Footprint plugin here.


You can discuss this article and see what others are saying about it in the WordPress Discussion Forum
Did you find this article useful? Why not buy Sean a coffee?



26 comments ↓

#1 gusmanidas on 10.24.08 at 2:15 pm

Nice plugin, how can only count the images in every post?
thanks in advance

#2 baron on 10.24.08 at 3:09 pm

hi. Thanks for plugin

perfect.

#3 LGB on 10.25.08 at 2:51 pm

There is a typo in the documentation.

Step 3 for the installation should list the calling function as: .

There is currently an extra underscore(_) in between carbon and footprint which causes an error.

Great plugin after this was fixed !

#4 LGB on 10.25.08 at 2:52 pm

ooops. should have handled the script better. Here it is in readable format.

Replace : carbon_footprint_display_footprint
With : carbonfootprint_display_footprint

#12 Of Course! on 10.26.08 at 10:53 pm

Great plugin, many thanks indeed.

Once the extra underscore is removed it works tip-top.

#19 Jagster on 11.02.08 at 12:00 pm

Can (or how) it shows all that onto single page/post? How’s dynamic sidebar, even I hate to put too much info there?

#21 bludude on 12.04.08 at 10:14 pm

How can I specify what color to use for the output? In my current theme, it’s gray on dark gray so it’s barely legible.

#23 RaiulBaztepo on 03.29.09 at 1:14 am

Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language ;)
See you!
Your, Raiul Baztepo

#24 Ukrainian Energy on 06.10.09 at 9:53 pm

Thanks a lot for this interesting and very useful plug in!

#26 yarim ezgi on 08.10.09 at 10:04 pm

thanks so much for plug-in.i will use that.

Trackbacks

  1. WordPress Carbon Footprint Wordpress Plugin | DA! DA! Wordpress
  2. WordPress Plugin Releases for 10/26 | bloground.ro - Blogging resources, WordPress themes and plugins for your development
  3. WordPress Plugin Releases for 10/26 | Wordpress Blog NL
  4. Weblog Tools Collection: WordPress Plugin Releases for 10/26 | KaosKoxp Oyun Portali
  5. Weblog Tools Collection: WordPress Plugin Releases for 10/26 | Aslifmbiz Blog
  6. Weblog Tools Collection: WordPress Plugin Releases for 10/26 | Aslifmbiz Blog
  7. Weblog Tools Collection: WordPress Plugin Releases for 10/26 | PR & Tech
  8. vBulletin Setup [dot] Org » Blog Archive » Find the carbon footprint of your blog!
  9. WordPress Plugin Releases for 10/26 | BlogBroker24-7
  10. AppzDrive.com » Blog Archive » Find the carbon footprint of your blog!
  11. WordPress Plugin Releases for 10/26 · Softonix.com
  12. WordPress Plugin Releases for 10/26 | Free Blogs
  13. Weblog Tools Collection: WordPress Plugin Releases for 10/26 | Aslifm Blogu
  14. WordPress Plugin Releases for 10/26 | PATRONIT.NET
  15. A Carbon Footprint Milestone » Tim’s Words
  16. Carbon Footprint

Leave a Comment