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.38 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 240 ( 1.00 betyg )
- X is defined but never used. (totalt 187 st)
- Unexpected console statement. (totalt 29 st)
- X is not defined. (totalt 22 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #42: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #42: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #2: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 455 ( 1.00 betyg )
- X is defined but never used. (totalt 352 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: cf378cd1d385cf6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: cf378cd1d385cf6, antal fel: 461 ( 1.00 betyg )
- X is defined but never used. (totalt 355 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #27: 2987ed548a5ab7c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 2987ed548a5ab7c, antal fel: 466 ( 1.00 betyg )
- X is defined but never used. (totalt 358 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #28: 9fe050809b5e8c6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 9fe050809b5e8c6, antal fel: 466 ( 1.00 betyg )
- X is defined but never used. (totalt 358 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #29: f76b98a8f35d8c4, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: f76b98a8f35d8c4, antal fel: 490 ( 1.00 betyg )
- X is defined but never used. (totalt 382 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #30: 1f0e2edd19f792c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 1f0e2edd19f792c, antal fel: 534 ( 1.00 betyg )
- X is defined but never used. (totalt 415 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #31: component---src, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: component---src, antal fel: 535 ( 1.00 betyg )
- X is defined but never used. (totalt 416 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 15 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #40: 731-d836686a062, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 731-d836686a062, antal fel: 540 ( 1.00 betyg )
- X is defined but never used. (totalt 419 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 17 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #41: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: uc.js, antal fel: 587 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 106 st)
- Unexpected console statement. (totalt 28 st)
- X is not defined. (totalt 14 st)
- `content-type=".*javascript.*"` in: #43: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: cc.js, antal fel: 615 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 112 st)
- Unexpected console statement. (totalt 29 st)
- X is not defined. (totalt 23 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3127 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1724 st)
- Expected X and instead saw X. (totalt 1304 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unsafe usage of ThrowStatement. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 7 st)
- Unsafe usage of ReturnStatement. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `< script>` in: #42: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #42: 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)
- `content-type=".*javascript.*"` in: #2: gtm.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 1508 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1083 st)
- Expected X and instead saw X. (totalt 225 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 87 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: cf378cd1d385cf6, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #26: cf378cd1d385cf6, antal fel: 1619 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1111 st)
- Expected X and instead saw X. (totalt 305 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 87 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 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 2987ed548a5ab7c, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #27: 2987ed548a5ab7c, antal fel: 1821 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1209 st)
- Expected X and instead saw X. (totalt 406 st)
- Do not access Object.prototype method X from target object. (totalt 102 st)
- Unnecessary escape character: \/. (totalt 87 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 9fe050809b5e8c6, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #28: 9fe050809b5e8c6, antal fel: 1837 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1212 st)
- Expected X and instead saw X. (totalt 418 st)
- Do not access Object.prototype method X from target object. (totalt 102 st)
- Unnecessary escape character: \/. (totalt 87 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: f76b98a8f35d8c4, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: f76b98a8f35d8c4, antal fel: 2498 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1532 st)
- Expected X and instead saw X. (totalt 718 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- Unnecessary escape character: \/. (totalt 88 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 1f0e2edd19f792c, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: 1f0e2edd19f792c, antal fel: 4145 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2167 st)
- Expected X and instead saw X. (totalt 1715 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 88 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: component---src, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: component---src, antal fel: 4160 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2176 st)
- Expected X and instead saw X. (totalt 1721 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 88 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 731-d836686a062, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: 731-d836686a062, antal fel: 4525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2359 st)
- Expected X and instead saw X. (totalt 1885 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 96 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: uc.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: uc.js, antal fel: 4877 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2600 st)
- Expected X and instead saw X. (totalt 1987 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 98 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: cc.js, antal grupperade fel: 26 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #43: cc.js, antal fel: 5224 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2906 st)
- Expected X and instead saw X. (totalt 2023 st)
- Do not access Object.prototype method X from target object. (totalt 113 st)
- Unnecessary escape character: \/. (totalt 98 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \$. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \*. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)