Open LittleBigThing opened 2 weeks ago
One of the ideas was to add a filter to enable modifying the threshold for generating the critical issue. This would allow tweaking when to show the widget. I did not experiment enough with it yet.
Note that such a filter might need a lower end limit to ensure that it is not turned off that way completely. Although, all site health features can be turned off using a filter, which is probably a good thing and fits WP's philosophy, so having a filter might not be that much of a drawback.
It might be interesting to show the widget for lower thresholds or even always. Any thoughts?
I think it should be a setting.
A section in Admin bar like described in #9 could be a good option too, especially if it can scan the current front page.
For my case, I never check Dashboard widgets. I often check SH.
The plugin is intended to integrate smoothly with WordPress, without disrupting things too much. It is using WordPres’ Site Health feature to measure the carbon footprint of the homepage, whether the website runs on renewable energy. All this information is communicated through Site Health (SH), since SH has its own feature to warn users about critical issues. For this plugin, a critical issue is generated when the homepage measures worse than 90% of the pages measured by the Website Carbon tool.
In addition to the above, the plugin also generates a dashboard widget when a critical issue is generated for the carbon footprint of the homepage (see example below). This widget appears only for administrators, provides more insight for the measured data and a link to learn more about this and improve the website. This widget has been imagined as an addition to what SH already does, to provide more context and actionable information.
It might be interesting to show the widget for lower thresholds or even always. Any thoughts?
Example of the dashboard widget: