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.71 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 581 ( 1.00 betyg )
- X is defined but never used. (totalt 453 st)
- Unexpected console statement. (totalt 80 st)
- X is not defined. (totalt 31 st)
- X is assigned a value but never used. (totalt 17 st)
- `< script>` in: #24: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #24: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (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: 597 ( 1.00 betyg )
- X is defined but never used. (totalt 489 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 24 st)
- `content-type=".*javascript.*"` in: #19: configuration.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: configuration.j, antal fel: 604 ( 1.00 betyg )
- X is defined but never used. (totalt 489 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 31 st)
- `content-type=".*javascript.*"` in: #20: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: cc.js, antal fel: 632 ( 1.00 betyg )
- X is defined but never used. (totalt 501 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 1762de5d50a01ad, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 1762de5d50a01ad, antal fel: 635 ( 1.00 betyg )
- X is defined but never used. (totalt 502 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: embed-grid.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: embed-grid.js, antal fel: 657 ( 1.00 betyg )
- X is defined but never used. (totalt 519 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #32: chatPanel.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: chatPanel.js, antal fel: 994 ( 1.00 betyg )
- X is defined but never used. (totalt 784 st)
- X is assigned a value but never used. (totalt 92 st)
- Unexpected console statement. (totalt 66 st)
- X is not defined. (totalt 52 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- Unnecessary escape character: \/. (totalt 4 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 6291 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3238 st)
- Expected X and instead saw X. (totalt 2825 st)
- Do not access Object.prototype method X from target object. (totalt 51 st)
- Comparing to itself is potentially pointless. (totalt 43 st)
- Unsafe usage of ThrowStatement. (totalt 40 st)
- Unsafe usage of ReturnStatement. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 11 st)
- The Function constructor is eval. (totalt 11 st)
- Unnecessary X. (totalt 10 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- X is assigned to itself. (totalt 4 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script>` in: #24: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #24: 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: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #9: gtm.js, antal fel: 1041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 742 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: configuration.j, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #19: configuration.j, antal fel: 1041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 742 st)
- Expected X and instead saw X. (totalt 201 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: cc.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #20: cc.js, antal fel: 1389 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1049 st)
- Expected X and instead saw X. (totalt 237 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: 1762de5d50a01ad, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #28: 1762de5d50a01ad, antal fel: 1392 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1049 st)
- Expected X and instead saw X. (totalt 240 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: embed-grid.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #31: embed-grid.js, antal fel: 2259 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1380 st)
- Expected X and instead saw X. (totalt 746 st)
- Do not access Object.prototype method X from target object. (totalt 74 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- The Function constructor is eval. (totalt 6 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: chatPanel.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #32: chatPanel.js, antal fel: 6226 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3344 st)
- Expected X and instead saw X. (totalt 2609 st)
- Do not access Object.prototype method X from target object. (totalt 107 st)
- Unsafe usage of ThrowStatement. (totalt 39 st)
- Unsafe usage of ReturnStatement. (totalt 35 st)
- Comparing to itself is potentially pointless. (totalt 29 st)
- Unnecessary escape character: \/. (totalt 21 st)
- X is not modified in this loop. (totalt 12 st)
- The Function constructor is eval. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 3 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)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)