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.33 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 980 ( 1.00 betyg )
- X is not defined. (totalt 787 st)
- X is defined but never used. (totalt 146 st)
- Unexpected console statement. (totalt 39 st)
- X is assigned a value but never used. (totalt 6 st)
- Parsing error: X in strict mode (totalt 2 st)
- `content-type=".*javascript.*"` in: #46: common.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #46: common.js, antal fel: 12 ( 2.60 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: util.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- X is not defined. (totalt 2 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: marker.js, antal fel: 36 ( 1.00 betyg )
- X is defined but never used. (totalt 26 st)
- Unexpected console statement. (totalt 5 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #52: focus-visible.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: focus-visible.j, antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is not defined. (totalt 5 st)
- Unexpected console statement. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #53: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: integration, antal fel: 703 ( 1.00 betyg )
- X is not defined. (totalt 662 st)
- X is defined but never used. (totalt 32 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #73: www.bollebygd.s, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: www.bollebygd.s, antal fel: 704 ( 1.00 betyg )
- X is not defined. (totalt 662 st)
- X is defined but never used. (totalt 32 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #75: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: browsealoud.js, antal fel: 714 ( 1.00 betyg )
- X is not defined. (totalt 663 st)
- X is defined but never used. (totalt 40 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #77: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: 155.4755a93fc50, antal fel: 730 ( 1.00 betyg )
- X is not defined. (totalt 663 st)
- X is defined but never used. (totalt 55 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #78: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: 143.4755a93fc50, antal fel: 755 ( 1.00 betyg )
- X is not defined. (totalt 674 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #79: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: 115.4755a93fc50, antal fel: 755 ( 1.00 betyg )
- X is not defined. (totalt 674 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 4 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: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3395 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2114 st)
- Expected X and instead saw X. (totalt 886 st)
- X is assigned to itself. (totalt 223 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary X. (totalt 24 st)
- Unnecessary escape character: \-. (totalt 21 st)
- Unnecessary escape character: \/. (totalt 16 st)
- The Function constructor is eval. (totalt 10 st)
- Async arrow function has no X expression. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \=. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 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)
- Parsing error: X in strict mode (totalt 2 st)
- Unnecessary escape character: \>. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: common.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #46: common.js, antal fel: 437 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 342 st)
- Expected X and instead saw X. (totalt 84 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: util.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #47: util.js, antal fel: 1803 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 971 st)
- Expected X and instead saw X. (totalt 797 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: marker.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #48: marker.js, antal fel: 2132 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1254 st)
- Expected X and instead saw X. (totalt 838 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: focus-visible.j, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #52: focus-visible.j, antal fel: 2133 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1255 st)
- Expected X and instead saw X. (totalt 838 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: integration, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #53: integration, antal fel: 2253 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1350 st)
- Expected X and instead saw X. (totalt 858 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: www.bollebygd.s, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #73: www.bollebygd.s, antal fel: 2253 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1350 st)
- Expected X and instead saw X. (totalt 858 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: browsealoud.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #75: browsealoud.js, antal fel: 2329 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1380 st)
- Expected X and instead saw X. (totalt 904 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: 155.4755a93fc50, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #77: 155.4755a93fc50, antal fel: 2351 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1393 st)
- Expected X and instead saw X. (totalt 910 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: 143.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: 143.4755a93fc50, antal fel: 2415 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1418 st)
- Expected X and instead saw X. (totalt 936 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X has no X expression. (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: #79: 115.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #79: 115.4755a93fc50, antal fel: 2416 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1419 st)
- Expected X and instead saw X. (totalt 936 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- X is assigned to itself. (totalt 11 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Unnecessary escape character: \$. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Async method X has no X expression. (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)