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.85 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- X is not defined. (totalt 4 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 17 ( 1.60 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #22: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #22: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #23: jquery-2.2.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #23: jquery-2.2.js, antal fel: 45 ( 1.00 betyg )
- X is defined but never used. (totalt 38 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 548 ( 1.00 betyg )
- X is defined but never used. (totalt 435 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 23 st)
- `content-type=".*javascript.*"` in: #26: concat, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: concat, antal fel: 571 ( 1.00 betyg )
- X is defined but never used. (totalt 437 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 44 st)
- `content-type=".*javascript.*"` in: #27: masonry.pkgd.mi, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: masonry.pkgd.mi, antal fel: 597 ( 1.00 betyg )
- X is defined but never used. (totalt 438 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 66 st)
- Unexpected console statement. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 66 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 59 st)
- Expected X and instead saw X. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: mobilefix-1.0.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #21: mobilefix-1.0.j, antal fel: 5 ( 4.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5 st)
- `content-type=".*javascript.*"` in: #22: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #22: analytics.js, antal fel: 435 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 239 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: jquery-2.2.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #23: jquery-2.2.js, antal fel: 812 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 476 st)
- Expected X and instead saw X. (totalt 311 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #25: js, antal fel: 2190 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1541 st)
- Expected X and instead saw X. (totalt 529 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- eval can be harmful. (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: #26: concat, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #26: concat, antal fel: 2612 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1849 st)
- Expected X and instead saw X. (totalt 615 st)
- Do not access Object.prototype method X from target object. (totalt 97 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \>. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- eval can be harmful. (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)
- 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: #27: masonry.pkgd.mi, antal grupperade fel: 24 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #27: masonry.pkgd.mi, antal fel: 2769 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1949 st)
- Expected X and instead saw X. (totalt 662 st)
- Do not access Object.prototype method X from target object. (totalt 104 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary X. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \>. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- eval can be harmful. (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)
- 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)