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: 2.48 av 5
- JS är dålig.
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: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 786 ( 1.00 betyg )
- X is defined but never used. (totalt 333 st)
- X is not defined. (totalt 319 st)
- Unexpected console statement. (totalt 123 st)
- X is assigned a value but never used. (totalt 9 st)
- Parsing error: Unexpected token (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: gtm.js, antal fel: 511 ( 1.00 betyg )
- X is defined but never used. (totalt 415 st)
- X is assigned a value but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: 675561f5.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: 675561f5.js, antal fel: 535 ( 1.00 betyg )
- X is defined but never used. (totalt 437 st)
- X is assigned a value but never used. (totalt 78 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: js, antal fel: 997 ( 1.00 betyg )
- X is defined but never used. (totalt 801 st)
- X is assigned a value but never used. (totalt 162 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 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: 24 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5858 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3774 st)
- Expected X and instead saw X. (totalt 1749 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \-. (totalt 54 st)
- Comparing to itself is potentially pointless. (totalt 35 st)
- Unnecessary X. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 21 st)
- The Function constructor is eval. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 12 st)
- X is assigned to itself. (totalt 9 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #30: gtm.js, antal fel: 1241 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 857 st)
- Expected X and instead saw X. (totalt 202 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 75 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: 675561f5.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: 675561f5.js, antal fel: 2170 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1123 st)
- Expected X and instead saw X. (totalt 831 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 87 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \|. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (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)
- Unnecessary escape character: \$. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: js, antal fel: 3559 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2197 st)
- Expected X and instead saw X. (totalt 1049 st)
- Do not access Object.prototype method X from target object. (totalt 182 st)
- Unnecessary escape character: \/. (totalt 90 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)