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.18 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 632 ( 1.00 betyg )
- X is not defined. (totalt 581 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 18 st)
- `< script>` in: #15: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #15: embed, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 1 st)
- `< script>` in: #16: embed, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #16: embed, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: matomo.js, antal fel: 49 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 16 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: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 60 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 41 st)
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- Expected X and instead saw X. (totalt 9 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 438 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 284 st)
- Expected X and instead saw X. (totalt 101 st)
- Do not access Object.prototype method X from target object. (totalt 24 st)
- Unnecessary X. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #15: embed, antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #15: embed, antal fel: 54 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Expected X and instead saw X. (totalt 9 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #16: embed, antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #16: embed, antal fel: 54 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Expected X and instead saw X. (totalt 9 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: matomo.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #17: matomo.js, antal fel: 3 ( 4.40 betyg )
- Do not access Object.prototype method X from target object. (totalt 3 st)