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.49 av 5
- JS är dålig.
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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 143 ( 1.00 betyg )
- X is not defined. (totalt 76 st)
- X is defined but never used. (totalt 38 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 8 st)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #49: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #49: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script>` in: #50: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #50: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: gtm.js, antal fel: 470 ( 1.00 betyg )
- X is defined but never used. (totalt 365 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: widget, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: widget, antal fel: 471 ( 1.00 betyg )
- X is defined but never used. (totalt 365 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: searchform, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: searchform, antal fel: 521 ( 1.00 betyg )
- X is defined but never used. (totalt 370 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #38: iframe-api, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: iframe-api, antal fel: 523 ( 1.00 betyg )
- X is defined but never used. (totalt 372 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #39: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: uc.js, antal fel: 570 ( 1.00 betyg )
- X is defined but never used. (totalt 392 st)
- X is assigned a value but never used. (totalt 107 st)
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 1111 ( 1.00 betyg )
- X is defined but never used. (totalt 814 st)
- X is assigned a value but never used. (totalt 202 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #41: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: js, antal fel: 1537 ( 1.00 betyg )
- X is defined but never used. (totalt 1154 st)
- X is assigned a value but never used. (totalt 274 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #43: main.C9eUAjEi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: main.C9eUAjEi.j, antal fel: 1664 ( 1.00 betyg )
- X is defined but never used. (totalt 1268 st)
- X is assigned a value but never used. (totalt 284 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 28 st)
- `content-type=".*javascript.*"` in: #45: app-092b6389.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #45: app-092b6389.js, antal fel: 1665 ( 1.00 betyg )
- X is defined but never used. (totalt 1268 st)
- X is assigned a value but never used. (totalt 284 st)
- X is not defined. (totalt 84 st)
- Unexpected console statement. (totalt 28 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal fel: 1682 ( 1.00 betyg )
- X is defined but never used. (totalt 1278 st)
- X is assigned a value but never used. (totalt 284 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 33 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: cc.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #51: cc.js, antal fel: 1710 ( 1.00 betyg )
- X is defined but never used. (totalt 1290 st)
- X is assigned a value but never used. (totalt 290 st)
- X is not defined. (totalt 95 st)
- Unexpected console statement. (totalt 34 st)
- Parsing error: Identifier X has already been declared (totalt 1 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: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 590 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 359 st)
- Expected X and instead saw X. (totalt 216 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #49: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #49: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `< script>` in: #50: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #50: 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: #26: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #26: gtm.js, antal fel: 1577 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1117 st)
- Expected X and instead saw X. (totalt 237 st)
- Unnecessary escape character: \/. (totalt 105 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: widget, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #36: widget, antal fel: 1577 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1117 st)
- Expected X and instead saw X. (totalt 237 st)
- Unnecessary escape character: \/. (totalt 105 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: searchform, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #37: searchform, antal fel: 1602 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1117 st)
- Expected X and instead saw X. (totalt 258 st)
- Unnecessary escape character: \/. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- X is not modified in this loop. (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)
- 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: iframe-api, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #38: iframe-api, antal fel: 1610 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1117 st)
- Expected X and instead saw X. (totalt 258 st)
- Unnecessary escape character: \/. (totalt 113 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- X is not modified in this loop. (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)
- 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)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: uc.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #39: uc.js, antal fel: 1962 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1358 st)
- Expected X and instead saw X. (totalt 360 st)
- Unnecessary escape character: \/. (totalt 115 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #40: js, antal fel: 3277 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2354 st)
- Expected X and instead saw X. (totalt 587 st)
- Do not access Object.prototype method X from target object. (totalt 183 st)
- Unnecessary escape character: \/. (totalt 118 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary X. (totalt 2 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)
- `content-type=".*javascript.*"` in: #41: js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #41: js, antal fel: 4902 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3623 st)
- Expected X and instead saw X. (totalt 836 st)
- Do not access Object.prototype method X from target object. (totalt 274 st)
- Unnecessary escape character: \/. (totalt 121 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: main.C9eUAjEi.j, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #43: main.C9eUAjEi.j, antal fel: 5549 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4088 st)
- Expected X and instead saw X. (totalt 987 st)
- Do not access Object.prototype method X from target object. (totalt 275 st)
- Unnecessary escape character: \/. (totalt 121 st)
- Script URL is a form of eval. (totalt 28 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: app-092b6389.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: app-092b6389.js, antal fel: 5550 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4088 st)
- Expected X and instead saw X. (totalt 987 st)
- Do not access Object.prototype method X from target object. (totalt 275 st)
- Unnecessary escape character: \/. (totalt 121 st)
- Script URL is a form of eval. (totalt 28 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: www-widgetapi.j, antal fel: 5761 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4188 st)
- Expected X and instead saw X. (totalt 1078 st)
- Do not access Object.prototype method X from target object. (totalt 282 st)
- Unnecessary escape character: \/. (totalt 121 st)
- Script URL is a form of eval. (totalt 28 st)
- X is assigned to itself. (totalt 18 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: cc.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: cc.js, antal fel: 6109 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4495 st)
- Expected X and instead saw X. (totalt 1114 st)
- Do not access Object.prototype method X from target object. (totalt 282 st)
- Unnecessary escape character: \/. (totalt 121 st)
- Script URL is a form of eval. (totalt 30 st)
- X is assigned to itself. (totalt 18 st)
- X is not modified in this loop. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unexpected string concatenation of literals. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)