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.82 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 : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 220 ( 1.00 betyg )
- X is defined but never used. (totalt 135 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 20 st)
- `< script>` in: #31: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #31: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: polyfills-2c54f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: polyfills-2c54f, antal fel: 16 ( 1.80 betyg )
- X is defined but never used. (totalt 15 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: configuration.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #21: configuration.j, antal fel: 22 ( 1.00 betyg )
- X is defined but never used. (totalt 15 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #22: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: cc.js, antal fel: 50 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: chunk-576-576-c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: chunk-576-576-c, antal fel: 55 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #35: chunk-762-762-6, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: chunk-762-762-6, antal fel: 56 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: chunk-164-post-, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: chunk-164-post-, antal fel: 57 ( 1.00 betyg )
- X is defined but never used. (totalt 30 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- Parsing error: Unexpected token (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: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2509 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1563 st)
- Expected X and instead saw X. (totalt 855 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary X. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \%. (totalt 1 st)
- Async function has no X expression. (totalt 1 st)
- Redundant use of `await` on a return value. (totalt 1 st)
- `< script>` in: #31: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #31: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: polyfills-2c54f, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #13: polyfills-2c54f, antal fel: 79 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 39 st)
- Expected an assignment or function call and instead saw an expression. (totalt 32 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: configuration.j, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #21: configuration.j, antal fel: 79 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 39 st)
- Expected an assignment or function call and instead saw an expression. (totalt 32 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: cc.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #22: cc.js, antal fel: 427 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 339 st)
- Expected X and instead saw X. (totalt 75 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: chunk-576-576-c, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #34: chunk-576-576-c, antal fel: 493 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 369 st)
- Expected X and instead saw X. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: chunk-762-762-6, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #35: chunk-762-762-6, antal fel: 494 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 369 st)
- Expected X and instead saw X. (totalt 106 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: chunk-164-post-, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #36: chunk-164-post-, antal fel: 508 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 376 st)
- Expected X and instead saw X. (totalt 112 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)