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.29 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: 424 ( 1.00 betyg )
- X is not defined. (totalt 221 st)
- X is defined but never used. (totalt 153 st)
- X is assigned a value but never used. (totalt 31 st)
- Unexpected console statement. (totalt 19 st)
- `< script>` in: #17: calendar.png, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #17: calendar.png, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #17: calendar.png, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #17: calendar.png, antal fel: 48 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `< script>` in: #18: users.png, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #18: users.png, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #18: users.png, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #18: users.png, antal fel: 48 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: banner.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: banner.js, antal fel: 78 ( 1.00 betyg )
- X is defined but never used. (totalt 44 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 7 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: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2459 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1523 st)
- Expected X and instead saw X. (totalt 836 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unnecessary X. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- X is assigned to itself. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ThrowStatement. (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)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- Unnecessary escape character: \;. (totalt 1 st)
- `< script>` in: #17: calendar.png, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #17: calendar.png, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #17: calendar.png, antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #17: calendar.png, antal fel: 310 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 66 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script>` in: #18: users.png, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #18: users.png, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #18: users.png, antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #18: users.png, antal fel: 310 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 66 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: banner.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #45: banner.js, antal fel: 291 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 212 st)
- Expected X and instead saw X. (totalt 61 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)