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: 2.72 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 113 ( 1.00 betyg )
- X is not defined. (totalt 58 st)
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 3 st)
- `< script>` in: #40: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #40: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #50: hub.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #50: hub.html, antal fel: 13 ( 2.40 betyg )
- X is defined but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #23: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: gtm.js, antal fel: 516 ( 1.00 betyg )
- X is defined but never used. (totalt 418 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: ai.0.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: ai.0.js, antal fel: 543 ( 1.00 betyg )
- X is defined but never used. (totalt 440 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #37: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: uc.js, antal fel: 590 ( 1.00 betyg )
- X is defined but never used. (totalt 460 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #38: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: widget.js, antal fel: 590 ( 1.00 betyg )
- X is defined but never used. (totalt 460 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #39: axios.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: axios.min.js, antal fel: 613 ( 1.00 betyg )
- X is defined but never used. (totalt 478 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #41: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: cc.js, antal fel: 641 ( 1.00 betyg )
- X is defined but never used. (totalt 490 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #48: widget.a101de8f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: widget.a101de8f, antal fel: 1005 ( 1.00 betyg )
- X is defined but never used. (totalt 652 st)
- X is not defined. (totalt 189 st)
- X is assigned a value but never used. (totalt 104 st)
- Unexpected console statement. (totalt 60 st)
- `content-type=".*javascript.*"` in: #53: display-rules, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: display-rules, antal fel: 1006 ( 1.00 betyg )
- X is defined but never used. (totalt 652 st)
- X is not defined. (totalt 190 st)
- X is assigned a value but never used. (totalt 104 st)
- Unexpected console statement. (totalt 60 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , 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: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1040 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 713 st)
- Expected X and instead saw X. (totalt 302 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `< script>` in: #40: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #40: 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: #50: hub.html, antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #50: hub.html, antal fel: 131 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 79 st)
- Expected X and instead saw X. (totalt 47 st)
- The Function constructor is eval. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #23: gtm.js, antal fel: 1211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 841 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 90 st)
- Unnecessary escape character: \/. (totalt 68 st)
- X is not modified in this loop. (totalt 4 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: ai.0.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #25: ai.0.js, antal fel: 1530 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1062 st)
- Expected X and instead saw X. (totalt 292 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 68 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #37: uc.js, antal fel: 1882 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1303 st)
- Expected X and instead saw X. (totalt 394 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 70 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: widget.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #38: widget.js, antal fel: 1882 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1303 st)
- Expected X and instead saw X. (totalt 394 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 70 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: axios.min.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #39: axios.min.js, antal fel: 2085 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1422 st)
- Expected X and instead saw X. (totalt 471 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: cc.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #41: cc.js, antal fel: 2432 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1728 st)
- Expected X and instead saw X. (totalt 507 st)
- Do not access Object.prototype method X from target object. (totalt 91 st)
- Unnecessary escape character: \/. (totalt 70 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: widget.a101de8f, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #48: widget.a101de8f, antal fel: 4625 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3037 st)
- Expected X and instead saw X. (totalt 1322 st)
- Do not access Object.prototype method X from target object. (totalt 136 st)
- Unnecessary escape character: \/. (totalt 73 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Async function X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: display-rules, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: display-rules, antal fel: 4625 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3037 st)
- Expected X and instead saw X. (totalt 1322 st)
- Do not access Object.prototype method X from target object. (totalt 136 st)
- Unnecessary escape character: \/. (totalt 73 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Async function X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)