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.84 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: se, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: se, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: se, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: se, antal fel: 305 ( 1.00 betyg )
- X is defined but never used. (totalt 179 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 53 st)
- X is not defined. (totalt 16 st)
- `content-type=".*javascript.*"` in: #27: 4316.1ad1144997, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #27: 4316.1ad1144997, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: 2764.49fcf96cf5, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #38: 2764.49fcf96cf5, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: gtm.js, antal fel: 485 ( 1.00 betyg )
- X is defined but never used. (totalt 377 st)
- X is assigned a value but never used. (totalt 93 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: destination, antal fel: 958 ( 1.00 betyg )
- X is defined but never used. (totalt 753 st)
- X is assigned a value but never used. (totalt 170 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: destination, antal fel: 1511 ( 1.00 betyg )
- X is defined but never used. (totalt 1185 st)
- X is assigned a value but never used. (totalt 268 st)
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: js, antal fel: 1930 ( 1.00 betyg )
- X is defined but never used. (totalt 1518 st)
- X is assigned a value but never used. (totalt 340 st)
- X is not defined. (totalt 71 st)
- Unexpected console statement. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: se, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: se, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: se, antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: se, antal fel: 4092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2270 st)
- Expected X and instead saw X. (totalt 1711 st)
- Do not access Object.prototype method X from target object. (totalt 56 st)
- Async arrow function has no X expression. (totalt 12 st)
- X is not modified in this loop. (totalt 8 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Async function X has no X expression. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Async method X has no X expression. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 4316.1ad1144997, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #27: 4316.1ad1144997, antal fel: 42 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- Expected X and instead saw X. (totalt 17 st)
- `content-type=".*javascript.*"` in: #38: 2764.49fcf96cf5, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #38: 2764.49fcf96cf5, antal fel: 49 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Expected X and instead saw X. (totalt 21 st)
- `content-type=".*javascript.*"` in: #41: gtm.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #41: gtm.js, antal fel: 1606 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1141 st)
- Expected X and instead saw X. (totalt 248 st)
- Unnecessary escape character: \/. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 98 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: destination, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #48: destination, antal fel: 2947 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2158 st)
- Expected X and instead saw X. (totalt 468 st)
- Do not access Object.prototype method X from target object. (totalt 188 st)
- Unnecessary escape character: \/. (totalt 109 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: destination, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #49: destination, antal fel: 4118 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3038 st)
- Expected X and instead saw X. (totalt 673 st)
- Do not access Object.prototype method X from target object. (totalt 262 st)
- Unnecessary escape character: \/. (totalt 112 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #50: js, antal fel: 5681 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4264 st)
- Expected X and instead saw X. (totalt 904 st)
- Do not access Object.prototype method X from target object. (totalt 353 st)
- Unnecessary escape character: \/. (totalt 115 st)
- X is not modified in this loop. (totalt 12 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)