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.05 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1456 ( 1.00 betyg )
- X is not defined. (totalt 937 st)
- X is defined but never used. (totalt 415 st)
- Unexpected console statement. (totalt 83 st)
- X is assigned a value but never used. (totalt 21 st)
- `< script>` in: #82: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #82: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #88: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #88: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #88: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #88: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #93: bframe, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #93: bframe, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #93: bframe, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #93: bframe, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 79 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: cc.js, antal fel: 28 ( 1.00 betyg )
- X is defined but never used. (totalt 12 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: matomo.js, antal fel: 221 ( 1.00 betyg )
- X is not defined. (totalt 134 st)
- X is defined but never used. (totalt 51 st)
- X is assigned a value but never used. (totalt 19 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #94: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #94: common.js, antal fel: 233 ( 1.00 betyg )
- X is not defined. (totalt 135 st)
- X is defined but never used. (totalt 62 st)
- X is assigned a value but never used. (totalt 19 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #95: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #95: util.js, antal fel: 252 ( 1.00 betyg )
- X is not defined. (totalt 136 st)
- X is defined but never used. (totalt 77 st)
- X is assigned a value but never used. (totalt 21 st)
- Unexpected console statement. (totalt 18 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: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 7437 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4408 st)
- Expected X and instead saw X. (totalt 2605 st)
- X is assigned to itself. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Unnecessary escape character: \/. (totalt 34 st)
- Unnecessary X. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- The Function constructor is eval. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \ . (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \=. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `< script>` in: #82: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #82: 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 src="...">` in: #88: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #88: anchor, antal fel: 2356 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1699 st)
- Expected an assignment or function call and instead saw an expression. (totalt 604 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `< script src="...">` in: #93: bframe, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #93: bframe, antal fel: 2356 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1699 st)
- Expected an assignment or function call and instead saw an expression. (totalt 604 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (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: #69: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #69: cc.js, antal fel: 347 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 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: #70: matomo.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #70: matomo.js, antal fel: 409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 85 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 3 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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #94: common.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #94: common.js, antal fel: 846 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 648 st)
- Expected X and instead saw X. (totalt 169 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #95: util.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #95: util.js, antal fel: 2212 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1277 st)
- Expected X and instead saw X. (totalt 882 st)
- Do not access Object.prototype method X from target object. (totalt 19 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (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)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)