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.59 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 89 ( 1.00 betyg )
- X is defined but never used. (totalt 68 st)
- Unexpected console statement. (totalt 11 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #10: d6e1aeb5-0f37ba, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #10: d6e1aeb5-0f37ba, antal fel: 154 ( 1.00 betyg )
- X is defined but never used. (totalt 145 st)
- X is assigned a value but never used. (totalt 7 st)
- X is not defined. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: 31bf041a1c5752e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #11: 31bf041a1c5752e, antal fel: 172 ( 1.00 betyg )
- X is defined but never used. (totalt 153 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 9 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: component---src, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: component---src, antal fel: 266 ( 1.00 betyg )
- X is defined but never used. (totalt 227 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 12 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #16: 731-1ca5156a59f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 731-1ca5156a59f, antal fel: 270 ( 1.00 betyg )
- X is defined but never used. (totalt 229 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 12 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 744 st)
- Expected X and instead saw X. (totalt 506 st)
- Do not access Object.prototype method X from target object. (totalt 29 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: d6e1aeb5-0f37ba, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #10: d6e1aeb5-0f37ba, antal fel: 1623 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1379 st)
- Expected X and instead saw X. (totalt 214 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: 31bf041a1c5752e, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #11: 31bf041a1c5752e, antal fel: 2484 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2027 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: component---src, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #12: component---src, antal fel: 3998 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3001 st)
- Expected X and instead saw X. (totalt 892 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 731-1ca5156a59f, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #16: 731-1ca5156a59f, antal fel: 4364 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3185 st)
- Expected X and instead saw X. (totalt 1056 st)
- Do not access Object.prototype method X from target object. (totalt 52 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \,. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)