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.35 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 97 ( 1.00 betyg )
- X is not defined. (totalt 56 st)
- X is defined but never used. (totalt 35 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #22: container-Sg2yR, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: container-Sg2yR, antal fel: 81 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #29: www.arbetsdomst, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: www.arbetsdomst, antal fel: 82 ( 1.00 betyg )
- X is defined but never used. (totalt 41 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #32: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: browsealoud.js, antal fel: 92 ( 1.00 betyg )
- X is defined but never used. (totalt 49 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #33: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 155.4755a93fc50, antal fel: 108 ( 1.00 betyg )
- X is defined but never used. (totalt 64 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #34: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: 143.4755a93fc50, antal fel: 133 ( 1.00 betyg )
- X is defined but never used. (totalt 74 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #35: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: 115.4755a93fc50, antal fel: 133 ( 1.00 betyg )
- X is defined but never used. (totalt 74 st)
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #36: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: 135.4755a93fc50, antal fel: 188 ( 1.00 betyg )
- X is defined but never used. (totalt 119 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #37: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 144.4755a93fc50, antal fel: 208 ( 1.00 betyg )
- X is defined but never used. (totalt 130 st)
- X is not defined. (totalt 47 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #38: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: 3.4755a93fc5065, antal fel: 467 ( 1.00 betyg )
- X is defined but never used. (totalt 258 st)
- X is not defined. (totalt 143 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #39: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: 2.4755a93fc5065, antal fel: 507 ( 1.00 betyg )
- X is defined but never used. (totalt 280 st)
- X is not defined. (totalt 157 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #40: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 157.4755a93fc50, antal fel: 515 ( 1.00 betyg )
- X is defined but never used. (totalt 288 st)
- X is not defined. (totalt 157 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #41: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: 139.4755a93fc50, antal fel: 522 ( 1.00 betyg )
- X is defined but never used. (totalt 295 st)
- X is not defined. (totalt 157 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 15 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 735 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 473 st)
- Expected X and instead saw X. (totalt 232 st)
- Unnecessary X. (totalt 7 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: container-Sg2yR, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #22: container-Sg2yR, antal fel: 13 ( 2.40 betyg )
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: www.arbetsdomst, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #29: www.arbetsdomst, antal fel: 13 ( 2.40 betyg )
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: browsealoud.js, antal fel: 89 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 48 st)
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- `content-type=".*javascript.*"` in: #33: 155.4755a93fc50, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #33: 155.4755a93fc50, antal fel: 111 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 54 st)
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: 143.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #34: 143.4755a93fc50, antal fel: 175 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 80 st)
- Expected an assignment or function call and instead saw an expression. (totalt 68 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is 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)
- 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)
- `content-type=".*javascript.*"` in: #35: 115.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #35: 115.4755a93fc50, antal fel: 176 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 80 st)
- Expected an assignment or function call and instead saw an expression. (totalt 69 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is 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)
- 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)
- `content-type=".*javascript.*"` in: #36: 135.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #36: 135.4755a93fc50, antal fel: 996 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 399 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is 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)
- 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)
- `content-type=".*javascript.*"` in: #37: 144.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #37: 144.4755a93fc50, antal fel: 1046 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 556 st)
- Expected X and instead saw X. (totalt 418 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is 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)
- 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)
- `content-type=".*javascript.*"` in: #38: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #38: 3.4755a93fc5065, antal fel: 3947 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2579 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1278 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is 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)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: 2.4755a93fc5065, antal fel: 4338 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2766 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1467 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (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 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)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #40: 157.4755a93fc50, antal fel: 4418 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2826 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1487 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (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 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)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #41: 139.4755a93fc50, antal fel: 4439 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2834 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1500 st)
- Do not access Object.prototype method X from target object. (totalt 47 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (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 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)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)