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.65 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: 118 ( 1.00 betyg )
- X is defined but never used. (totalt 84 st)
- Unexpected console statement. (totalt 24 st)
- X is not defined. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #8: cdfd11ed-6694-4, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #8: cdfd11ed-6694-4, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: pwttm.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #9: 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: #13: otBannerSdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #13: 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: 913.4ea7228b.ch, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #16: 913.4ea7228b.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: #17: 769.bb6c84c7.ch, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #17: 769.bb6c84c7.ch, 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 50 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 197.5fe4622a.ch, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #18: 197.5fe4622a.ch, 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 50 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: 205 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 50 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: otFlat.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #21: otFlat.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 50 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 3 st)
- `content-type=".*javascript.*"` in: #22: otPcCenter.json, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #22: otPcCenter.json, 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 50 st)
- X is assigned a value but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 4 st)
- `content-type=".*javascript.*"` in: #23: otCommonStyles., antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #23: otCommonStyles., antal fel: 208 ( 1.00 betyg )
- X is defined but never used. (totalt 72 st)
- X is not defined. (totalt 70 st)
- Unexpected console statement. (totalt 50 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: 1037 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 819 st)
- Expected X and instead saw X. (totalt 145 st)
- Do not access Object.prototype method X from target object. (totalt 38 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Redundant use of `await` on a return value. (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: #8: cdfd11ed-6694-4, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #8: cdfd11ed-6694-4, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #9: pwttm.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #9: pwttm.js, antal fel: 78 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 62 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: #13: otBannerSdk.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #13: otBannerSdk.js, antal fel: 1170 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 927 st)
- Expected X and instead saw X. (totalt 164 st)
- Unnecessary escape character: \/. (totalt 62 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: 913.4ea7228b.ch, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #16: 913.4ea7228b.ch, antal fel: 1180 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 935 st)
- Expected X and instead saw X. (totalt 166 st)
- Unnecessary escape character: \/. (totalt 62 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: 769.bb6c84c7.ch, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #17: 769.bb6c84c7.ch, antal fel: 1203 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 957 st)
- Expected X and instead saw X. (totalt 166 st)
- Unnecessary escape character: \/. (totalt 62 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)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 197.5fe4622a.ch, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #18: 197.5fe4622a.ch, antal fel: 1216 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 969 st)
- Expected X and instead saw X. (totalt 167 st)
- Unnecessary escape character: \/. (totalt 62 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)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: sv.json, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #19: sv.json, antal fel: 1217 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 969 st)
- Expected X and instead saw X. (totalt 167 st)
- Unnecessary escape character: \/. (totalt 62 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)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: otFlat.json, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #21: otFlat.json, antal fel: 1218 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 969 st)
- Expected X and instead saw X. (totalt 167 st)
- Unnecessary escape character: \/. (totalt 62 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)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: otPcCenter.json, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #22: otPcCenter.json, antal fel: 1219 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 969 st)
- Expected X and instead saw X. (totalt 167 st)
- Unnecessary escape character: \/. (totalt 62 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)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: otCommonStyles., antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #23: otCommonStyles., antal fel: 1220 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 969 st)
- Expected X and instead saw X. (totalt 167 st)
- Unnecessary escape character: \/. (totalt 62 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)
- Async arrow function has no X expression. (totalt 1 st)
- Parsing error: Unexpected token #onetrust (totalt 1 st)