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.10 av 5
- JS är ok.
Webbstandard
- `< script>` in: #29: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #29: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: notified-news-l, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #17: notified-news-l, antal fel: 40 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #18: top-nav.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: top-nav.js, antal fel: 42 ( 1.00 betyg )
- X is defined but never used. (totalt 31 st)
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #19: materialstyle.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: materialstyle.m, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 33 st)
- X is not defined. (totalt 8 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 576 ( 1.00 betyg )
- X is defined but never used. (totalt 460 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 26 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #25: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: uc.js, antal fel: 623 ( 1.00 betyg )
- X is defined but never used. (totalt 480 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #30: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: cc.js, antal fel: 651 ( 1.00 betyg )
- X is defined but never used. (totalt 492 st)
- X is assigned a value but never used. (totalt 104 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 19 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 )
- Expected X and instead saw X. (totalt 1 st)
- `< script>` in: #29: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #29: 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: #17: notified-news-l, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #17: notified-news-l, antal fel: 918 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 591 st)
- Expected X and instead saw X. (totalt 283 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: top-nav.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #18: top-nav.js, antal fel: 918 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 591 st)
- Expected X and instead saw X. (totalt 283 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: materialstyle.m, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: materialstyle.m, antal fel: 1210 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 836 st)
- Expected X and instead saw X. (totalt 330 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #20: gtm.js, antal fel: 2335 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1645 st)
- Expected X and instead saw X. (totalt 532 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #25: uc.js, antal fel: 2687 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1886 st)
- Expected X and instead saw X. (totalt 634 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: cc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #30: cc.js, antal fel: 3034 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2192 st)
- Expected X and instead saw X. (totalt 670 st)
- Do not access Object.prototype method X from target object. (totalt 118 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)