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.99 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: 2643 ( 1.00 betyg )
- X is not defined. (totalt 1497 st)
- X is defined but never used. (totalt 999 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 56 st)
- `< script>` in: #28: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #28: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: st, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #26: st, antal fel: 63 ( 1.00 betyg )
- X is not defined. (totalt 63 st)
- `content-type=".*javascript.*"` in: #29: sv.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #29: sv.js, antal fel: 64 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- `content-type=".*javascript.*"` in: #30: 8760.18e87cb228, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: 8760.18e87cb228, antal fel: 65 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: 4563.d52ee66102, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #31: 4563.d52ee66102, antal fel: 65 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: 8808.460affc6df, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: 8808.460affc6df, antal fel: 72 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #33: 4866.355755638d, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #33: 4866.355755638d, antal fel: 72 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #34: 7287.a431a9ac9f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: 7287.a431a9ac9f, antal fel: 72 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #35: 9090.502fa3227d, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: 9090.502fa3227d, antal fel: 72 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #36: 2034.5d8993a677, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: 2034.5d8993a677, antal fel: 72 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: 2751.4c1357068e, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: 2751.4c1357068e, antal fel: 73 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 7 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #38: 2714.4d0685b618, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: 2714.4d0685b618, antal fel: 74 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- X is defined but never used. (totalt 7 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #39: dy-coll-nojq-mi, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #39: dy-coll-nojq-mi, antal fel: 1069 ( 1.00 betyg )
- X is not defined. (totalt 1008 st)
- X is defined but never used. (totalt 56 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: 29 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 6962 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4518 st)
- Expected X and instead saw X. (totalt 2148 st)
- Do not access Object.prototype method X from target object. (totalt 149 st)
- Unsafe usage of ThrowStatement. (totalt 18 st)
- X is not modified in this loop. (totalt 18 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Comparing to itself is potentially pointless. (totalt 15 st)
- Unnecessary escape character: \(. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 7 st)
- Unnecessary escape character: \@. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- eval can be harmful. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 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)
- 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)
- Unnecessary escape character: \". (totalt 1 st)
- `< script>` in: #28: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #28: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #30: 8760.18e87cb228, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: 8760.18e87cb228, antal fel: 7 ( 3.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #31: 4563.d52ee66102, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: 4563.d52ee66102, antal fel: 19 ( 1.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- Expected X and instead saw X. (totalt 7 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: 8808.460affc6df, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: 8808.460affc6df, antal fel: 185 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 96 st)
- Expected X and instead saw X. (totalt 81 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #33: 4866.355755638d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 4866.355755638d, antal fel: 264 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 146 st)
- Expected X and instead saw X. (totalt 105 st)
- Unsafe usage of ThrowStatement. (totalt 9 st)
- X is not modified in this loop. (totalt 4 st)
- `content-type=".*javascript.*"` in: #34: 7287.a431a9ac9f, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: 7287.a431a9ac9f, antal fel: 367 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 211 st)
- Expected X and instead saw X. (totalt 140 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- X is not modified in this loop. (totalt 5 st)
- `content-type=".*javascript.*"` in: #35: 9090.502fa3227d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: 9090.502fa3227d, antal fel: 374 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 215 st)
- Expected X and instead saw X. (totalt 143 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- X is not modified in this loop. (totalt 5 st)
- `content-type=".*javascript.*"` in: #36: 2034.5d8993a677, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: 2034.5d8993a677, antal fel: 377 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 218 st)
- Expected X and instead saw X. (totalt 143 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- X is not modified in this loop. (totalt 5 st)
- `content-type=".*javascript.*"` in: #37: 2751.4c1357068e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 2751.4c1357068e, antal fel: 415 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 235 st)
- Expected X and instead saw X. (totalt 156 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- X is not modified in this loop. (totalt 9 st)
- `content-type=".*javascript.*"` in: #38: 2714.4d0685b618, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: 2714.4d0685b618, antal fel: 443 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 251 st)
- Expected X and instead saw X. (totalt 166 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- `content-type=".*javascript.*"` in: #39: dy-coll-nojq-mi, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #39: dy-coll-nojq-mi, antal fel: 1017 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 595 st)
- Expected X and instead saw X. (totalt 374 st)
- Unsafe usage of ThrowStatement. (totalt 16 st)
- X is not modified in this loop. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 4 st)
- eval can be harmful. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)