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.80 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 )
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 693 ( 1.00 betyg )
- X is defined but never used. (totalt 562 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 11 st)
- Parsing error: Unexpected token (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #11: 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: #12: 812.8e37984daff, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #13: 146.038a584017c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: 146.038a584017c, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #14: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: bad.js, antal fel: 91 ( 1.00 betyg )
- X is not defined. (totalt 52 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)
- `content-type=".*javascript.*"` in: #15: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: bad.js, antal fel: 174 ( 1.00 betyg )
- X is not defined. (totalt 104 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)
- `content-type=".*javascript.*"` in: #16: 262.c87dd1a43d6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 262.c87dd1a43d6, antal fel: 175 ( 1.00 betyg )
- X is not defined. (totalt 104 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)
- `content-type=".*javascript.*"` in: #17: 403.3e1d3923524, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: 403.3e1d3923524, antal fel: 176 ( 1.00 betyg )
- X is not defined. (totalt 104 st)
- X is defined but never used. (totalt 30 st)
- Unexpected console statement. (totalt 26 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #22: sdk.c8a61c94c9a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #22: sdk.c8a61c94c9a, antal fel: 285 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- Unexpected console statement. (totalt 94 st)
- X is defined but never used. (totalt 68 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #24: b61c343410f7440, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #24: b61c343410f7440, antal fel: 300 ( 1.00 betyg )
- X is not defined. (totalt 105 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)
- `content-type=".*javascript.*"` in: #27: bn-tracking-uti, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #27: bn-tracking-uti, antal fel: 301 ( 1.00 betyg )
- X is not defined. (totalt 105 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 78 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #28: OiPnl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #28: OiPnl, antal fel: 302 ( 1.00 betyg )
- X is not defined. (totalt 106 st)
- Unexpected console statement. (totalt 100 st)
- X is defined but never used. (totalt 78 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #30: pubads-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: pubads-impl.js, antal fel: 420 ( 1.00 betyg )
- X is defined but never used. (totalt 189 st)
- X is not defined. (totalt 106 st)
- Unexpected console statement. (totalt 102 st)
- X is assigned a value but never used. (totalt 23 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3784 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1941 st)
- Expected X and instead saw X. (totalt 1089 st)
- Unnecessary escape character: \/. (totalt 543 st)
- Do not access Object.prototype method X from target object. (totalt 178 st)
- Unsafe usage of ThrowStatement. (totalt 11 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)
- Parsing error: Unexpected token (totalt 1 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: #11: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #11: loader.js, antal fel: 24 ( 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)
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #12: 812.8e37984daff, antal fel: 41 ( 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)
- `content-type=".*javascript.*"` in: #13: 146.038a584017c, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #13: 146.038a584017c, antal fel: 61 ( 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)
- `content-type=".*javascript.*"` in: #14: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: bad.js, antal fel: 338 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 197 st)
- Expected X and instead saw X. (totalt 132 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: #15: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #15: bad.js, antal fel: 615 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 366 st)
- Expected X and instead saw X. (totalt 231 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #16: 262.c87dd1a43d6, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #16: 262.c87dd1a43d6, antal fel: 633 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 376 st)
- Expected X and instead saw X. (totalt 239 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #17: 403.3e1d3923524, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #17: 403.3e1d3923524, antal fel: 666 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 401 st)
- Expected X and instead saw X. (totalt 247 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Async function X has no X expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #22: sdk.c8a61c94c9a, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #22: sdk.c8a61c94c9a, antal fel: 2173 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1138 st)
- Expected an assignment or function call and instead saw an expression. (totalt 989 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #24: b61c343410f7440, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #24: b61c343410f7440, antal fel: 2226 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1163 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1017 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: bn-tracking-uti, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #27: bn-tracking-uti, antal fel: 2226 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1163 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1017 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: OiPnl, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #28: OiPnl, antal fel: 2226 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1163 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1017 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: pubads-impl.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #30: pubads-impl.js, antal fel: 4775 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2467 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2226 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)
- Script URL is a form of eval. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)