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.88 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #8: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #8: , antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #8: , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #8: , antal fel: 730 ( 1.00 betyg )
- X is defined but never used. (totalt 585 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #10: main.1086fb2d9c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #10: main.1086fb2d9c, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: loader.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: loader.js, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: 812.8e37984daff, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: 812.8e37984daff, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 146.330cc9d47b1, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: 146.330cc9d47b1, antal fel: 9 ( 3.20 betyg )
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #21: bad.js, antal fel: 90 ( 1.00 betyg )
- X is not defined. (totalt 50 st)
- X is defined but never used. (totalt 17 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 8 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #22: bad.js, antal fel: 171 ( 1.00 betyg )
- X is not defined. (totalt 100 st)
- X is defined but never used. (totalt 28 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 403.3e1d3923524, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: 403.3e1d3923524, antal fel: 172 ( 1.00 betyg )
- X is not defined. (totalt 100 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: sdk.60508b89a5c, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #28: sdk.60508b89a5c, antal fel: 281 ( 1.00 betyg )
- X is not defined. (totalt 101 st)
- Unexpected console statement. (totalt 94 st)
- X is defined but never used. (totalt 67 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 4c7956952963467, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #30: 4c7956952963467, antal fel: 296 ( 1.00 betyg )
- X is not defined. (totalt 101 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 76 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal fel: 297 ( 1.00 betyg )
- X is not defined. (totalt 101 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 77 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: OiPnl, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: OiPnl, antal fel: 298 ( 1.00 betyg )
- X is not defined. (totalt 102 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 77 st)
- X is assigned a value but never used. (totalt 18 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: pubads-impl.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #36: pubads-impl.js, antal fel: 416 ( 1.00 betyg )
- X is defined but never used. (totalt 187 st)
- Unexpected console statement. (totalt 102 st)
- X is not defined. (totalt 102 st)
- X is assigned a value but never used. (totalt 24 st)
- Parsing error: Unexpected token (totalt 1 st)
Integritet & säkerhet
- `< script src="...">` in: #8: , antal grupperade fel: 14 ( 2.20 betyg )
- `< script src="...">` in: #8: , antal fel: 4089 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2075 st)
- Expected X and instead saw X. (totalt 1237 st)
- Unnecessary escape character: \/. (totalt 543 st)
- Do not access Object.prototype method X from target object. (totalt 199 st)
- Unsafe usage of ThrowStatement. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: main.1086fb2d9c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #10: main.1086fb2d9c, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: loader.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #18: loader.js, antal fel: 25 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 17 st)
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: 812.8e37984daff, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #19: 812.8e37984daff, antal fel: 42 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 25 st)
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 146.330cc9d47b1, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #20: 146.330cc9d47b1, antal fel: 62 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 33 st)
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #21: bad.js, antal fel: 340 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 197 st)
- Expected X and instead saw X. (totalt 133 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #22: bad.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #22: bad.js, antal fel: 618 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 366 st)
- Expected X and instead saw X. (totalt 233 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 403.3e1d3923524, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: 403.3e1d3923524, antal fel: 651 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 391 st)
- Expected X and instead saw X. (totalt 241 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: sdk.60508b89a5c, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #28: sdk.60508b89a5c, antal fel: 2173 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1147 st)
- Expected an assignment or function call and instead saw an expression. (totalt 979 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: 4c7956952963467, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #30: 4c7956952963467, antal fel: 2226 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1172 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1007 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal fel: 2226 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1172 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1007 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: OiPnl, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #34: OiPnl, antal fel: 2226 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1172 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1007 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Async function X has no X expression. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: pubads-impl.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #36: pubads-impl.js, antal fel: 4834 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2503 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2248 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- Async function X has no X expression. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)