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.36 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 257 ( 1.00 betyg )
- X is defined but never used. (totalt 117 st)
- X is not defined. (totalt 116 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 10 st)
- `< script>` in: #35: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 525 ( 1.00 betyg )
- X is defined but never used. (totalt 426 st)
- X is assigned a value but never used. (totalt 82 st)
- X is not defined. (totalt 16 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: combine, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: combine, antal fel: 603 ( 1.00 betyg )
- X is defined but never used. (totalt 438 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #29: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: uc.js, antal fel: 650 ( 1.00 betyg )
- X is defined but never used. (totalt 458 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 36 st)
- `content-type=".*javascript.*"` in: #30: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: js, antal fel: 1056 ( 1.00 betyg )
- X is defined but never used. (totalt 787 st)
- X is assigned a value but never used. (totalt 165 st)
- X is not defined. (totalt 68 st)
- Unexpected console statement. (totalt 36 st)
- `content-type=".*javascript.*"` in: #36: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: cc.js, antal fel: 1084 ( 1.00 betyg )
- X is defined but never used. (totalt 799 st)
- X is assigned a value but never used. (totalt 171 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 37 st)
- `content-type=".*javascript.*"` in: #39: app-4a5be142.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: app-4a5be142.js, antal fel: 1085 ( 1.00 betyg )
- X is defined but never used. (totalt 799 st)
- X is assigned a value but never used. (totalt 171 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 37 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: searchform, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #40: searchform, antal fel: 1086 ( 1.00 betyg )
- X is defined but never used. (totalt 799 st)
- X is assigned a value but never used. (totalt 171 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 38 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: widget, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #41: widget, antal fel: 1087 ( 1.00 betyg )
- X is defined but never used. (totalt 799 st)
- X is assigned a value but never used. (totalt 171 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 39 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: main.75oHbO4W.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #47: main.75oHbO4W.j, antal fel: 1201 ( 1.00 betyg )
- X is defined but never used. (totalt 887 st)
- X is assigned a value but never used. (totalt 183 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 53 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: main.C9eUAjEi.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #49: main.C9eUAjEi.j, antal fel: 1328 ( 1.00 betyg )
- X is defined but never used. (totalt 1001 st)
- X is assigned a value but never used. (totalt 193 st)
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 56 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: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2288 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1541 st)
- Expected X and instead saw X. (totalt 648 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unnecessary X. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 12 st)
- eval can be harmful. (totalt 11 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 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)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `< script>` in: #35: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #35: 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: #18: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #18: gtm.js, antal fel: 1293 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 833 st)
- Expected X and instead saw X. (totalt 204 st)
- Unnecessary escape character: \/. (totalt 151 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- X is not modified in this loop. (totalt 3 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: #19: combine, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #19: combine, antal fel: 1318 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 833 st)
- Expected X and instead saw X. (totalt 225 st)
- Unnecessary escape character: \/. (totalt 152 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 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: #29: uc.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #29: uc.js, antal fel: 1670 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1074 st)
- Expected X and instead saw X. (totalt 327 st)
- Unnecessary escape character: \/. (totalt 154 st)
- Do not access Object.prototype method X from target object. (totalt 96 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)
- 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #30: js, antal fel: 3290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2348 st)
- Expected X and instead saw X. (totalt 563 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 157 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (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)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: cc.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #36: cc.js, antal fel: 3637 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2654 st)
- Expected X and instead saw X. (totalt 599 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 157 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #39: app-4a5be142.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: app-4a5be142.js, antal fel: 3638 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2654 st)
- Expected X and instead saw X. (totalt 599 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 157 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: searchform, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: searchform, antal fel: 3638 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2654 st)
- Expected X and instead saw X. (totalt 599 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 157 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: widget, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: widget, antal fel: 3638 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2654 st)
- Expected X and instead saw X. (totalt 599 st)
- Do not access Object.prototype method X from target object. (totalt 190 st)
- Unnecessary escape character: \/. (totalt 157 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: main.75oHbO4W.j, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #47: main.75oHbO4W.j, antal fel: 4833 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3367 st)
- Expected X and instead saw X. (totalt 1052 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- Unnecessary escape character: \/. (totalt 157 st)
- X is not modified in this loop. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Script URL is a form of eval. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Redundant use of `await` on a return value. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Async method X has no X expression. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async function X has no X expression. (totalt 2 st)
- Async arrow 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: main.C9eUAjEi.j, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #49: main.C9eUAjEi.j, antal fel: 5480 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3832 st)
- Expected X and instead saw X. (totalt 1203 st)
- Do not access Object.prototype method X from target object. (totalt 195 st)
- Unnecessary escape character: \/. (totalt 157 st)
- Script URL is a form of eval. (totalt 32 st)
- X is not modified in this loop. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Redundant use of `await` on a return value. (totalt 5 st)
- Async method X has no X expression. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async function X 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)