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: 3.37 av 5
- JS är ok.
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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 96 ( 1.00 betyg )
- X is defined but never used. (totalt 74 st)
- Unexpected console statement. (totalt 13 st)
- X is not defined. (totalt 9 st)
- `< script>` in: #4: 1064235834, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #4: 1064235834, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: commons-87e21a2, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: commons-87e21a2, antal fel: 29 ( 1.00 betyg )
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #39: 9c31700cf97414f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: 9c31700cf97414f, antal fel: 58 ( 1.00 betyg )
- Unexpected console statement. (totalt 30 st)
- X is defined but never used. (totalt 24 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: component---src, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: component---src, antal fel: 58 ( 1.00 betyg )
- Unexpected console statement. (totalt 30 st)
- X is defined but never used. (totalt 24 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #49: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: api.js, antal fel: 78 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- Unexpected console statement. (totalt 32 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #52: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: v1, antal fel: 210 ( 1.00 betyg )
- X is not defined. (totalt 124 st)
- X is defined but never used. (totalt 50 st)
- Unexpected console statement. (totalt 33 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #53: 108-c3733ec8088, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: 108-c3733ec8088, antal fel: 214 ( 1.00 betyg )
- X is not defined. (totalt 124 st)
- X is defined but never used. (totalt 52 st)
- Unexpected console statement. (totalt 35 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #55: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: v1, antal fel: 354 ( 1.00 betyg )
- X is not defined. (totalt 255 st)
- X is defined but never used. (totalt 60 st)
- Unexpected console statement. (totalt 36 st)
- X is assigned a value but never used. (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 : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 763 st)
- Expected X and instead saw X. (totalt 413 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: commons-87e21a2, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #38: commons-87e21a2, antal fel: 265 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 134 st)
- Expected X and instead saw X. (totalt 111 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: 9c31700cf97414f, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #39: 9c31700cf97414f, antal fel: 799 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 459 st)
- Expected X and instead saw X. (totalt 302 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: component---src, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #40: component---src, antal fel: 800 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 460 st)
- Expected X and instead saw X. (totalt 302 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: api.js, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #49: api.js, antal fel: 1022 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 612 st)
- Expected X and instead saw X. (totalt 364 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: v1, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #52: v1, antal fel: 1192 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 738 st)
- Expected X and instead saw X. (totalt 401 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: 108-c3733ec8088, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: 108-c3733ec8088, antal fel: 1558 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 922 st)
- Expected X and instead saw X. (totalt 565 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Async arrow function has no X expression. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: v1, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #55: v1, antal fel: 1735 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1053 st)
- Expected X and instead saw X. (totalt 602 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Redundant use of `await` on a return value. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Async arrow function has no X expression. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Async function X has no X expression. (totalt 1 st)
- Unnecessary X. (totalt 1 st)