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.13 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 421 ( 1.00 betyg )
- X is not defined. (totalt 210 st)
- X is defined but never used. (totalt 195 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 3 st)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #35: TSPD, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #35: TSPD, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #35: TSPD, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #35: TSPD, antal fel: 130 ( 1.00 betyg )
- X is not defined. (totalt 66 st)
- X is defined but never used. (totalt 62 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: container-Dzbc3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: container-Dzbc3, antal fel: 184 ( 1.00 betyg )
- X is not defined. (totalt 104 st)
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 13 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: 4409 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2714 st)
- Expected X and instead saw X. (totalt 1478 st)
- Do not access Object.prototype method X from target object. (totalt 65 st)
- Comparing to itself is potentially pointless. (totalt 49 st)
- Unnecessary X. (totalt 18 st)
- X is not modified in this loop. (totalt 14 st)
- The Function constructor is eval. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (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)
- Parsing error: X in strict mode (totalt 1 st)
- `< script>` in: #35: TSPD, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #35: TSPD, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Unnecessary escape character: \A. (totalt 3 st)
- Unnecessary escape character: \Z. (totalt 3 st)
- `< script src="...">` in: #35: TSPD, antal grupperade fel: 6 ( 3.80 betyg )
- `< script src="...">` in: #35: TSPD, antal fel: 508 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 220 st)
- Expected X and instead saw X. (totalt 200 st)
- X is not modified in this loop. (totalt 81 st)
- Unnecessary escape character: \A. (totalt 3 st)
- Unnecessary escape character: \Z. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: container-Dzbc3, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: container-Dzbc3, antal fel: 62 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 42 st)
- Expected X and instead saw X. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 1 st)