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.47 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: 142 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 25 st)
- X is assigned a value but never used. (totalt 17 st)
- X is not defined. (totalt 8 st)
- `< script>` in: #26: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #26: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #51: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #51: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #3: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #3: gtm.js, antal fel: 472 ( 1.00 betyg )
- X is defined but never used. (totalt 371 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: cc.js, antal fel: 500 ( 1.00 betyg )
- X is defined but never used. (totalt 383 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #47: insight.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: insight.min.js, antal fel: 525 ( 1.00 betyg )
- X is defined but never used. (totalt 404 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #48: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: uc.js, antal fel: 572 ( 1.00 betyg )
- X is defined but never used. (totalt 424 st)
- X is assigned a value but never used. (totalt 105 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #49: hotjar-323946.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: hotjar-323946.j, antal fel: 596 ( 1.00 betyg )
- X is defined but never used. (totalt 432 st)
- X is assigned a value but never used. (totalt 105 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 21 st)
- `content-type=".*javascript.*"` in: #50: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: fbevents.js, antal fel: 1247 ( 1.00 betyg )
- X is defined but never used. (totalt 1065 st)
- X is assigned a value but never used. (totalt 106 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 32 st)
- `content-type=".*javascript.*"` in: #53: 706122851221574, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: 706122851221574, antal fel: 1397 ( 1.00 betyg )
- X is defined but never used. (totalt 1193 st)
- X is assigned a value but never used. (totalt 110 st)
- Unexpected console statement. (totalt 49 st)
- X is not defined. (totalt 45 st)
- `content-type=".*javascript.*"` in: #58: 75fc9c18-6b5670, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: 75fc9c18-6b5670, antal fel: 1409 ( 1.00 betyg )
- X is defined but never used. (totalt 1201 st)
- X is assigned a value but never used. (totalt 110 st)
- Unexpected console statement. (totalt 53 st)
- X is not defined. (totalt 45 st)
- `content-type=".*javascript.*"` in: #59: component---src, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #59: component---src, antal fel: 1410 ( 1.00 betyg )
- X is defined but never used. (totalt 1201 st)
- X is assigned a value but never used. (totalt 110 st)
- Unexpected console statement. (totalt 53 st)
- X is not defined. (totalt 45 st)
- Parsing error: Unexpected token (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: 1820 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1123 st)
- Expected X and instead saw X. (totalt 630 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \!. (totalt 1 st)
- `< script>` in: #26: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #26: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script>` in: #51: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #51: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #3: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #3: gtm.js, antal fel: 1605 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1169 st)
- Expected X and instead saw X. (totalt 260 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: cc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #27: cc.js, antal fel: 1952 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1475 st)
- Expected X and instead saw X. (totalt 296 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- Unnecessary escape character: \/. (totalt 47 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (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: #47: insight.min.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: insight.min.js, antal fel: 2110 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1563 st)
- Expected X and instead saw X. (totalt 355 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 48 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: uc.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: uc.js, antal fel: 2462 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1804 st)
- Expected X and instead saw X. (totalt 457 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 50 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: hotjar-323946.j, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: hotjar-323946.j, antal fel: 2505 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1826 st)
- Expected X and instead saw X. (totalt 478 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 50 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: fbevents.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: fbevents.js, antal fel: 3893 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2441 st)
- Expected X and instead saw X. (totalt 1081 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 59 st)
- Unnecessary escape character: \-. (totalt 20 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 10 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 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: 706122851221574, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: 706122851221574, antal fel: 4291 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2668 st)
- Expected X and instead saw X. (totalt 1247 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 59 st)
- Unnecessary escape character: \-. (totalt 20 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 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 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 75fc9c18-6b5670, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #58: 75fc9c18-6b5670, antal fel: 4500 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2759 st)
- Expected X and instead saw X. (totalt 1357 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 61 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Unnecessary escape character: \[. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 11 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 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: component---src, antal grupperade fel: 36 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #59: component---src, antal fel: 4501 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2759 st)
- Expected X and instead saw X. (totalt 1357 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 61 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Unnecessary escape character: \[. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 11 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 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)