LittleBigThing / carbon-footprint

A WordPress plugin to spread awareness about the carbon footprint of websites and to help making WordPress sites become more sustainable. The information is based on data from the Website Carbon Calculator.
GNU General Public License v2.0
5 stars 0 forks source link

Add test date and time to test result #2

Closed LittleBigThing closed 1 year ago

LittleBigThing commented 1 year ago

The plugin tests the carbon footprint of the homepage. The result is cached for 24h as a transient. Also, the API caches the result for 24h as well.

It is useful to see when the test was performed, so the time and the date of the test should be added. This helps the user understand why the results do not change even if they modify the homepage, for example. Maybe some additional explanation about the caching should be added as well?

LittleBigThing commented 1 year ago

PR #1 should do it

LittleBigThing commented 1 year ago

Example:

Screenshot 2023-05-18 at 13 37 41

YellowlimeNL commented 1 year ago

Works as a charm!

LittleBigThing commented 1 year ago

Added date and time of test in #1. Might be interesting to add more information about how long the test result is cached later.