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.70 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 58 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: 510-92d844f2d2a, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: 510-92d844f2d2a, antal fel: 39 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- X is assigned a value but never used. (totalt 12 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 964-f6347ed2d9c, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: 964-f6347ed2d9c, antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 426-a152017df65, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: 426-a152017df65, antal fel: 48 ( 1.00 betyg )
- X is defined but never used. (totalt 28 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: layout-4c6b06b3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: layout-4c6b06b3, antal fel: 55 ( 1.00 betyg )
- X is defined but never used. (totalt 34 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: not-found-d99dd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: not-found-d99dd, antal fel: 56 ( 1.00 betyg )
- X is defined but never used. (totalt 34 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #24: ccd63cfe-bc5e83, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: ccd63cfe-bc5e83, antal fel: 65 ( 1.00 betyg )
- X is defined but never used. (totalt 42 st)
- X is assigned a value but never used. (totalt 19 st)
- Unexpected console statement. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #25: 599-3a738ebfc5b, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 599-3a738ebfc5b, antal fel: 66 ( 1.00 betyg )
- X is defined but never used. (totalt 42 st)
- X is assigned a value but never used. (totalt 20 st)
- Unexpected console statement. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: 310-6ab24047134, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 310-6ab24047134, antal fel: 87 ( 1.00 betyg )
- X is defined but never used. (totalt 63 st)
- X is assigned a value but never used. (totalt 20 st)
- Unexpected console statement. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #27: 572-483e2389146, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 572-483e2389146, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 71 st)
- X is assigned a value but never used. (totalt 24 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: page-d03f4c4d75, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: page-d03f4c4d75, antal fel: 101 ( 1.00 betyg )
- X is defined but never used. (totalt 71 st)
- X is assigned a value but never used. (totalt 24 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 3 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 self (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1740 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 917 st)
- Expected X and instead saw X. (totalt 790 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async function X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: 510-92d844f2d2a, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: 510-92d844f2d2a, antal fel: 586 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 444 st)
- Expected X and instead saw X. (totalt 138 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- `content-type=".*javascript.*"` in: #20: 964-f6347ed2d9c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: 964-f6347ed2d9c, antal fel: 643 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 476 st)
- Expected X and instead saw X. (totalt 161 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 426-a152017df65, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: 426-a152017df65, antal fel: 711 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 513 st)
- Expected X and instead saw X. (totalt 191 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: layout-4c6b06b3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: layout-4c6b06b3, antal fel: 755 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 540 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: not-found-d99dd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: not-found-d99dd, antal fel: 762 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 547 st)
- Expected X and instead saw X. (totalt 208 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: ccd63cfe-bc5e83, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: ccd63cfe-bc5e83, antal fel: 967 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 671 st)
- Expected X and instead saw X. (totalt 285 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 599-3a738ebfc5b, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #25: 599-3a738ebfc5b, antal fel: 1040 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 730 st)
- Expected X and instead saw X. (totalt 294 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: 310-6ab24047134, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: 310-6ab24047134, antal fel: 1303 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 792 st)
- Expected X and instead saw X. (totalt 489 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 572-483e2389146, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #27: 572-483e2389146, antal fel: 1401 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 847 st)
- Expected X and instead saw X. (totalt 532 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: page-d03f4c4d75, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #28: page-d03f4c4d75, antal fel: 1405 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 851 st)
- Expected X and instead saw X. (totalt 532 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)