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

Feature: score + api #22

Open
barryvdh opened this issue Mar 3, 2017 · 6 comments
Open

Feature: score + api #22

barryvdh opened this issue Mar 3, 2017 · 6 comments

Comments

@barryvdh
Copy link
Contributor

barryvdh commented Mar 3, 2017

It would be nice to have some sort of 'score' to the results and a total score. For example, passed rule = 10 points, notice 9, warning 7, error 4, critical 0. Then sort the results in order of lowest score (most critical on top) and calculate the total score percentage to give the website a score.

That score could be also used to automate it a bit for an Api, eg call it with a list of rules, use a down to check them periodically, integrate with other services etc.

@phanan
Copy link
Owner

phanan commented Mar 6, 2017

This is such a good idea. Thing is, though, there are certain rules that don't apply to everyone, e.g. Google Analytics. How do we count this toward the score?

@barryvdh
Copy link
Contributor Author

barryvdh commented Mar 6, 2017

You only count the rules that are enabled in the configuration.

@phanan
Copy link
Owner

phanan commented Mar 6, 2017 via email

@m1guelpf
Copy link

m1guelpf commented Mar 6, 2017

Maybe you could assign it a LEVEL error notice, so it doesn't cost points...
Or you could run only the rules specified in a POST request...

@m1guelpf
Copy link

@barryvdh @phanan Any updates on this?

@barryvdh
Copy link
Contributor Author

Instead of the percentage, we could use an 'impact' value, like Google Pagespeed Insights does.

Passed: 0 (no impact), Notice: 1, Warning:10, Error: 25, Critical: 100 (or something)

Or you could say that a Notice is optional, and doesn't have impact. Or create an 'Optional' rule.

Then instead of the percentage, add the 'impact' you could have by following all the rules.

In some cases you could thinkg about specifying an impact directly in the Rule, if you want to be more specific.

Then the impact can also be used to sort the rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants