catchpoint / WebPageTest.bulk-tester

Google App Script for spreadsheet that uses the WPT API to bulk test URLs
MIT License
259 stars 22 forks source link

Add lighthouse metrics #23

Open martinschierle opened 6 years ago

martinschierle commented 6 years ago

Hey!

This is an amazing tool, thanks for creating this. One feature request though - could you add in the new lighthouse metrics? It should be somewhat easy - add 'lighthouse=1' to the API request (see here), and then add the metrics to the resultmap:

N Lighthouse Performance Score data.median.firstView['lighthouse.Performance']
O Lighthouse PWA Score data.median.firstView['lighthouse.ProgressiveWebApp']
P Lighthouse SEO Score data.median.firstView['lighthouse.SEO']
Q Lighthouse Accessibility data.median.firstView['lighthouse.Accessibility']
R Lighthosue Best Practices Score data.median.firstView['lighthouse.BestPractices']
S Lighthouse Meaningful Paint data.median.firstView['lighthouse.Performance.first-meaningful-paint']
T Lighthouse First Interactive data.median.firstView['lighthouse.Performance.first-interactive']
U Lighthouse Consist. Interactive data.median.firstView['lighthouse.Performance.consistently-interactive']

Regards, Martin

andydavies commented 6 years ago

(Sorry missed this issue before)

Probably makes sense to include an example of the how to get the lighthouse metrics in the default sheet as they are different to the others i.e. there's not a lighthouse object but a series of properties on first view.

Doing some updates to the sheet at the moment and will include an example

andydavies commented 3 years ago

I've updated the template to include an example of how to get the data from the lighthouse audit.

Will update the readme to include this