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: 218 ( 1.00 betyg )
- X is not defined. (totalt 169 st)
- X is defined but never used. (totalt 42 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: 388 ( 1.00 betyg )
- X is not defined. (totalt 330 st)
- X is defined but never used. (totalt 50 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #27: v1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: v1, antal fel: 673 ( 1.00 betyg )
- X is not defined. (totalt 606 st)
- X is defined but never used. (totalt 58 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: 764 ( 1.00 betyg )
- X is not defined. (totalt 689 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 25 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2634 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1787 st)
- Expected X and instead saw X. (totalt 691 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: 620 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 432 st)
- Expected X and instead saw X. (totalt 165 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 6 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 560 st)
- Expected X and instead saw X. (totalt 213 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- X is not modified in this loop. (totalt 5 st)
- eval can be harmful. (totalt 2 st)
- `content-type=".*javascript.*"` in: #27: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #27: v1, antal fel: 990 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 687 st)
- Expected X and instead saw X. (totalt 265 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 5 st)
- eval can be harmful. (totalt 3 st)
- `content-type=".*javascript.*"` in: #29: v1, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #29: v1, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 814 st)
- Expected X and instead saw X. (totalt 306 st)
- Comparing to itself is potentially pointless. (totalt 24 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- X is not modified in this loop. (totalt 5 st)
- eval can be harmful. (totalt 4 st)