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.17 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: 127 ( 1.00 betyg )
- X is defined but never used. (totalt 102 st)
- Unexpected console statement. (totalt 14 st)
- X is not defined. (totalt 11 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 578 ( 1.00 betyg )
- X is defined but never used. (totalt 474 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: www.autism.se.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: www.autism.se.j, antal fel: 579 ( 1.00 betyg )
- X is defined but never used. (totalt 474 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: browsealoud.js, antal fel: 589 ( 1.00 betyg )
- X is defined but never used. (totalt 482 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #25: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #25: 155.4755a93fc50, antal fel: 605 ( 1.00 betyg )
- X is defined but never used. (totalt 497 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: 143.4755a93fc50, antal fel: 630 ( 1.00 betyg )
- X is defined but never used. (totalt 507 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #27: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: 115.4755a93fc50, antal fel: 630 ( 1.00 betyg )
- X is defined but never used. (totalt 507 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #28: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: 135.4755a93fc50, antal fel: 685 ( 1.00 betyg )
- X is defined but never used. (totalt 552 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #29: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 144.4755a93fc50, antal fel: 705 ( 1.00 betyg )
- X is defined but never used. (totalt 563 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #30: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: 3.4755a93fc5065, antal fel: 964 ( 1.00 betyg )
- X is defined but never used. (totalt 691 st)
- X is not defined. (totalt 140 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 42 st)
- `content-type=".*javascript.*"` in: #31: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: 2.4755a93fc5065, antal fel: 1004 ( 1.00 betyg )
- X is defined but never used. (totalt 713 st)
- X is not defined. (totalt 154 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 46 st)
- `content-type=".*javascript.*"` in: #32: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: 157.4755a93fc50, antal fel: 1012 ( 1.00 betyg )
- X is defined but never used. (totalt 721 st)
- X is not defined. (totalt 154 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 46 st)
- `content-type=".*javascript.*"` in: #33: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: 139.4755a93fc50, antal fel: 1019 ( 1.00 betyg )
- X is defined but never used. (totalt 728 st)
- X is not defined. (totalt 154 st)
- X is assigned a value but never used. (totalt 91 st)
- Unexpected console statement. (totalt 46 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- Unnecessary escape character: \/. (totalt 2 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 29 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1897 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1033 st)
- Expected X and instead saw X. (totalt 773 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 10 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- Unnecessary escape character: \}. (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)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #19: gtm.js, antal fel: 1027 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 733 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: www.autism.se.j, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #22: www.autism.se.j, antal fel: 1027 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 733 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: browsealoud.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #24: browsealoud.js, antal fel: 1103 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 763 st)
- Expected X and instead saw X. (totalt 244 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: 155.4755a93fc50, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #25: 155.4755a93fc50, antal fel: 1125 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 776 st)
- Expected X and instead saw X. (totalt 250 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: 143.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #26: 143.4755a93fc50, antal fel: 1189 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 801 st)
- Expected X and instead saw X. (totalt 276 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 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: #27: 115.4755a93fc50, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: 115.4755a93fc50, antal fel: 1190 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 802 st)
- Expected X and instead saw X. (totalt 276 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 17 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 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: #28: 135.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #28: 135.4755a93fc50, antal fel: 2010 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1258 st)
- Expected X and instead saw X. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 19 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 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: #29: 144.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #29: 144.4755a93fc50, antal fel: 2060 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1289 st)
- Expected X and instead saw X. (totalt 614 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- Unnecessary escape character: \/. (totalt 19 st)
- X is not modified in this loop. (totalt 8 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 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: #30: 3.4755a93fc5065, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #30: 3.4755a93fc5065, antal fel: 4961 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2775 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2011 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 19 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Async method X has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 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: #31: 2.4755a93fc5065, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #31: 2.4755a93fc5065, antal fel: 5352 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2962 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2200 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 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)
- Async method X has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: 157.4755a93fc50, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #32: 157.4755a93fc50, antal fel: 5432 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3022 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2220 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 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)
- Async method X has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: 139.4755a93fc50, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: 139.4755a93fc50, antal fel: 5453 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 3030 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2233 st)
- Do not access Object.prototype method X from target object. (totalt 114 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 9 st)
- Unnecessary escape character: \-. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 3 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)
- Async method X has no X expression. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)