Page MenuHomePhabricator

Collect analytics for theme issues across different wikis which uses specific templates. Add performance tests.
Closed, ResolvedPublic

Description

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:

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

Event Timeline

vadim-kovalenko changed the task status from Open to In Progress.
vadim-kovalenko claimed this task.

Here is the report for the readability issues after testing all template testcase pages for en.wikipedia.org:

  • From all the tested templates ~20% had readability issues
  • This means around 700 templates are rendered with dark theme issues
  • Here is an extensive report of all the tests with readability issues