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.75 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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 27 ( 1.00 betyg )
- X is defined but never used. (totalt 14 st)
- X is not defined. (totalt 12 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: Hyphenopoly-412, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #17: Hyphenopoly-412, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: juupajoki.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: juupajoki.js, antal fel: 126 ( 1.00 betyg )
- X is not defined. (totalt 124 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: #32: modernizr.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: modernizr.min.j, antal fel: 129 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: enquire.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: enquire.js, antal fel: 129 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: savvior.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: savvior.js, antal fel: 132 ( 1.00 betyg )
- X is not defined. (totalt 126 st)
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: linkify-with-ht, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: linkify-with-ht, antal fel: 134 ( 1.00 betyg )
- X is not defined. (totalt 127 st)
- X is defined but never used. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: timeago.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: timeago.js, antal fel: 141 ( 1.00 betyg )
- X is not defined. (totalt 131 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 3 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: 7 ( 3.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 506 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 304 st)
- Expected X and instead saw X. (totalt 190 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: Hyphenopoly-412, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #17: Hyphenopoly-412, antal fel: 27 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 24 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: juupajoki.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #19: juupajoki.js, antal fel: 72 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 41 st)
- Expected X and instead saw X. (totalt 21 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: #32: modernizr.min.j, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #32: modernizr.min.j, antal fel: 92 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 51 st)
- Expected X and instead saw X. (totalt 28 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (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)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: enquire.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #34: enquire.js, antal fel: 98 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 57 st)
- Expected X and instead saw X. (totalt 28 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (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)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: savvior.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #35: savvior.js, antal fel: 107 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 66 st)
- Expected X and instead saw X. (totalt 28 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (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)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: linkify-with-ht, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #36: linkify-with-ht, antal fel: 180 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 133 st)
- Expected X and instead saw X. (totalt 34 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary X. (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)
- Unnecessary escape character: \!. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: timeago.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #37: timeago.js, antal fel: 185 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 133 st)
- Expected X and instead saw X. (totalt 34 st)
- Unexpected string concatenation of literals. (totalt 4 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 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)
- Do not access Object.prototype method X from target object. (totalt 1 st)