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.26 av 5
- JS är ok.
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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 83 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 13 st)
- X is not defined. (totalt 5 st)
- `< script>` in: #30: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #30: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #34: 517623975, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #34: 517623975, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #9: gtm.js, antal fel: 562 ( 1.00 betyg )
- X is defined but never used. (totalt 451 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 18 st)
- `content-type=".*javascript.*"` in: #10: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: gtm.js, antal fel: 1035 ( 1.00 betyg )
- X is defined but never used. (totalt 817 st)
- X is assigned a value but never used. (totalt 187 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: webReader.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: webReader.js, antal fel: 1629 ( 1.00 betyg )
- X is defined but never used. (totalt 833 st)
- X is not defined. (totalt 598 st)
- X is assigned a value but never used. (totalt 187 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #28: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: uc.js, antal fel: 1676 ( 1.00 betyg )
- X is defined but never used. (totalt 853 st)
- X is not defined. (totalt 599 st)
- X is assigned a value but never used. (totalt 202 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #29: bat.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: bat.js, antal fel: 1695 ( 1.00 betyg )
- X is defined but never used. (totalt 872 st)
- X is not defined. (totalt 599 st)
- X is assigned a value but never used. (totalt 202 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #31: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: cc.js, antal fel: 1723 ( 1.00 betyg )
- X is defined but never used. (totalt 884 st)
- X is not defined. (totalt 608 st)
- X is assigned a value but never used. (totalt 208 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #33: G-FKZBJP651L.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: G-FKZBJP651L.js, antal fel: 1723 ( 1.00 betyg )
- X is defined but never used. (totalt 884 st)
- X is not defined. (totalt 608 st)
- X is assigned a value but never used. (totalt 208 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #36: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: api.js, antal fel: 1743 ( 1.00 betyg )
- X is defined but never used. (totalt 901 st)
- X is not defined. (totalt 608 st)
- X is assigned a value but never used. (totalt 209 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #39: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: v1, antal fel: 2120 ( 1.00 betyg )
- X is not defined. (totalt 976 st)
- X is defined but never used. (totalt 909 st)
- X is assigned a value but never used. (totalt 209 st)
- Unexpected console statement. (totalt 26 st)
- `content-type=".*javascript.*"` in: #41: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: v1, antal fel: 2514 ( 1.00 betyg )
- X is not defined. (totalt 1361 st)
- X is defined but never used. (totalt 917 st)
- X is assigned a value but never used. (totalt 209 st)
- Unexpected console statement. (totalt 27 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 943 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 533 st)
- Expected X and instead saw X. (totalt 276 st)
- Unnecessary escape character: \-. (totalt 92 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 11 st)
- The Function constructor is eval. (totalt 4 st)
- Async arrow function has no X expression. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (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)
- `< script>` in: #30: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #30: 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: #9: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #9: gtm.js, antal fel: 1071 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 773 st)
- Expected X and instead saw X. (totalt 202 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Unnecessary escape character: \/. (totalt 11 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: gtm.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #10: gtm.js, antal fel: 2473 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1821 st)
- Expected X and instead saw X. (totalt 425 st)
- Do not access Object.prototype method X from target object. (totalt 171 st)
- Unnecessary escape character: \/. (totalt 35 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: webReader.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #26: webReader.js, antal fel: 2732 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1995 st)
- Expected X and instead saw X. (totalt 484 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 36 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #28: uc.js, antal fel: 3084 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2236 st)
- Expected X and instead saw X. (totalt 586 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 38 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: bat.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #29: bat.js, antal fel: 3390 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2371 st)
- Expected X and instead saw X. (totalt 655 st)
- Do not access Object.prototype method X from target object. (totalt 292 st)
- Unnecessary escape character: \/. (totalt 38 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #31: cc.js, antal fel: 3737 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2677 st)
- Expected X and instead saw X. (totalt 691 st)
- Do not access Object.prototype method X from target object. (totalt 292 st)
- Unnecessary escape character: \/. (totalt 38 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `content-type=".*javascript.*"` in: #33: G-FKZBJP651L.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #33: G-FKZBJP651L.js, antal fel: 3737 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2677 st)
- Expected X and instead saw X. (totalt 691 st)
- Do not access Object.prototype method X from target object. (totalt 292 st)
- Unnecessary escape character: \/. (totalt 38 st)
- X is assigned to itself. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `content-type=".*javascript.*"` in: #36: api.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #36: api.js, antal fel: 3959 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2829 st)
- Expected X and instead saw X. (totalt 753 st)
- Do not access Object.prototype method X from target object. (totalt 292 st)
- Unnecessary escape character: \/. (totalt 38 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `content-type=".*javascript.*"` in: #39: v1, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #39: v1, antal fel: 4153 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2961 st)
- Expected X and instead saw X. (totalt 807 st)
- Do not access Object.prototype method X from target object. (totalt 292 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `content-type=".*javascript.*"` in: #41: v1, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #41: v1, antal fel: 4329 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3087 st)
- Expected X and instead saw X. (totalt 849 st)
- Do not access Object.prototype method X from target object. (totalt 292 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- eval can be harmful. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 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)