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.64 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 270 ( 1.00 betyg )
- X is not defined. (totalt 172 st)
- X is defined but never used. (totalt 79 st)
- Unexpected console statement. (totalt 13 st)
- X is assigned a value but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #28: verkkosivut.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: verkkosivut.js, antal fel: 123 ( 1.00 betyg )
- X is not defined. (totalt 121 st)
- X is assigned a value but never used. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: enquire.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: enquire.js, antal fel: 123 ( 1.00 betyg )
- X is not defined. (totalt 121 st)
- X is assigned a value but never used. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: savvior.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #46: savvior.js, antal fel: 126 ( 1.00 betyg )
- X is not defined. (totalt 121 st)
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: linkify-with-ht, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: linkify-with-ht, antal fel: 128 ( 1.00 betyg )
- X is not defined. (totalt 122 st)
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #48: timeago.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: timeago.js, antal fel: 135 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #51: embed.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: embed.min.js, antal fel: 167 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- Unexpected console statement. (totalt 31 st)
- X is defined but never used. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 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: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 966 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 650 st)
- Expected X and instead saw X. (totalt 289 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: verkkosivut.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #28: verkkosivut.js, antal fel: 45 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 18 st)
- Expected an assignment or function call and instead saw an expression. (totalt 17 st)
- Unexpected string concatenation of literals. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: enquire.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #44: enquire.js, antal fel: 51 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 23 st)
- Expected X and instead saw X. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: savvior.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #46: savvior.js, antal fel: 60 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 32 st)
- Expected X and instead saw X. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: linkify-with-ht, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: linkify-with-ht, antal fel: 133 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 99 st)
- Expected X and instead saw X. (totalt 24 st)
- Unexpected string concatenation of literals. (totalt 4 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: timeago.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #48: timeago.js, antal fel: 138 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 99 st)
- Expected X and instead saw X. (totalt 24 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: embed.min.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #51: embed.min.js, antal fel: 177 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 135 st)
- Expected X and instead saw X. (totalt 26 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)