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.25 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: 576 ( 1.00 betyg )
- X is defined but never used. (totalt 288 st)
- X is not defined. (totalt 215 st)
- Unexpected console statement. (totalt 57 st)
- X is assigned a value but never used. (totalt 15 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: jquery.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #49: jquery.min.js, antal fel: 37 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is assigned a value but never used. (totalt 4 st)
- X is not defined. (totalt 4 st)
- `content-type=".*javascript.*"` in: #50: www.sotenas.se., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #50: www.sotenas.se., antal fel: 38 ( 1.00 betyg )
- X is defined but never used. (totalt 29 st)
- X is assigned a value but never used. (totalt 5 st)
- X is not defined. (totalt 4 st)
- `content-type=".*javascript.*"` in: #57: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: integration, antal fel: 700 ( 1.00 betyg )
- X is not defined. (totalt 661 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: browsealoud.js, antal fel: 710 ( 1.00 betyg )
- X is not defined. (totalt 662 st)
- X is defined but never used. (totalt 40 st)
- X is assigned a value but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #59: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 155.4755a93fc50, antal fel: 726 ( 1.00 betyg )
- X is not defined. (totalt 662 st)
- X is defined but never used. (totalt 55 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #60: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: 143.4755a93fc50, antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 673 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #61: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: 115.4755a93fc50, antal fel: 751 ( 1.00 betyg )
- X is not defined. (totalt 673 st)
- X is defined but never used. (totalt 65 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #62: 356.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: 356.js, antal fel: 759 ( 1.00 betyg )
- X is not defined. (totalt 673 st)
- X is defined but never used. (totalt 73 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #64: slideshow-plugi, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: slideshow-plugi, antal fel: 777 ( 1.00 betyg )
- X is not defined. (totalt 681 st)
- X is defined but never used. (totalt 83 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 6 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: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3986 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2281 st)
- Expected X and instead saw X. (totalt 1425 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \-. (totalt 57 st)
- Unnecessary escape character: \/. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- The Function constructor is eval. (totalt 18 st)
- Unnecessary X. (totalt 17 st)
- Unexpected string concatenation of literals. (totalt 17 st)
- X is not modified in this loop. (totalt 15 st)
- X is assigned to itself. (totalt 13 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Script URL is a form of eval. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: jquery.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #49: jquery.min.js, antal fel: 453 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 286 st)
- Expected X and instead saw X. (totalt 139 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (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: #50: www.sotenas.se., antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #50: www.sotenas.se., antal fel: 453 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 286 st)
- Expected X and instead saw X. (totalt 139 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (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: #57: integration, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #57: integration, antal fel: 573 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 381 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: browsealoud.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #58: browsealoud.js, antal fel: 649 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 411 st)
- Expected X and instead saw X. (totalt 205 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 7 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 155.4755a93fc50, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #59: 155.4755a93fc50, antal fel: 671 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 424 st)
- Expected X and instead saw X. (totalt 211 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- The Function constructor is eval. (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)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: 143.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #60: 143.4755a93fc50, antal fel: 735 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 449 st)
- Expected X and instead saw X. (totalt 237 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- The Function constructor is eval. (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)
- Unexpected string concatenation of literals. (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: #61: 115.4755a93fc50, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #61: 115.4755a93fc50, antal fel: 736 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 450 st)
- Expected X and instead saw X. (totalt 237 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- The Function constructor is eval. (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)
- Unexpected string concatenation of literals. (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: #62: 356.js, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #62: 356.js, antal fel: 780 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 466 st)
- Expected X and instead saw X. (totalt 257 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unexpected string concatenation of literals. (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: #64: slideshow-plugi, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #64: slideshow-plugi, antal fel: 890 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 560 st)
- Expected X and instead saw X. (totalt 273 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 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)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unexpected string concatenation of literals. (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)