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.92 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: 51 ( 1.00 betyg )
- X is defined but never used. (totalt 42 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #20: lordicon.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: lordicon.js, antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #30: 670.chunk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: 670.chunk.js, antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is assigned a value but never used. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #31: otBannerSdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: otBannerSdk.js, antal fel: 90 ( 1.00 betyg )
- X is defined but never used. (totalt 47 st)
- Unexpected console statement. (totalt 39 st)
- X is assigned a value but never used. (totalt 3 st)
- X is not defined. (totalt 1 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: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 761 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 549 st)
- Expected X and instead saw X. (totalt 200 st)
- Unnecessary X. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: lordicon.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #20: lordicon.js, antal fel: 1066 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 105 st)
- Unnecessary X. (totalt 9 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 670.chunk.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #30: 670.chunk.js, antal fel: 1102 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 977 st)
- Expected X and instead saw X. (totalt 112 st)
- Unnecessary X. (totalt 9 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: otBannerSdk.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #31: otBannerSdk.js, antal fel: 2192 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1894 st)
- Expected X and instead saw X. (totalt 275 st)
- Unnecessary X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- X is not modified in this loop. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)