This project seeks to provide added value to the Mattermost ecosystem by adding performance auditing of websites with Google's Lighthouse, offering a testing environment that is accessible directly from any Mattermost channel.
- Website auditing is an often overlooked part of front-end development because of how difficult it is to integrate it to the developers' daily workflow
- Even when periodically used, auditing with Lighthouse can prove to be unreliable* when running on the client-side** because:
- The internet speed on a given client can vary, causing significant variations in the following metrics:
- Processes running in the background of a computer can have on impact on the results with regards to performance
- It's difficult to share the results of a performance audit with the rest of the team
- There's no current way to track performance over time
* Performance tests are most reliable when minimizing the number of variables impacting their results
** Tests ran either through the Chrome developer tools' audit
tab, or through the Lighthouse plugin on a browser
- The development team uses a
/lighthouse https://siteurl.com
command to quickly run an audit of their website's performance, and have the results shared in Mattermost for all the team to see.
- Running the
/lighthouse stats https://siteurl.com
to view the changes in performance over time as a chart - Scheduling audit tasks for various sites that display the latest values, and the performance trend over time for a given site using
/lighthouse jobs
command and selecting options in a returned dialog
The overall approach of this project is to create a private lighthouse testbed that is tightly integrated with Mattermost. Offering a wide list of features that prioritize ease of usage.
README icons downloaded from FontAwesome