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.43 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 5 ( 4.00 betyg )
- X is defined but never used. (totalt 4 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1897 ( 1.00 betyg )
- X is defined but never used. (totalt 1391 st)
- X is not defined. (totalt 311 st)
- Unexpected console statement. (totalt 98 st)
- X is assigned a value but never used. (totalt 97 st)
- `content-type=".*javascript.*"` in: #7: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #7: 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: #52: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: 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: #53: sdk.c8a61c94c9a, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: sdk.c8a61c94c9a, antal fel: 198 ( 1.00 betyg )
- Unexpected console statement. (totalt 82 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: #62: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: cast-sender.js, antal fel: 202 ( 1.00 betyg )
- Unexpected console statement. (totalt 82 st)
- X is defined but never used. (totalt 57 st)
- X is not defined. (totalt 53 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #66: cast-framework., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: cast-framework., antal fel: 234 ( 1.00 betyg )
- Unexpected console statement. (totalt 82 st)
- X is not defined. (totalt 73 st)
- X is defined but never used. (totalt 69 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #67: cast-sender.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #67: cast-sender.js, antal fel: 243 ( 1.00 betyg )
- Unexpected console statement. (totalt 83 st)
- X is defined but never used. (totalt 77 st)
- X is not defined. (totalt 73 st)
- X is assigned a value but never used. (totalt 10 st)
- `content-type=".*javascript.*"` in: #68: pubads-impl.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: pubads-impl.js, antal fel: 361 ( 1.00 betyg )
- X is defined but never used. (totalt 188 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 73 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #69: bn-tracking-uti, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: bn-tracking-uti, antal fel: 362 ( 1.00 betyg )
- X is defined but never used. (totalt 189 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 73 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #70: elqCfg.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: elqCfg.min.js, antal fel: 372 ( 1.00 betyg )
- X is defined but never used. (totalt 192 st)
- Unexpected console statement. (totalt 85 st)
- X is not defined. (totalt 80 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #87: elqCfg.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: elqCfg.min.js, antal fel: 382 ( 1.00 betyg )
- X is defined but never used. (totalt 195 st)
- X is not defined. (totalt 87 st)
- Unexpected console statement. (totalt 85 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #88: 9d12ee5906254d9, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #88: 9d12ee5906254d9, antal fel: 394 ( 1.00 betyg )
- X is defined but never used. (totalt 204 st)
- Unexpected console statement. (totalt 88 st)
- X is not defined. (totalt 87 st)
- X is assigned a value but never used. (totalt 15 st)
- `content-type=".*javascript.*"` in: #92: OiPnl, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #92: OiPnl, antal fel: 395 ( 1.00 betyg )
- X is defined but never used. (totalt 204 st)
- Unexpected console statement. (totalt 88 st)
- X is not defined. (totalt 88 st)
- X is assigned a value but never used. (totalt 15 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #1: Webbsida , antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- Expected X and instead saw X. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 35 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 14030 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9511 st)
- Expected X and instead saw X. (totalt 3779 st)
- Do not access Object.prototype method X from target object. (totalt 214 st)
- Unnecessary escape character: \/. (totalt 177 st)
- Unnecessary escape character: \.. (totalt 125 st)
- Unnecessary escape character: \-. (totalt 66 st)
- Unsafe usage of ThrowStatement. (totalt 21 st)
- Unnecessary X. (totalt 19 st)
- Comparing to itself is potentially pointless. (totalt 18 st)
- Unnecessary escape character: \). (totalt 16 st)
- X is assigned to itself. (totalt 10 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \+. (totalt 7 st)
- Unnecessary escape character: \:. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Unnecessary escape character: \$. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 3 st)
- Unnecessary escape character: \*. (totalt 3 st)
- Unnecessary escape character: \{. (totalt 3 st)
- Unnecessary escape character: \}. (totalt 3 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \!. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \#. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #7: loader.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #7: 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: #52: bad.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: bad.js, antal fel: 301 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 176 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: #53: sdk.c8a61c94c9a, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #53: sdk.c8a61c94c9a, antal fel: 1808 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1007 st)
- Expected an assignment or function call and instead saw an expression. (totalt 764 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: #62: cast-sender.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #62: cast-sender.js, antal fel: 1830 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1018 st)
- Expected an assignment or function call and instead saw an expression. (totalt 775 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: #66: cast-framework., antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #66: cast-framework., antal fel: 2031 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1089 st)
- Expected an assignment or function call and instead saw an expression. (totalt 885 st)
- Do not access Object.prototype method X from target object. (totalt 22 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary X. (totalt 3 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: #67: cast-sender.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #67: cast-sender.js, antal fel: 2211 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1168 st)
- Expected an assignment or function call and instead saw an expression. (totalt 970 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- X is assigned to itself. (totalt 24 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 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: #68: pubads-impl.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #68: pubads-impl.js, antal fel: 4760 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2472 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2179 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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: #69: bn-tracking-uti, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #69: bn-tracking-uti, antal fel: 4760 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2472 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2179 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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: #70: elqCfg.min.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #70: elqCfg.min.js, antal fel: 4793 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2503 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2181 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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: #87: elqCfg.min.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #87: elqCfg.min.js, antal fel: 4826 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2534 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2183 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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: #88: 9d12ee5906254d9, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #88: 9d12ee5906254d9, antal fel: 4886 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2566 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2211 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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: #92: OiPnl, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #92: OiPnl, antal fel: 4886 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2566 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2211 st)
- Do not access Object.prototype method X from target object. (totalt 50 st)
- X is assigned to itself. (totalt 26 st)
- Unnecessary X. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Async function X has no X expression. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 2 st)
- X is not modified in this loop. (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)