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: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 748 ( 1.00 betyg )
- X is defined but never used. (totalt 591 st)
- X is assigned a value but never used. (totalt 81 st)
- Unexpected console statement. (totalt 41 st)
- X is not defined. (totalt 35 st)
- `content-type=".*javascript.*"` in: #21: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #21: loader.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 4 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #22: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: bad.js, antal fel: 89 ( 1.00 betyg )
- X is not defined. (totalt 52 st)
- X is defined but never used. (totalt 15 st)
- Unexpected console statement. (totalt 14 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #23: advert.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: advert.js, antal fel: 90 ( 1.00 betyg )
- X is not defined. (totalt 52 st)
- X is defined but never used. (totalt 15 st)
- Unexpected console statement. (totalt 15 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #26: sdk.c8a61c94c9a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: sdk.c8a61c94c9a, antal fel: 199 ( 1.00 betyg )
- Unexpected console statement. (totalt 83 st)
- X is defined but never used. (totalt 53 st)
- X is not defined. (totalt 53 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #31: gpt.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: gpt.js, antal fel: 243 ( 1.00 betyg )
- X is defined but never used. (totalt 94 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 56 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #32: analytics.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: analytics.js, antal fel: 273 ( 1.00 betyg )
- X is defined but never used. (totalt 121 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 59 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal fel: 274 ( 1.00 betyg )
- X is defined but never used. (totalt 122 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 59 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #34: elqCfg.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: elqCfg.min.js, antal fel: 284 ( 1.00 betyg )
- X is defined but never used. (totalt 125 st)
- Unexpected console statement. (totalt 83 st)
- X is not defined. (totalt 66 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #38: pubads-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: pubads-impl.js, antal fel: 402 ( 1.00 betyg )
- X is defined but never used. (totalt 236 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 66 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #43: fcca5a863041491, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: fcca5a863041491, antal fel: 409 ( 1.00 betyg )
- X is defined but never used. (totalt 243 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 66 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #45: OiPnl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: OiPnl, antal fel: 410 ( 1.00 betyg )
- X is defined but never used. (totalt 243 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 67 st)
- X is assigned a value but never used. (totalt 15 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 : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 16 ( 1.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4344 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3018 st)
- Expected X and instead saw X. (totalt 937 st)
- Unnecessary escape character: \/. (totalt 174 st)
- Do not access Object.prototype method X from target object. (totalt 138 st)
- Comparing to itself is potentially pointless. (totalt 21 st)
- X is not modified in this loop. (totalt 15 st)
- The Function constructor is eval. (totalt 14 st)
- Unnecessary X. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #20: 5583.70997c8a12, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #20: 5583.70997c8a12, antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #21: 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 8 st)
- `content-type=".*javascript.*"` in: #22: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: bad.js, antal fel: 302 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 177 st)
- Expected X and instead saw X. (totalt 116 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- `content-type=".*javascript.*"` in: #23: advert.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: advert.js, antal fel: 302 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 177 st)
- Expected X and instead saw X. (totalt 116 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- `content-type=".*javascript.*"` in: #26: sdk.c8a61c94c9a, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #26: sdk.c8a61c94c9a, antal fel: 1809 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1007 st)
- Expected an assignment or function call and instead saw an expression. (totalt 765 st)
- Do not access Object.prototype method X from target object. (totalt 22 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: gpt.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #31: gpt.js, antal fel: 2331 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1264 st)
- Expected an assignment or function call and instead saw an expression. (totalt 971 st)
- Unnecessary escape character: \/. (totalt 54 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: analytics.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #32: analytics.js, antal fel: 2761 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1442 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1205 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #33: bn-tracking-uti, antal fel: 2761 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1442 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1205 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: elqCfg.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #34: elqCfg.min.js, antal fel: 2794 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1473 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1207 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Do not access Object.prototype method X from target object. (totalt 39 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: pubads-impl.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #38: pubads-impl.js, antal fel: 5343 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2777 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2416 st)
- Do not access Object.prototype method X from target object. (totalt 62 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: fcca5a863041491, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #43: fcca5a863041491, antal fel: 5391 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2798 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2443 st)
- Do not access Object.prototype method X from target object. (totalt 62 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: OiPnl, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #45: OiPnl, antal fel: 5391 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2798 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2443 st)
- Do not access Object.prototype method X from target object. (totalt 62 st)
- Unnecessary escape character: \/. (totalt 56 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)