Webperf-se / webperf_core

webperf-core is an open-source testing suite tailored to help you improve your digital presence in areas like web performance, security and accessibility to email best practice using many small improvements.
https://webperf.se/articles/webperf-core/
MIT License
19 stars 30 forks source link

Axe Core test gathers Pagespeed data #586

Open marcusosterberg opened 1 month ago

marcusosterberg commented 1 month ago

URL

https://webperf.se/articles/akademi-t12t/

Webperf_core version

2024.7.1

What environment are you running?

Has anyone else reported it already?

Expected Behavior

That "data" in the JSON output consists of accessibility findings.

Actual Behavior.

Currently the output looks like pagespeed statistics: {"site_id": 0, "type_of_test": 10, "rating": 5.0, "rating_sec": -1.0, "rating_perf": -1.0, "rating_a11y": 5.0, "rating_stand": -1.0, "date": "2024-08-05T13:31:33.823570", "report": "- Webbplatsen har inga uppenbara fel inom tillg\u00e4nglighet! Bra, men g\u00f6r manuella unders\u00f6kningar f\u00f6r s\u00e4kerhets skull!\n", "report_sec": "", "report_perf": "", "report_a11y": "", "report_stand": "", "data": "{\"first-contentful-paint\": 1812.4625, \"largest-contentful-paint\": 2866.1235000000006, \"speed-index\": 2712.84942400109, \"total-blocking-time\": 0, \"max-potential-fid\": 16, \"cumulative-layout-shift\": 0.11002715241936463, \"server-response-time\": 135.63300000000004, \"interactive\": 2866.1235000000006, \"redirects\": 0, \"mainthread-work-breakdown\": 408.28800000000007, \"bootup-time\": 68.02000000000001, \"uses-rel-preconnect\": 0, \"network-rtt\": 0.7620000000000005, \"network-server-latency\": 135.43600000000004, \"metrics\": 2866, \"prioritize-lcp-image\": 0, \"uses-long-cache-ttl\": 2101.7840782122894, \"total-byte-weight\": 550578, \"offscreen-images\": 0, \"render-blocking-resources\": 721, \"unminified-css\": 0, \"unminified-javascript\": 150, \"unused-css-rules\": 150, \"unused-javascript\": 150, \"modern-image-formats\": 0, \"uses-optimized-images\": 0, \"uses-text-compression\": 0, \"uses-responsive-images\": 450, \"efficient-animated-content\": 0, \"duplicated-javascript\": 0, \"legacy-javascript\": 0, \"dom-size\": 593, \"uses-http2\": 0}"}

Example: a11y.json

How to reproduce

Lighthouse 12.1.0

> python default.py -t 10 -L sv -i https://webperf.se/sitemap-posts.xml --input-take 5 -o a11y.json

Log output

python default.py -t 10 -L sv -i https://webperf.se/sitemap-posts.xml --input-take 5 -o a11y.json
###############################################
Webbadresser som testas 5
# Testar adress https://webperf.se/articles/akademi-t12t/
Webbplats 1 av 5.

## Test: 10 - Tillgänglighet (Google Lighthouse)

Startad: 2024-08-05 13:31:21
Klar: 2024-08-05 13:31:33

### Betyg: 
- Övergripande: 5.0
- Tillgänglighet: 5.0

###############################################
# Testar adress https://webperf.se/articles/banker-t12t/
Webbplats 2 av 5.

## Test: 10 - Tillgänglighet (Google Lighthouse)

Startad: 2024-08-05 13:31:33
Klar: 2024-08-05 13:31:45

### Betyg: 
- Övergripande: 5.0
- Tillgänglighet: 5.0

###############################################
# Testar adress https://webperf.se/articles/myndigheters-t12t/
Webbplats 3 av 5.

## Test: 10 - Tillgänglighet (Google Lighthouse)

Startad: 2024-08-05 13:31:45
Klar: 2024-08-05 13:31:57

### Betyg: 
- Övergripande: 5.0
- Tillgänglighet: 5.0

###############################################
# Testar adress https://webperf.se/articles/nyhetsbrev-50/
Webbplats 4 av 5.

## Test: 10 - Tillgänglighet (Google Lighthouse)

Startad: 2024-08-05 13:31:57
Klar: 2024-08-05 13:32:09

### Betyg: 
- Övergripande: 5.0
- Tillgänglighet: 5.0

###############################################
# Testar adress https://webperf.se/articles/webbyra-t12t/
Webbplats 5 av 5.

## Test: 10 - Tillgänglighet (Google Lighthouse)

Startad: 2024-08-05 13:32:09
Klar: 2024-08-05 13:32:21

### Betyg: 
- Övergripande: 5.0
- Tillgänglighet: 5.0

Cleaning cache files...
10 file and folders in cache folder.
6 cache file(s) found.
0 result folder(s) found.
1 cache file(s) removed.
0 result folder(s) removed.