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: 3.06 av 5
- JS är ok.
Webbstandard
- `< script>` in: #6: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #6: , antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #6: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #6: , antal fel: 678 ( 1.00 betyg )
- X is defined but never used. (totalt 326 st)
- X is not defined. (totalt 316 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 16 st)
- `< script>` in: #36: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #36: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #27: configuration.j, antal fel: 6 ( 3.80 betyg )
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #28: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: cc.js, antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: gtm.js, antal fel: 617 ( 1.00 betyg )
- X is defined but never used. (totalt 486 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: analytics.js, antal fel: 647 ( 1.00 betyg )
- X is defined but never used. (totalt 513 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: siteanalyze-608, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: siteanalyze-608, antal fel: 660 ( 1.00 betyg )
- X is defined but never used. (totalt 515 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #41: ga.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: ga.js, antal fel: 682 ( 1.00 betyg )
- X is defined but never used. (totalt 534 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 3 st)
Integritet & säkerhet
- `< script>` in: #6: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #6: , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #6: , antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #6: , antal fel: 2101 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1292 st)
- Expected X and instead saw X. (totalt 660 st)
- Unnecessary escape character: \/. (totalt 101 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \>. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script>` in: #36: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #36: 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: #28: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #28: cc.js, antal fel: 348 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 307 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #29: gtm.js, antal fel: 1539 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1144 st)
- Expected X and instead saw X. (totalt 275 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Script URL is a form of eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: analytics.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #37: analytics.js, antal fel: 1969 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1378 st)
- Expected X and instead saw X. (totalt 453 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: siteanalyze-608, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #38: siteanalyze-608, antal fel: 2010 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1381 st)
- Expected X and instead saw X. (totalt 486 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 7 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: ga.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #41: ga.js, antal fel: 2389 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1554 st)
- Expected X and instead saw X. (totalt 689 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- Unnecessary escape character: \/. (totalt 12 st)
- X is not modified in this loop. (totalt 8 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary X. (totalt 1 st)