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.73 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 #each (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 913 ( 1.00 betyg )
- X is not defined. (totalt 814 st)
- X is assigned a value but never used. (totalt 48 st)
- X is defined but never used. (totalt 32 st)
- Unexpected console statement. (totalt 19 st)
- `< script>` in: #14: QIr7HYErA-GfIyi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #14: QIr7HYErA-GfIyi, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #14: QIr7HYErA-GfIyi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #14: QIr7HYErA-GfIyi, antal fel: 4 ( 4.20 betyg )
- X is defined but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #18: cast-framework., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #18: cast-framework., antal fel: 32 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 12 st)
- `content-type=".*javascript.*"` in: #19: cast-sender.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: cast-sender.js, antal fel: 41 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: amber-player.co, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: amber-player.co, antal fel: 262 ( 1.00 betyg )
- X is defined but never used. (totalt 236 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #21: amber-airplay.e, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: amber-airplay.e, antal fel: 264 ( 1.00 betyg )
- X is defined but never used. (totalt 238 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #22: amber-captions., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #22: amber-captions., antal fel: 265 ( 1.00 betyg )
- X is defined but never used. (totalt 239 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #23: amber-chromecas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #23: amber-chromecas, antal fel: 304 ( 1.00 betyg )
- X is defined but never used. (totalt 251 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #24: amber-logo.esm., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #24: amber-logo.esm., antal fel: 306 ( 1.00 betyg )
- X is defined but never used. (totalt 253 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #25: amber-analytics, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #25: amber-analytics, antal fel: 316 ( 1.00 betyg )
- X is defined but never used. (totalt 263 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #26: amber-trick-pla, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: amber-trick-pla, antal fel: 322 ( 1.00 betyg )
- X is defined but never used. (totalt 269 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #27: sv.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: sv.js, antal fel: 322 ( 1.00 betyg )
- X is defined but never used. (totalt 269 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 4 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 #each (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1700 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 788 st)
- Expected an assignment or function call and instead saw an expression. (totalt 759 st)
- Unnecessary escape character: \/. (totalt 81 st)
- Comparing to itself is potentially pointless. (totalt 29 st)
- Unexpected string concatenation of literals. (totalt 15 st)
- Unnecessary escape character: \[. (totalt 6 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \{. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)
- `< script src="...">` in: #14: QIr7HYErA-GfIyi, antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #14: QIr7HYErA-GfIyi, antal fel: 22 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 11 st)
- `content-type=".*javascript.*"` in: #18: cast-framework., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: cast-framework., antal fel: 201 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 110 st)
- Expected X and instead saw X. (totalt 71 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #19: cast-sender.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #19: cast-sender.js, antal fel: 381 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 195 st)
- Expected X and instead saw X. (totalt 150 st)
- X is assigned to itself. (totalt 24 st)
- Unnecessary X. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: amber-player.co, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #20: amber-player.co, antal fel: 3266 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2440 st)
- Expected X and instead saw X. (totalt 745 st)
- X is assigned to itself. (totalt 26 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 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: #21: amber-airplay.e, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #21: amber-airplay.e, antal fel: 3277 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2447 st)
- Expected X and instead saw X. (totalt 749 st)
- X is assigned to itself. (totalt 26 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 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: #22: amber-captions., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #22: amber-captions., antal fel: 3291 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2457 st)
- Expected X and instead saw X. (totalt 753 st)
- X is assigned to itself. (totalt 26 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 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: #23: amber-chromecas, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #23: amber-chromecas, antal fel: 3372 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2522 st)
- Expected X and instead saw X. (totalt 769 st)
- X is assigned to itself. (totalt 26 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 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: #24: amber-logo.esm., antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #24: amber-logo.esm., antal fel: 3391 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2527 st)
- Expected X and instead saw X. (totalt 781 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 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: #25: amber-analytics, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #25: amber-analytics, antal fel: 3451 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2573 st)
- Expected X and instead saw X. (totalt 794 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 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: #26: amber-trick-pla, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #26: amber-trick-pla, antal fel: 3497 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2598 st)
- Expected X and instead saw X. (totalt 813 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 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: #27: sv.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #27: sv.js, antal fel: 3497 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2598 st)
- Expected X and instead saw X. (totalt 813 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unsafe usage of ReturnStatement. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)