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.66 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: 613 ( 1.00 betyg )
- X is not defined. (totalt 346 st)
- X is defined but never used. (totalt 223 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 4 st)
- `< script src="...">` in: #43: hub.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #43: hub.html, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #36: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: gtm.js, antal fel: 526 ( 1.00 betyg )
- X is defined but never used. (totalt 430 st)
- X is assigned a value but never used. (totalt 79 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: widget.a101de8f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: widget.a101de8f, antal fel: 890 ( 1.00 betyg )
- X is defined but never used. (totalt 592 st)
- X is not defined. (totalt 175 st)
- X is assigned a value but never used. (totalt 81 st)
- Unexpected console statement. (totalt 42 st)
- `content-type=".*javascript.*"` in: #44: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: fbevents.js, antal fel: 1544 ( 1.00 betyg )
- X is defined but never used. (totalt 1228 st)
- X is not defined. (totalt 181 st)
- X is assigned a value but never used. (totalt 82 st)
- Unexpected console statement. (totalt 53 st)
- `content-type=".*javascript.*"` in: #45: 196222696830988, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: 196222696830988, antal fel: 1694 ( 1.00 betyg )
- X is defined but never used. (totalt 1356 st)
- X is not defined. (totalt 182 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 70 st)
- `content-type=".*javascript.*"` in: #47: display-rules, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: display-rules, antal fel: 1695 ( 1.00 betyg )
- X is defined but never used. (totalt 1356 st)
- X is not defined. (totalt 183 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 70 st)
- `content-type=".*javascript.*"` in: #49: status, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: status, antal fel: 1696 ( 1.00 betyg )
- X is defined but never used. (totalt 1356 st)
- X is not defined. (totalt 184 st)
- X is assigned a value but never used. (totalt 86 st)
- Unexpected console statement. (totalt 70 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: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1871 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1037 st)
- Expected X and instead saw X. (totalt 735 st)
- Do not access Object.prototype method X from target object. (totalt 60 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- Unsafe usage of ReturnStatement. (totalt 10 st)
- X is not modified in this loop. (totalt 5 st)
- The Function constructor is eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script src="...">` in: #43: hub.html, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #43: hub.html, antal fel: 131 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 79 st)
- Expected X and instead saw X. (totalt 47 st)
- The Function constructor is eval. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #36: gtm.js, antal fel: 1113 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 793 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 86 st)
- Unnecessary escape character: \/. (totalt 24 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: #39: widget.a101de8f, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #39: widget.a101de8f, antal fel: 3306 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2102 st)
- Expected X and instead saw X. (totalt 1016 st)
- Do not access Object.prototype method X from target object. (totalt 131 st)
- Unnecessary escape character: \/. (totalt 27 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: fbevents.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #44: fbevents.js, antal fel: 4695 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2718 st)
- Expected X and instead saw X. (totalt 1619 st)
- Do not access Object.prototype method X from target object. (totalt 134 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (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: #45: 196222696830988, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: 196222696830988, antal fel: 5093 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2945 st)
- Expected X and instead saw X. (totalt 1785 st)
- Do not access Object.prototype method X from target object. (totalt 134 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 17 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (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: #47: display-rules, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: display-rules, antal fel: 5093 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2945 st)
- Expected X and instead saw X. (totalt 1785 st)
- Do not access Object.prototype method X from target object. (totalt 134 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 17 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (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: #49: status, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: status, antal fel: 5093 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2945 st)
- Expected X and instead saw X. (totalt 1785 st)
- Do not access Object.prototype method X from target object. (totalt 134 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Unnecessary escape character: \-. (totalt 17 st)
- X is assigned to itself. (totalt 13 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 9 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)
- Comparing to itself is potentially pointless. (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)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Async function X has no X expression. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \). (totalt 3 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)