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.54 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: 185 ( 1.00 betyg )
- X is not defined. (totalt 155 st)
- X is defined but never used. (totalt 21 st)
- Unexpected console statement. (totalt 7 st)
- X is assigned a value but never used. (totalt 2 st)
- `< script>` in: #10: Tm1Ga2IzWmxidz0, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #10: Tm1Ga2IzWmxidz0, antal fel: 67 ( 1.00 betyg )
- X is not defined. (totalt 46 st)
- X is defined but never used. (totalt 16 st)
- Unexpected console statement. (totalt 5 st)
- `content-type=".*javascript.*"` in: #26: jquery-ui.min.j, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: jquery-ui.min.j, antal fel: 17 ( 1.60 betyg )
- X is defined but never used. (totalt 11 st)
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: jquery.datetime, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: jquery.datetime, antal fel: 26 ( 1.00 betyg )
- X is not defined. (totalt 13 st)
- X is defined but never used. (totalt 12 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: leaderboard.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: leaderboard.js, antal fel: 79 ( 1.00 betyg )
- X is not defined. (totalt 62 st)
- X is defined but never used. (totalt 13 st)
- X is assigned a value but never used. (totalt 2 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal fel: 92 ( 1.00 betyg )
- X is not defined. (totalt 74 st)
- X is defined but never used. (totalt 13 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #30: theme.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: theme.js, antal fel: 104 ( 1.00 betyg )
- X is not defined. (totalt 86 st)
- X is defined but never used. (totalt 13 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: modernizr.custo, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: modernizr.custo, antal fel: 110 ( 1.00 betyg )
- X is not defined. (totalt 89 st)
- X is defined but never used. (totalt 15 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: require.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: require.js, antal fel: 112 ( 1.00 betyg )
- X is not defined. (totalt 89 st)
- X is defined but never used. (totalt 17 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #33: jquery.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: jquery.js, antal fel: 134 ( 1.00 betyg )
- X is not defined. (totalt 91 st)
- X is defined but never used. (totalt 37 st)
- X is assigned a value but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #37: amd-app.8fdf514, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: amd-app.8fdf514, antal fel: 5276 ( 1.00 betyg )
- X is not defined. (totalt 4697 st)
- Unexpected console statement. (totalt 298 st)
- X is defined but never used. (totalt 215 st)
- X is assigned a value but never used. (totalt 66 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 151 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 75 st)
- Expected X and instead saw X. (totalt 44 st)
- Do not access Object.prototype method X from target object. (totalt 30 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script>` in: #10: Tm1Ga2IzWmxidz0, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #10: Tm1Ga2IzWmxidz0, antal fel: 14 ( 2.20 betyg )
- Expected X and instead saw X. (totalt 12 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: jquery-ui.min.j, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #26: jquery-ui.min.j, antal fel: 702 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 564 st)
- Expected X and instead saw X. (totalt 96 st)
- Unnecessary escape character: \-. (totalt 11 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: jquery.datetime, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #27: jquery.datetime, antal fel: 842 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 664 st)
- Expected X and instead saw X. (totalt 117 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #28: leaderboard.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #28: leaderboard.js, antal fel: 848 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 664 st)
- Expected X and instead saw X. (totalt 123 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 11 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #29: bootstrap.min.j, antal fel: 1049 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 787 st)
- Expected X and instead saw X. (totalt 199 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #30: theme.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #30: theme.js, antal fel: 1050 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 787 st)
- Expected X and instead saw X. (totalt 200 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 13 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (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)
- `content-type=".*javascript.*"` in: #31: modernizr.custo, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #31: modernizr.custo, antal fel: 1114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 821 st)
- Expected X and instead saw X. (totalt 226 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Unnecessary X. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is not modified in this loop. (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)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: require.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #32: require.js, antal fel: 1119 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 821 st)
- Expected X and instead saw X. (totalt 226 st)
- Unnecessary escape character: \-. (totalt 14 st)
- Unnecessary X. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- X is not modified in this loop. (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)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: jquery.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #33: jquery.js, antal fel: 1208 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 828 st)
- Expected X and instead saw X. (totalt 297 st)
- Unnecessary escape character: \-. (totalt 14 st)
- Unnecessary X. (totalt 14 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- The Function constructor is eval. (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: #37: amd-app.8fdf514, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #37: amd-app.8fdf514, antal fel: 2686 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1744 st)
- Expected X and instead saw X. (totalt 844 st)
- Unnecessary escape character: \-. (totalt 17 st)
- Unnecessary X. (totalt 14 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 6 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \=. (totalt 3 st)
- X is not modified in this loop. (totalt 2 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)
- Unnecessary escape character: \). (totalt 1 st)
- eval can be harmful. (totalt 1 st)