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.16 av 5
- JS är ok.
Webbstandard
- `< script>` in: #20: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #4: container-BL9Ys, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #4: container-BL9Ys, antal fel: 226 ( 1.00 betyg )
- X is not defined. (totalt 130 st)
- X is defined but never used. (totalt 61 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #10: insight.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: insight.min.js, antal fel: 251 ( 1.00 betyg )
- X is not defined. (totalt 131 st)
- X is defined but never used. (totalt 82 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #11: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: uc.js, antal fel: 298 ( 1.00 betyg )
- X is not defined. (totalt 132 st)
- X is defined but never used. (totalt 102 st)
- Unexpected console statement. (totalt 34 st)
- X is assigned a value but never used. (totalt 30 st)
- `content-type=".*javascript.*"` in: #12: scripts.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: scripts.js, antal fel: 386 ( 1.00 betyg )
- X is not defined. (totalt 191 st)
- X is defined but never used. (totalt 122 st)
- Unexpected console statement. (totalt 41 st)
- X is assigned a value but never used. (totalt 32 st)
- `content-type=".*javascript.*"` in: #21: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: cc.js, antal fel: 414 ( 1.00 betyg )
- X is not defined. (totalt 200 st)
- X is defined but never used. (totalt 134 st)
- Unexpected console statement. (totalt 42 st)
- X is assigned a value but never used. (totalt 38 st)
Integritet & säkerhet
- `< script>` in: #20: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #20: 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: #4: container-BL9Ys, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #4: container-BL9Ys, antal fel: 108 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 55 st)
- Unnecessary escape character: \/. (totalt 34 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: insight.min.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #10: insight.min.js, antal fel: 266 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 114 st)
- Expected an assignment or function call and instead saw an expression. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 35 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (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: #11: uc.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #11: uc.js, antal fel: 618 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 331 st)
- Expected X and instead saw X. (totalt 216 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unexpected string concatenation of literals. (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: #12: scripts.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #12: scripts.js, antal fel: 1095 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 661 st)
- Expected X and instead saw X. (totalt 358 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: cc.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #21: cc.js, antal fel: 1442 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 967 st)
- Expected X and instead saw X. (totalt 394 st)
- Unnecessary escape character: \/. (totalt 37 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)