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: 4.09 av 5
- JS är bra.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 571 ( 1.00 betyg )
- X is not defined. (totalt 357 st)
- X is defined but never used. (totalt 189 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 10 st)
- `< script>` in: #12: 478054222, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #12: 478054222, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script>` in: #13: 478057063, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #13: 478057063, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: api.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: api.js, antal fel: 20 ( 1.00 betyg )
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: api.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: api.js, antal fel: 40 ( 1.00 betyg )
- X is defined but never used. (totalt 34 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: v1, antal fel: 254 ( 1.00 betyg )
- X is not defined. (totalt 204 st)
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #25: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: v1, antal fel: 397 ( 1.00 betyg )
- X is not defined. (totalt 338 st)
- X is defined but never used. (totalt 51 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: v1, antal fel: 617 ( 1.00 betyg )
- X is not defined. (totalt 548 st)
- X is defined but never used. (totalt 60 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: v1, antal fel: 789 ( 1.00 betyg )
- X is not defined. (totalt 709 st)
- X is defined but never used. (totalt 69 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 3 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2633 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1787 st)
- Expected X and instead saw X. (totalt 690 st)
- Do not access Object.prototype method X from target object. (totalt 45 st)
- Comparing to itself is potentially pointless. (totalt 36 st)
- Unnecessary escape character: \$. (totalt 12 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \:. (totalt 7 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 4 st)
- The Function constructor is eval. (totalt 4 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)
- X is not modified in this loop. (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)
- Unnecessary escape character: \}. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: api.js, antal fel: 222 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 152 st)
- Expected X and instead saw X. (totalt 62 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: api.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: api.js, antal fel: 444 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 304 st)
- Expected X and instead saw X. (totalt 124 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #23: v1, antal fel: 630 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 447 st)
- Expected X and instead saw X. (totalt 163 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #25: v1, antal fel: 803 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 573 st)
- Expected X and instead saw X. (totalt 205 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #28: v1, antal fel: 967 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 689 st)
- Expected X and instead saw X. (totalt 246 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- eval can be harmful. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #29: v1, antal fel: 1144 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 815 st)
- Expected X and instead saw X. (totalt 286 st)
- Comparing to itself is potentially pointless. (totalt 23 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- eval can be harmful. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)