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.49 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: 6 ( 3.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 397 ( 1.00 betyg )
- X is defined but never used. (totalt 245 st)
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 55 st)
- X is assigned a value but never used. (totalt 9 st)
- Parsing error: X in strict mode (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: siteanalyze-720, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: siteanalyze-720, antal fel: 24 ( 1.00 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: matomo.js, antal fel: 181 ( 1.00 betyg )
- X is not defined. (totalt 119 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 11 st)
- `content-type=".*javascript.*"` in: #45: www.emmaboda.se, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: www.emmaboda.se, antal fel: 182 ( 1.00 betyg )
- X is not defined. (totalt 119 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #49: browsealoud.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: browsealoud.js, antal fel: 192 ( 1.00 betyg )
- X is not defined. (totalt 120 st)
- X is defined but never used. (totalt 44 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #50: 155.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: 155.4755a93fc50, antal fel: 208 ( 1.00 betyg )
- X is not defined. (totalt 120 st)
- X is defined but never used. (totalt 59 st)
- Unexpected console statement. (totalt 16 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #51: 143.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: 143.4755a93fc50, antal fel: 233 ( 1.00 betyg )
- X is not defined. (totalt 131 st)
- X is defined but never used. (totalt 69 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 13 st)
- `content-type=".*javascript.*"` in: #52: 115.4755a93fc50, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: 115.4755a93fc50, antal fel: 233 ( 1.00 betyg )
- X is not defined. (totalt 131 st)
- X is defined but never used. (totalt 69 st)
- Unexpected console statement. (totalt 20 st)
- X is assigned a value but never used. (totalt 13 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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3314 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1893 st)
- Expected X and instead saw X. (totalt 1184 st)
- Do not access Object.prototype method X from target object. (totalt 73 st)
- Unnecessary escape character: \-. (totalt 52 st)
- Unnecessary X. (totalt 19 st)
- X is not modified in this loop. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- The Function constructor is eval. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 10 st)
- X is assigned to itself. (totalt 10 st)
- Async arrow function has no X expression. (totalt 9 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Script URL is a form of eval. (totalt 2 st)
- Parsing error: X in strict mode (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: siteanalyze-720, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #37: siteanalyze-720, antal fel: 146 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 71 st)
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: matomo.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #38: matomo.js, antal fel: 160 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 81 st)
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: www.emmaboda.se, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #45: www.emmaboda.se, antal fel: 160 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 81 st)
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: browsealoud.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #49: browsealoud.js, antal fel: 236 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 127 st)
- Expected an assignment or function call and instead saw an expression. (totalt 90 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: 155.4755a93fc50, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #50: 155.4755a93fc50, antal fel: 258 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 133 st)
- Expected an assignment or function call and instead saw an expression. (totalt 103 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: 143.4755a93fc50, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #51: 143.4755a93fc50, antal fel: 322 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 159 st)
- Expected an assignment or function call and instead saw an expression. (totalt 128 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (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)
- `content-type=".*javascript.*"` in: #52: 115.4755a93fc50, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #52: 115.4755a93fc50, antal fel: 323 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 159 st)
- Expected an assignment or function call and instead saw an expression. (totalt 129 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (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)