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.92 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 )
- Unexpected console statement. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 416 ( 1.00 betyg )
- X is defined but never used. (totalt 307 st)
- Unexpected console statement. (totalt 74 st)
- X is not defined. (totalt 23 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token function (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: loader.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 9 st)
- `content-type=".*javascript.*"` in: #53: iframeResizer.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #53: iframeResizer.m, antal fel: 35 ( 1.00 betyg )
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #59: ai.2.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #59: ai.2.min.js, antal fel: 126 ( 1.00 betyg )
- X is defined but never used. (totalt 108 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #67: 2.90d2145a.chun, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: 2.90d2145a.chun, antal fel: 487 ( 1.00 betyg )
- X is defined but never used. (totalt 428 st)
- Unexpected console statement. (totalt 42 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: main.dc5dd9ab.c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: main.dc5dd9ab.c, antal fel: 517 ( 1.00 betyg )
- X is defined but never used. (totalt 445 st)
- Unexpected console statement. (totalt 54 st)
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- Unexpected string concatenation of literals. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2879 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1767 st)
- Expected X and instead saw X. (totalt 1000 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is assigned to itself. (totalt 13 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Parsing error: Unexpected token function (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `< script>` in: #62: null, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #62: null, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: loader.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #31: loader.js, antal fel: 298 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 147 st)
- Expected X and instead saw X. (totalt 133 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: iframeResizer.m, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #53: iframeResizer.m, antal fel: 363 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 199 st)
- Expected X and instead saw X. (totalt 144 st)
- Unnecessary X. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: ai.2.min.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #59: ai.2.min.js, antal fel: 836 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 612 st)
- Expected X and instead saw X. (totalt 184 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: 2.90d2145a.chun, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #67: 2.90d2145a.chun, antal fel: 4002 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2826 st)
- Expected X and instead saw X. (totalt 802 st)
- Unnecessary escape character: \.. (totalt 122 st)
- Do not access Object.prototype method X from target object. (totalt 67 st)
- Unnecessary escape character: \/. (totalt 47 st)
- Comparing to itself is potentially pointless. (totalt 30 st)
- Unnecessary escape character: \). (totalt 14 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary X. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: main.dc5dd9ab.c, antal grupperade fel: 29 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #68: main.dc5dd9ab.c, antal fel: 4213 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2963 st)
- Expected X and instead saw X. (totalt 876 st)
- Unnecessary escape character: \.. (totalt 122 st)
- Do not access Object.prototype method X from target object. (totalt 67 st)
- Unnecessary escape character: \/. (totalt 47 st)
- Comparing to itself is potentially pointless. (totalt 30 st)
- Unnecessary escape character: \). (totalt 14 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary X. (totalt 11 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 8 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- The Function constructor is eval. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)