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.62 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 843 ( 1.00 betyg )
- X is defined but never used. (totalt 597 st)
- X is assigned a value but never used. (totalt 121 st)
- X is not defined. (totalt 71 st)
- Unexpected console statement. (totalt 54 st)
- `content-type=".*javascript.*"` in: #39: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: gtm.js, antal fel: 583 ( 1.00 betyg )
- X is defined but never used. (totalt 473 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 922.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 922.min.js, antal fel: 583 ( 1.00 betyg )
- X is defined but never used. (totalt 473 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: 451.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: 451.min.js, antal fel: 583 ( 1.00 betyg )
- X is defined but never used. (totalt 473 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: 476.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: 476.min.js, antal fel: 584 ( 1.00 betyg )
- X is defined but never used. (totalt 474 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: 18.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: 18.min.js, antal fel: 584 ( 1.00 betyg )
- X is defined but never used. (totalt 474 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4891 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2495 st)
- Expected X and instead saw X. (totalt 2158 st)
- Do not access Object.prototype method X from target object. (totalt 122 st)
- X is not modified in this loop. (totalt 21 st)
- Unnecessary escape character: \-. (totalt 16 st)
- Unexpected string concatenation of literals. (totalt 15 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Redundant use of `await` on a return value. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Async arrow function has no X expression. (totalt 3 st)
- X is assigned to itself. (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)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \ . (totalt 1 st)
- Async method X has no X expression. (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: #39: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #39: gtm.js, antal fel: 1032 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 747 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #59: 922.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #59: 922.min.js, antal fel: 1033 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 748 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #60: 451.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #60: 451.min.js, antal fel: 1037 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 752 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #61: 476.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #61: 476.min.js, antal fel: 1041 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 756 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 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: #63: 18.min.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #63: 18.min.js, antal fel: 1045 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 760 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)