kupo
kupo copied to clipboard
Add insights checker
This adds https://github.com/dsentker/phpinsights by @dsentker and checks the Google Pagespeed Insights API for mobile and desktop, when the key is set.
It also shows the screenshots from mobile/desktop and the speed/usability scores.
Example:

i think better to use from client side directly, not to overload server
@hbakhtiyor What do you mean, calling the Insights API? That shouldn't be very intensive..
@phanan What do you think?
@barryvdh yeah, calling directly to Insights API
Calling the API shouldn't be a problem.
No indeed.
But I meant, what do you think of the rest of the PR?
Oh, sorry. Actually IMO breaking the insight results into individual items is a bit too much. I'd prefer using the score for the headline and the rest for expanded details.
Also, why do we have two Levels::WARNING
again?
And sorry for not following up the repo very closely these days, I currently have lots of personal stuff to deal with :(
Ah right, one should be ERROR indeed.
We could be to just show the once that are failing, not all the green ones.
Or perhaps add a different options to check using kupo rules, but also a check for Insights. The interface is very nice for it imho :)
And no rush, take your time :)