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.45 av 5
- JS är dålig.
Webbstandard
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 605 ( 1.00 betyg )
- X is defined but never used. (totalt 368 st)
- X is not defined. (totalt 157 st)
- Unexpected console statement. (totalt 78 st)
- Parsing error: Unexpected token (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #44: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: gtm.js, antal fel: 453 ( 1.00 betyg )
- X is defined but never used. (totalt 356 st)
- X is assigned a value but never used. (totalt 83 st)
- X is not defined. (totalt 13 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: uc.js, antal fel: 500 ( 1.00 betyg )
- X is defined but never used. (totalt 376 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 14 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #37: 001419c.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 001419c.js, antal fel: 503 ( 1.00 betyg )
- X is defined but never used. (totalt 376 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #38: 03f4bf1.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: 03f4bf1.js, antal fel: 513 ( 1.00 betyg )
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #39: ee010f2.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: ee010f2.js, antal fel: 538 ( 1.00 betyg )
- X is defined but never used. (totalt 401 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #40: 1ed6fff.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: 1ed6fff.js, antal fel: 545 ( 1.00 betyg )
- X is defined but never used. (totalt 402 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 31 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #41: 0365129.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: 0365129.js, antal fel: 556 ( 1.00 betyg )
- X is defined but never used. (totalt 405 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 39 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #42: a6f7e82.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: a6f7e82.js, antal fel: 563 ( 1.00 betyg )
- X is defined but never used. (totalt 407 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #43: f42dc1c.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: f42dc1c.js, antal fel: 568 ( 1.00 betyg )
- X is defined but never used. (totalt 408 st)
- X is assigned a value but never used. (totalt 98 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #45: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: cc.js, antal fel: 596 ( 1.00 betyg )
- X is defined but never used. (totalt 420 st)
- X is assigned a value but never used. (totalt 104 st)
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 15 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 5418 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3953 st)
- Expected X and instead saw X. (totalt 1202 st)
- Unnecessary escape character: \-. (totalt 139 st)
- Do not access Object.prototype method X from target object. (totalt 37 st)
- Unsafe usage of ThrowStatement. (totalt 11 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- The Function constructor is eval. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \:. (totalt 4 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 2 st)
- X is not modified in this loop. (totalt 2 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)
- Unnecessary escape character: \". (totalt 2 st)
- Parsing error: Unexpected token (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `< script>` in: #44: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #44: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: gtm.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #30: gtm.js, antal fel: 1487 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1069 st)
- Expected X and instead saw X. (totalt 224 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 84 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #36: uc.js, antal fel: 1839 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1310 st)
- Expected X and instead saw X. (totalt 326 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 001419c.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #37: 001419c.js, antal fel: 1882 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1338 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: 03f4bf1.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #38: 03f4bf1.js, antal fel: 1925 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1370 st)
- Expected X and instead saw X. (totalt 350 st)
- Do not access Object.prototype method X from target object. (totalt 98 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: ee010f2.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #39: ee010f2.js, antal fel: 1975 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1411 st)
- Expected X and instead saw X. (totalt 358 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: 1ed6fff.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #40: 1ed6fff.js, antal fel: 2004 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1430 st)
- Expected X and instead saw X. (totalt 368 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: 0365129.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #41: 0365129.js, antal fel: 2066 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1472 st)
- Expected X and instead saw X. (totalt 387 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: a6f7e82.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #42: a6f7e82.js, antal fel: 2100 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1496 st)
- Expected X and instead saw X. (totalt 397 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: f42dc1c.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #43: f42dc1c.js, antal fel: 2120 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1512 st)
- Expected X and instead saw X. (totalt 401 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #45: cc.js, antal fel: 2467 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1818 st)
- Expected X and instead saw X. (totalt 437 st)
- Do not access Object.prototype method X from target object. (totalt 99 st)
- Unnecessary escape character: \/. (totalt 86 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)