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.87 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: 1449 ( 1.00 betyg )
- X is defined but never used. (totalt 675 st)
- X is assigned a value but never used. (totalt 317 st)
- X is not defined. (totalt 301 st)
- Unexpected console statement. (totalt 156 st)
- `content-type=".*javascript.*"` in: #25: 38952-1a4e65f02, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: 38952-1a4e65f02, antal fel: 29 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #26: 47155-ec7742d0c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 47155-ec7742d0c, antal fel: 36 ( 1.00 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 14 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #27: 3413-c99be471de, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 3413-c99be471de, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 14 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #29: async-gdpr-cook, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: async-gdpr-cook, antal fel: 56 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 17 st)
- X is assigned a value but never used. (totalt 17 st)
- Unexpected console statement. (totalt 5 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: 31 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 8075 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5072 st)
- Expected X and instead saw X. (totalt 2654 st)
- Do not access Object.prototype method X from target object. (totalt 134 st)
- Comparing to itself is potentially pointless. (totalt 56 st)
- Unnecessary X. (totalt 25 st)
- The Function constructor is eval. (totalt 22 st)
- X is not modified in this loop. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \). (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 st)
- Unnecessary escape character: \ . (totalt 3 st)
- Unnecessary escape character: \%. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- eval can be harmful. (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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 38952-1a4e65f02, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #25: 38952-1a4e65f02, antal fel: 348 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 176 st)
- Expected an assignment or function call and instead saw an expression. (totalt 172 st)
- `content-type=".*javascript.*"` in: #26: 47155-ec7742d0c, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: 47155-ec7742d0c, antal fel: 385 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 195 st)
- Expected an assignment or function call and instead saw an expression. (totalt 189 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: 3413-c99be471de, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: 3413-c99be471de, antal fel: 390 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 195 st)
- Expected an assignment or function call and instead saw an expression. (totalt 194 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: async-gdpr-cook, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #29: async-gdpr-cook, antal fel: 442 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 221 st)
- Expected an assignment or function call and instead saw an expression. (totalt 218 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)