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.12 av 5
- JS är ok.
Webbstandard
- `< script>` in: #1: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: sv, antal fel: 982 ( 1.00 betyg )
- X is defined but never used. (totalt 564 st)
- X is not defined. (totalt 303 st)
- X is assigned a value but never used. (totalt 76 st)
- Unexpected console statement. (totalt 39 st)
- `< script>` in: #62: cropped-logga-l, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #62: cropped-logga-l, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #62: cropped-logga-l, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #62: cropped-logga-l, antal fel: 624 ( 1.00 betyg )
- X is defined but never used. (totalt 486 st)
- X is assigned a value but never used. (totalt 75 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 23 st)
- `content-type=".*javascript.*"` in: #52: banner.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #52: 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: sv, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: sv, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: sv, antal grupperade fel: 24 ( 1.00 betyg )
- `< script src="...">` in: #1: sv, antal fel: 3533 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2348 st)
- Expected X and instead saw X. (totalt 917 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary X. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Comparing to itself is potentially pointless. (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)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary escape character: \&. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 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)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `< script>` in: #62: cropped-logga-l, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #62: cropped-logga-l, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #62: cropped-logga-l, antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #62: cropped-logga-l, antal fel: 2834 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2020 st)
- Expected X and instead saw X. (totalt 651 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- X is assigned to itself. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \?. (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 2 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)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: banner.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #52: 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)