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.69 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #6: , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #6: , antal fel: 80 ( 1.00 betyg )
- X is defined but never used. (totalt 45 st)
- Unexpected console statement. (totalt 22 st)
- X is not defined. (totalt 13 st)
- `< script>` in: #21: 708557662, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #21: 708557662, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token const (totalt 1 st)
- `< script>` in: #44: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #54: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #54: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 449 ( 1.00 betyg )
- X is defined but never used. (totalt 346 st)
- X is assigned a value but never used. (totalt 89 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: uc.js, antal fel: 496 ( 1.00 betyg )
- X is defined but never used. (totalt 366 st)
- X is assigned a value but never used. (totalt 104 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #38: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: js, antal fel: 884 ( 1.00 betyg )
- X is defined but never used. (totalt 691 st)
- X is assigned a value but never used. (totalt 158 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #39: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: destination, antal fel: 1374 ( 1.00 betyg )
- X is defined but never used. (totalt 1080 st)
- X is assigned a value but never used. (totalt 237 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #40: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: destination, antal fel: 1911 ( 1.00 betyg )
- X is defined but never used. (totalt 1498 st)
- X is assigned a value but never used. (totalt 332 st)
- X is not defined. (totalt 69 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #41: player.module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: player.module.j, antal fel: 1999 ( 1.00 betyg )
- X is defined but never used. (totalt 1580 st)
- X is assigned a value but never used. (totalt 335 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #42: vendor.module.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: vendor.module.j, antal fel: 2182 ( 1.00 betyg )
- X is defined but never used. (totalt 1679 st)
- X is assigned a value but never used. (totalt 337 st)
- X is not defined. (totalt 143 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #45: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: cc.js, antal fel: 2210 ( 1.00 betyg )
- X is defined but never used. (totalt 1691 st)
- X is assigned a value but never used. (totalt 343 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 24 st)
- `content-type=".*javascript.*"` in: #47: vuid.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: vuid.min.js, antal fel: 2212 ( 1.00 betyg )
- X is defined but never used. (totalt 1693 st)
- X is assigned a value but never used. (totalt 343 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 24 st)
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal fel: 2216 ( 1.00 betyg )
- X is defined but never used. (totalt 1697 st)
- X is assigned a value but never used. (totalt 343 st)
- X is not defined. (totalt 152 st)
- Unexpected console statement. (totalt 24 st)
- `content-type=".*javascript.*"` in: #50: cast-framework., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: cast-framework., antal fel: 2248 ( 1.00 betyg )
- X is defined but never used. (totalt 1709 st)
- X is assigned a value but never used. (totalt 343 st)
- X is not defined. (totalt 172 st)
- Unexpected console statement. (totalt 24 st)
- `content-type=".*javascript.*"` in: #51: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: cast-sender.js, antal fel: 2257 ( 1.00 betyg )
- X is defined but never used. (totalt 1717 st)
- X is assigned a value but never used. (totalt 343 st)
- X is not defined. (totalt 172 st)
- Unexpected console statement. (totalt 25 st)
Integritet & säkerhet
- `< script>` in: #6: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #6: , antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #6: , antal grupperade fel: 26 ( 1.00 betyg )
- `< script src="...">` in: #6: , antal fel: 679 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 251 st)
- Unexpected string concatenation of literals. (totalt 175 st)
- Expected X and instead saw X. (totalt 123 st)
- Unnecessary escape character: \[. (totalt 20 st)
- Unnecessary escape character: \.. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \(. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 7 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 3 st)
- Unnecessary escape character: \!. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 2 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)
- `< script>` in: #21: 708557662, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #21: 708557662, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token const (totalt 1 st)
- `< script>` in: #44: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #44: 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: #54: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #54: 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: #18: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 1611 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1170 st)
- Expected X and instead saw X. (totalt 238 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 80 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #37: uc.js, antal fel: 1963 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1411 st)
- Expected X and instead saw X. (totalt 340 st)
- Do not access Object.prototype method X from target object. (totalt 108 st)
- Unnecessary escape character: \/. (totalt 82 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #38: js, antal fel: 3685 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2757 st)
- Expected X and instead saw X. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 212 st)
- Unnecessary escape character: \/. (totalt 85 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: destination, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #39: destination, antal fel: 5073 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3808 st)
- Expected X and instead saw X. (totalt 827 st)
- Do not access Object.prototype method X from target object. (totalt 302 st)
- Unnecessary escape character: \/. (totalt 88 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: destination, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #40: destination, antal fel: 6393 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4809 st)
- Expected X and instead saw X. (totalt 1054 st)
- Do not access Object.prototype method X from target object. (totalt 379 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: player.module.j, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #41: player.module.j, antal fel: 8196 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5796 st)
- Expected X and instead saw X. (totalt 1866 st)
- Do not access Object.prototype method X from target object. (totalt 382 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: vendor.module.j, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #42: vendor.module.j, antal fel: 9964 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6844 st)
- Expected X and instead saw X. (totalt 2556 st)
- Do not access Object.prototype method X from target object. (totalt 386 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is not modified in this loop. (totalt 19 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: cc.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: cc.js, antal fel: 10312 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7151 st)
- Expected X and instead saw X. (totalt 2592 st)
- Do not access Object.prototype method X from target object. (totalt 386 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is not modified in this loop. (totalt 19 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Script URL is a form of eval. (totalt 6 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 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 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)
- `content-type=".*javascript.*"` in: #47: vuid.min.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: vuid.min.js, antal fel: 10312 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7151 st)
- Expected X and instead saw X. (totalt 2592 st)
- Do not access Object.prototype method X from target object. (totalt 386 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is not modified in this loop. (totalt 19 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Script URL is a form of eval. (totalt 6 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 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 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)
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: cast-sender.js, antal fel: 10334 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7162 st)
- Expected X and instead saw X. (totalt 2603 st)
- Do not access Object.prototype method X from target object. (totalt 386 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is not modified in this loop. (totalt 19 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Script URL is a form of eval. (totalt 6 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 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 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)
- `content-type=".*javascript.*"` in: #50: cast-framework., antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #50: cast-framework., antal fel: 10535 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7272 st)
- Expected X and instead saw X. (totalt 2674 st)
- Do not access Object.prototype method X from target object. (totalt 386 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is assigned to itself. (totalt 29 st)
- X is not modified in this loop. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- Script URL is a form of eval. (totalt 6 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 4 st)
- Unnecessary escape character: \[. (totalt 3 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)
- `content-type=".*javascript.*"` in: #51: cast-sender.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: cast-sender.js, antal fel: 10715 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7355 st)
- Expected X and instead saw X. (totalt 2755 st)
- Do not access Object.prototype method X from target object. (totalt 391 st)
- Unnecessary escape character: \/. (totalt 91 st)
- X is assigned to itself. (totalt 36 st)
- X is not modified in this loop. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 8 st)
- Script URL is a form of eval. (totalt 6 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 4 st)
- Unnecessary escape character: \[. (totalt 3 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)