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: 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: 86 ( 1.00 betyg )
- X is defined but never used. (totalt 59 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 8 st)
- X is not defined. (totalt 7 st)
- `content-type=".*javascript.*"` in: #20: container-p4oMn, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: container-p4oMn, antal fel: 76 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #27: -commonjsHelper, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: -commonjsHelper, antal fel: 76 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #28: api-DpD2yED2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: api-DpD2yED2.js, antal fel: 77 ( 1.00 betyg )
- X is defined but never used. (totalt 39 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 10 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #29: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: otBannerSdk.js, antal fel: 143 ( 1.00 betyg )
- X is defined but never used. (totalt 67 st)
- Unexpected console statement. (totalt 47 st)
- X is not defined. (totalt 20 st)
- X is assigned a value but never used. (totalt 9 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: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2418 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1844 st)
- Expected X and instead saw X. (totalt 523 st)
- X is not modified in this loop. (totalt 11 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \:. (totalt 6 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- eval can be harmful. (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: #20: container-p4oMn, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: container-p4oMn, antal fel: 49 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 40 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #27: -commonjsHelper, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: -commonjsHelper, antal fel: 50 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 40 st)
- Expected X and instead saw X. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- `content-type=".*javascript.*"` in: #28: api-DpD2yED2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: api-DpD2yED2.js, antal fel: 53 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 40 st)
- Expected X and instead saw X. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `content-type=".*javascript.*"` in: #29: otBannerSdk.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #29: otBannerSdk.js, antal fel: 1153 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 928 st)
- Expected X and instead saw X. (totalt 170 st)
- Unnecessary escape character: \/. (totalt 40 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)