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.23 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: 373 ( 1.00 betyg )
- X is not defined. (totalt 177 st)
- X is defined but never used. (totalt 139 st)
- Unexpected console statement. (totalt 45 st)
- X is assigned a value but never used. (totalt 9 st)
- Parsing error: X in strict mode (totalt 3 st)
- `content-type=".*javascript.*"` in: #56: integration, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #56: integration, antal fel: 662 ( 1.00 betyg )
- X is not defined. (totalt 657 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #57: www.tanum.se.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: www.tanum.se.js, antal fel: 663 ( 1.00 betyg )
- X is not defined. (totalt 657 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: browsealoud.js, antal fel: 673 ( 1.00 betyg )
- X is not defined. (totalt 658 st)
- X is defined but never used. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: 155.4755a93fc50, antal fel: 689 ( 1.00 betyg )
- X is not defined. (totalt 658 st)
- X is defined but never used. (totalt 26 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #69: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: 143.4755a93fc50, antal fel: 714 ( 1.00 betyg )
- X is not defined. (totalt 669 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #70: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: 115.4755a93fc50, antal fel: 714 ( 1.00 betyg )
- X is not defined. (totalt 669 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #71: 135.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: 135.4755a93fc50, antal fel: 769 ( 1.00 betyg )
- X is not defined. (totalt 674 st)
- X is defined but never used. (totalt 81 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #72: 144.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: 144.4755a93fc50, antal fel: 789 ( 1.00 betyg )
- X is not defined. (totalt 683 st)
- X is defined but never used. (totalt 92 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #73: 3.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: 3.4755a93fc5065, antal fel: 1048 ( 1.00 betyg )
- X is not defined. (totalt 779 st)
- X is defined but never used. (totalt 220 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #74: 2.4755a93fc5065, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: 2.4755a93fc5065, antal fel: 1088 ( 1.00 betyg )
- X is not defined. (totalt 793 st)
- X is defined but never used. (totalt 242 st)
- Unexpected console statement. (totalt 47 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #75: 157.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: 157.4755a93fc50, antal fel: 1096 ( 1.00 betyg )
- X is not defined. (totalt 793 st)
- X is defined but never used. (totalt 250 st)
- Unexpected console statement. (totalt 47 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #76: 139.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: 139.4755a93fc50, antal fel: 1103 ( 1.00 betyg )
- X is not defined. (totalt 793 st)
- X is defined but never used. (totalt 257 st)
- Unexpected console statement. (totalt 47 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: 21 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2137 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1242 st)
- Expected X and instead saw X. (totalt 722 st)
- Unnecessary escape character: \-. (totalt 56 st)
- Do not access Object.prototype method X from target object. (totalt 40 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- The Function constructor is eval. (totalt 9 st)
- Async arrow function has no X expression. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- X is assigned to itself. (totalt 4 st)
- Parsing error: X in strict mode (totalt 3 st)
- X is not modified in this loop. (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)
- Unnecessary escape character: \^. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: integration, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #56: integration, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: www.tanum.se.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #57: www.tanum.se.js, antal fel: 120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 20 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: browsealoud.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #67: browsealoud.js, antal fel: 196 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 125 st)
- Expected X and instead saw X. (totalt 66 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: 155.4755a93fc50, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #68: 155.4755a93fc50, antal fel: 218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 138 st)
- Expected X and instead saw X. (totalt 72 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: 143.4755a93fc50, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #69: 143.4755a93fc50, antal fel: 282 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 163 st)
- Expected X and instead saw X. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (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: #70: 115.4755a93fc50, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #70: 115.4755a93fc50, antal fel: 283 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 164 st)
- Expected X and instead saw X. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unexpected string concatenation of literals. (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: #71: 135.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #71: 135.4755a93fc50, antal fel: 1103 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 620 st)
- Expected X and instead saw X. (totalt 417 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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: #72: 144.4755a93fc50, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: 144.4755a93fc50, antal fel: 1153 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 651 st)
- Expected X and instead saw X. (totalt 436 st)
- Do not access Object.prototype method X from target object. (totalt 33 st)
- Unnecessary escape character: \/. (totalt 5 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unexpected string concatenation of literals. (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: #73: 3.4755a93fc5065, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #73: 3.4755a93fc5065, antal fel: 4054 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2597 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1373 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 2 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)
- Unexpected string concatenation of literals. (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: #74: 2.4755a93fc5065, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #74: 2.4755a93fc5065, antal fel: 4445 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2784 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1562 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary escape character: \/. (totalt 6 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 escape character: \:. (totalt 2 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: 157.4755a93fc50, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #75: 157.4755a93fc50, antal fel: 4525 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2844 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1582 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary escape character: \/. (totalt 6 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 escape character: \:. (totalt 2 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: 139.4755a93fc50, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #76: 139.4755a93fc50, antal fel: 4546 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2852 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1595 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- Unnecessary escape character: \/. (totalt 6 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 escape character: \:. (totalt 2 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)
- Unexpected string concatenation of literals. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)