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.27 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 717 ( 1.00 betyg )
- X is defined but never used. (totalt 537 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 72 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #5: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #5: loader.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: sdk.c8a61c94c9a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: sdk.c8a61c94c9a, antal fel: 115 ( 1.00 betyg )
- Unexpected console statement. (totalt 70 st)
- X is defined but never used. (totalt 42 st)
- X is assigned a value but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: ui-web-sv-web.c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: ui-web-sv-web.c, antal fel: 132 ( 1.00 betyg )
- Unexpected console statement. (totalt 76 st)
- X is defined but never used. (totalt 51 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: app-1.0.5.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: app-1.0.5.min.j, antal fel: 176 ( 1.00 betyg )
- X is defined but never used. (totalt 83 st)
- Unexpected console statement. (totalt 80 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #39: seenthis-player, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: seenthis-player, antal fel: 189 ( 1.00 betyg )
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 80 st)
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 4 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2694 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1932 st)
- Expected X and instead saw X. (totalt 636 st)
- Do not access Object.prototype method X from target object. (totalt 80 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- Async method X has no X expression. (totalt 5 st)
- Async arrow function has no X expression. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Redundant use of `await` on a return value. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Async function has no X expression. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #5: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #5: loader.js, antal fel: 24 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 17 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- `content-type=".*javascript.*"` in: #31: sdk.c8a61c94c9a, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #31: sdk.c8a61c94c9a, antal fel: 1531 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 908 st)
- Expected an assignment or function call and instead saw an expression. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: ui-web-sv-web.c, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #33: ui-web-sv-web.c, antal fel: 2154 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1279 st)
- Expected an assignment or function call and instead saw an expression. (totalt 842 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: app-1.0.5.min.j, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #37: app-1.0.5.min.j, antal fel: 2636 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1442 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1145 st)
- Do not access Object.prototype method X from target object. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: seenthis-player, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #39: seenthis-player, antal fel: 2826 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1477 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1296 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)