Create a service for analyzing theme issues using a headless browser (puppeteer). Deploy it to the Toolforge, and prepare basic statistics. There are at least 4 templates that cause most theme issues:
- Template:Infobox baseball biography
- Template:NBA coach statistics legend
- Template:Episode_table
- Template:College athlete recruit end
Calculate the contrast ratio for these templates in articles in en and fr wikis with the default/dark/black/sepia themes.
Statistics to collect: parse 500 articles per request for each template multiplying on 4 theme options.
Add performance tests to calculate the min/max/average/median time of the theme issue processing.
UPD:
Instead of the puppeteer use pa11y since it has an in-build API for user accessibility calculation.
Repository - https://github.com/VadimKovalenkoSNF/wmf-theme-issues-analytics