Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard widget with results and suggestion #13

Open
LittleBigThing opened this issue Nov 8, 2024 · 2 comments
Open

Dashboard widget with results and suggestion #13

LittleBigThing opened this issue Nov 8, 2024 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@LittleBigThing
Copy link
Owner

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:

Screenshot 2023-05-03 at 23 56 14

@LittleBigThing
Copy link
Owner Author

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.

@LittleBigThing LittleBigThing added help wanted Extra attention is needed good first issue Good for newcomers question Further information is requested labels Nov 8, 2024
@DSGND
Copy link

DSGND commented Nov 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants