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.46 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 191 ( 1.00 betyg )
- X is defined but never used. (totalt 115 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 21 st)
- X is not defined. (totalt 12 st)
- `content-type=".*javascript.*"` in: #29: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: gtm.js, antal fel: 574 ( 1.00 betyg )
- X is defined but never used. (totalt 466 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: reactPlayerFile, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: reactPlayerFile, antal fel: 578 ( 1.00 betyg )
- X is defined but never used. (totalt 468 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #36: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: js, antal fel: 966 ( 1.00 betyg )
- X is defined but never used. (totalt 793 st)
- X is assigned a value but never used. (totalt 138 st)
- X is not defined. (totalt 32 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #37: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: fbevents.js, antal fel: 1620 ( 1.00 betyg )
- X is defined but never used. (totalt 1429 st)
- X is assigned a value but never used. (totalt 139 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #40: 129783657416110, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 129783657416110, antal fel: 1770 ( 1.00 betyg )
- X is defined but never used. (totalt 1557 st)
- X is assigned a value but never used. (totalt 143 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 31 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2282 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1931 st)
- Expected X and instead saw X. (totalt 267 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unsafe usage of ThrowStatement. (totalt 12 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 2 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)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #29: gtm.js, antal fel: 1041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 747 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #30: reactPlayerFile, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #30: reactPlayerFile, antal fel: 1107 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 809 st)
- Expected X and instead saw X. (totalt 202 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #36: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #36: js, antal fel: 2770 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2115 st)
- Expected X and instead saw X. (totalt 439 st)
- Do not access Object.prototype method X from target object. (totalt 178 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: fbevents.js, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #37: fbevents.js, antal fel: 4159 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2731 st)
- Expected X and instead saw X. (totalt 1042 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- Unnecessary escape character: \/. (totalt 25 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 14 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: 129783657416110, antal grupperade fel: 32 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: 129783657416110, antal fel: 4557 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2958 st)
- Expected X and instead saw X. (totalt 1208 st)
- Do not access Object.prototype method X from target object. (totalt 181 st)
- Unnecessary escape character: \/. (totalt 25 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 16 st)
- X is assigned to itself. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 10 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \^. (totalt 9 st)
- Unnecessary escape character: \{. (totalt 9 st)
- Unnecessary escape character: \'. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)