Kontrollerar ifall Javascript-koden är korrekt enligt Webperf-communityts egna Javascript-test. Testet är ett "lint"-test för att avgöra om det är korrekt Javascript och följer webbstandard.
Betyg: 3.77 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token ! (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 258 ( 1.00 betyg )
- X is defined but never used. (totalt 121 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 9 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: 8027.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #38: 8027.js, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: facetedsearch-p, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #40: facetedsearch-p, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: matomo.js, antal fel: 51 ( 1.00 betyg )
- X is defined but never used. (totalt 21 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 7 st)
- Unexpected console statement. (totalt 6 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token ! (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1675 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 924 st)
- Expected X and instead saw X. (totalt 585 st)
- Unnecessary escape character: \-. (totalt 51 st)
- Do not access Object.prototype method X from target object. (totalt 35 st)
- Unnecessary X. (totalt 14 st)
- The Function constructor is eval. (totalt 9 st)
- Async arrow function has no X expression. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: 8027.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: 8027.js, antal fel: 41 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 36 st)
- Expected X and instead saw X. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: facetedsearch-p, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: facetedsearch-p, antal fel: 60 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 50 st)
- Expected X and instead saw X. (totalt 8 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: matomo.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #41: matomo.js, antal fel: 63 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 50 st)
- Expected X and instead saw X. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)