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.96 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 47 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- Definition for rule X was not found. (totalt 13 st)
- X is not defined. (totalt 11 st)
- Unexpected console statement. (totalt 3 st)
- `< script>` in: #7: -J-AtS5j7SrLEsI, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #7: -J-AtS5j7SrLEsI, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: amber-player.co, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #13: amber-player.co, antal fel: 223 ( 1.00 betyg )
- X is defined but never used. (totalt 218 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #14: amber-airplay.e, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #14: amber-airplay.e, antal fel: 225 ( 1.00 betyg )
- X is defined but never used. (totalt 220 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #15: amber-recommend, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #15: amber-recommend, antal fel: 231 ( 1.00 betyg )
- X is defined but never used. (totalt 226 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #16: amber-share.esm, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #16: amber-share.esm, antal fel: 240 ( 1.00 betyg )
- X is defined but never used. (totalt 235 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #17: amber-analytics, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #17: amber-analytics, antal fel: 250 ( 1.00 betyg )
- X is defined but never used. (totalt 245 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #18: amber-title.esm, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: amber-title.esm, antal fel: 252 ( 1.00 betyg )
- X is defined but never used. (totalt 247 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: sv.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: sv.js, antal fel: 252 ( 1.00 betyg )
- X is defined but never used. (totalt 247 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 171 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 74 st)
- Expected X and instead saw X. (totalt 61 st)
- Definition for rule X was not found. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: amber-player.co, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #13: amber-player.co, antal fel: 2890 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2250 st)
- Expected X and instead saw X. (totalt 595 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: amber-airplay.e, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #14: amber-airplay.e, antal fel: 2901 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2257 st)
- Expected X and instead saw X. (totalt 599 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: amber-recommend, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #15: amber-recommend, antal fel: 2970 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2292 st)
- Expected X and instead saw X. (totalt 631 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: amber-share.esm, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #16: amber-share.esm, antal fel: 3015 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2327 st)
- Expected X and instead saw X. (totalt 641 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: amber-analytics, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #17: amber-analytics, antal fel: 3075 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2373 st)
- Expected X and instead saw X. (totalt 654 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: amber-title.esm, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #18: amber-title.esm, antal fel: 3092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2381 st)
- Expected X and instead saw X. (totalt 663 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: sv.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #19: sv.js, antal fel: 3092 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2381 st)
- Expected X and instead saw X. (totalt 663 st)
- Do not access Object.prototype method X from target object. (totalt 20 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)