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.72 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- X is not defined. (totalt 3 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 116 ( 1.00 betyg )
- X is defined but never used. (totalt 83 st)
- Unexpected console statement. (totalt 23 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #12: 0190019e-c6b5-7, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #12: 0190019e-c6b5-7, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: pwttm.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #13: pwttm.js, antal fel: 139 ( 1.00 betyg )
- X is not defined. (totalt 70 st)
- X is defined but never used. (totalt 45 st)
- Unexpected console statement. (totalt 12 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: otBannerSdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #14: otBannerSdk.js, antal fel: 203 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 81.92a5d851.chu, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #16: 81.92a5d851.chu, antal fel: 203 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: 197.35fe3237.ch, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #17: 197.35fe3237.ch, antal fel: 203 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: sv.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #19: sv.json, antal fel: 204 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: otFlat.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: otFlat.json, antal fel: 205 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 3 st)
- `content-type=".*javascript.*"` in: #24: otPcCenter.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #24: otPcCenter.json, antal fel: 206 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 4 st)
- `content-type=".*javascript.*"` in: #25: otCommonStyles., antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #25: otCommonStyles., antal fel: 207 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 49 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 4 st)
- Parsing error: Unexpected token #onetrust (totalt 1 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1057 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 836 st)
- Expected X and instead saw X. (totalt 144 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Redundant use of `await` on a return value. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #12: 0190019e-c6b5-7, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #12: 0190019e-c6b5-7, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: pwttm.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #13: pwttm.js, antal fel: 87 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 71 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: otBannerSdk.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #14: otBannerSdk.js, antal fel: 1183 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 929 st)
- Expected X and instead saw X. (totalt 166 st)
- Unnecessary escape character: \/. (totalt 71 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)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: 81.92a5d851.chu, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #16: 81.92a5d851.chu, antal fel: 1198 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 944 st)
- Expected X and instead saw X. (totalt 166 st)
- Unnecessary escape character: \/. (totalt 71 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)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: 197.35fe3237.ch, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #17: 197.35fe3237.ch, antal fel: 1204 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 168 st)
- Unnecessary escape character: \/. (totalt 71 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)
- Parsing error: Unexpected token : (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: sv.json, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: sv.json, antal fel: 1205 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 168 st)
- Unnecessary escape character: \/. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Parsing error: Unexpected token : (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)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: otFlat.json, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #23: otFlat.json, antal fel: 1206 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 168 st)
- Unnecessary escape character: \/. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Parsing error: Unexpected token : (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: otPcCenter.json, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #24: otPcCenter.json, antal fel: 1207 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 168 st)
- Unnecessary escape character: \/. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Parsing error: Unexpected token : (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: otCommonStyles., antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #25: otCommonStyles., antal fel: 1208 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 948 st)
- Expected X and instead saw X. (totalt 168 st)
- Unnecessary escape character: \/. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Parsing error: Unexpected token : (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Parsing error: Unexpected token #onetrust (totalt 1 st)