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.57 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is assigned a value but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 196 ( 1.00 betyg )
- X is not defined. (totalt 93 st)
- X is defined but never used. (totalt 77 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 3 st)
- `< script>` in: #11: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #11: 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)
- `< script>` in: #32: favicon.ico, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #32: favicon.ico, antal fel: 3 ( 4.40 betyg )
- X is assigned a value but never used. (totalt 3 st)
- `< script src="...">` in: #32: favicon.ico, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #32: favicon.ico, antal fel: 196 ( 1.00 betyg )
- X is not defined. (totalt 93 st)
- X is defined but never used. (totalt 77 st)
- Unexpected console statement. (totalt 23 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #12: container-18ZVy, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: container-18ZVy, antal fel: 69 ( 1.00 betyg )
- X is defined but never used. (totalt 32 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #18: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: sv.js, antal fel: 70 ( 1.00 betyg )
- X is defined but never used. (totalt 32 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #19: www.arn.se.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: www.arn.se.js, antal fel: 71 ( 1.00 betyg )
- X is defined but never used. (totalt 32 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #22: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: browsealoud.js, antal fel: 81 ( 1.00 betyg )
- X is defined but never used. (totalt 40 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #23: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: 155.4755a93fc50, antal fel: 97 ( 1.00 betyg )
- X is defined but never used. (totalt 55 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #24: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: 143.4755a93fc50, antal fel: 122 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #25: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 115.4755a93fc50, antal fel: 122 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #26: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 135.4755a93fc50, antal fel: 177 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #27: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 144.4755a93fc50, antal fel: 197 ( 1.00 betyg )
- X is defined but never used. (totalt 121 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #28: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 3.4755a93fc5065, antal fel: 456 ( 1.00 betyg )
- X is defined but never used. (totalt 249 st)
- X is not defined. (totalt 141 st)
- Unexpected console statement. (totalt 51 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #29: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 2.4755a93fc5065, antal fel: 496 ( 1.00 betyg )
- X is defined but never used. (totalt 271 st)
- X is not defined. (totalt 155 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #30: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 157.4755a93fc50, antal fel: 504 ( 1.00 betyg )
- X is defined but never used. (totalt 279 st)
- X is not defined. (totalt 155 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #31: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: 139.4755a93fc50, antal fel: 511 ( 1.00 betyg )
- X is defined but never used. (totalt 286 st)
- X is not defined. (totalt 155 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: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1110 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 706 st)
- Expected X and instead saw X. (totalt 373 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `< script>` in: #11: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #11: 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)
- `< script src="...">` in: #32: favicon.ico, antal grupperade fel: 12 ( 2.60 betyg )
- `< script src="...">` in: #32: favicon.ico, antal fel: 1110 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 706 st)
- Expected X and instead saw X. (totalt 373 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: container-18ZVy, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #12: container-18ZVy, antal fel: 12 ( 2.60 betyg )
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: sv.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: sv.js, antal fel: 12 ( 2.60 betyg )
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: www.arn.se.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: www.arn.se.js, antal fel: 12 ( 2.60 betyg )
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: browsealoud.js, antal fel: 88 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- `content-type=".*javascript.*"` in: #23: 155.4755a93fc50, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #23: 155.4755a93fc50, antal fel: 110 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 53 st)
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: 143.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #24: 143.4755a93fc50, antal fel: 174 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 79 st)
- Expected an assignment or function call and instead saw an expression. (totalt 68 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 3 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: #25: 115.4755a93fc50, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #25: 115.4755a93fc50, antal fel: 175 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 79 st)
- Expected an assignment or function call and instead saw an expression. (totalt 69 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 3 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: #26: 135.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #26: 135.4755a93fc50, antal fel: 995 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 525 st)
- Expected X and instead saw X. (totalt 398 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unnecessary escape character: \/. (totalt 11 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: #27: 144.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: 144.4755a93fc50, antal fel: 1045 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 556 st)
- Expected X and instead saw X. (totalt 417 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unnecessary escape character: \/. (totalt 11 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: #28: 3.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #28: 3.4755a93fc5065, antal fel: 3946 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2578 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 45 st)
- Unnecessary escape character: \/. (totalt 11 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: #29: 2.4755a93fc5065, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: 2.4755a93fc5065, antal fel: 4337 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2765 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 45 st)
- Unnecessary escape character: \/. (totalt 12 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: #30: 157.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: 157.4755a93fc50, antal fel: 4417 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2825 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 45 st)
- Unnecessary escape character: \/. (totalt 12 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: #31: 139.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: 139.4755a93fc50, antal fel: 4438 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2833 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 45 st)
- Unnecessary escape character: \/. (totalt 12 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)