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.68 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: 1026 ( 1.00 betyg )
- X is not defined. (totalt 827 st)
- X is defined but never used. (totalt 144 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 11 st)
- `< script>` in: #45: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #45: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: gtm.js, antal fel: 490 ( 1.00 betyg )
- X is defined but never used. (totalt 381 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: 1.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: 1.js, antal fel: 490 ( 1.00 betyg )
- X is defined but never used. (totalt 381 st)
- X is assigned a value but never used. (totalt 91 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: container-3MUHS, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: container-3MUHS, antal fel: 567 ( 1.00 betyg )
- X is defined but never used. (totalt 421 st)
- X is assigned a value but never used. (totalt 100 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 11 st)
- `content-type=".*javascript.*"` in: #40: core.gfvbdf8m.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: core.gfvbdf8m.j, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #41: l.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: l.js, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #43: I.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: I.js, antal fel: 591 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #44: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: js, antal fel: 1056 ( 1.00 betyg )
- X is defined but never used. (totalt 810 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 48 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #46: J.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: J.js, antal fel: 1064 ( 1.00 betyg )
- X is defined but never used. (totalt 811 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 14 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: 12 ( 2.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2568 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1710 st)
- Expected X and instead saw X. (totalt 801 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Unnecessary X. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `< script>` in: #39: sm.25.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #39: sm.25.html, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- Expected X and instead saw X. (totalt 3 st)
- `< script>` in: #45: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #45: sw-iframe.html, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 3 st)
- `content-type=".*javascript.*"` in: #23: gtm.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #23: gtm.js, antal fel: 1478 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1095 st)
- Expected X and instead saw X. (totalt 259 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (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: #29: 1.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #29: 1.js, antal fel: 1478 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1095 st)
- Expected X and instead saw X. (totalt 259 st)
- Do not access Object.prototype method X from target object. (totalt 105 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \/. (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: #31: container-3MUHS, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #31: container-3MUHS, antal fel: 1613 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1095 st)
- Expected X and instead saw X. (totalt 263 st)
- Unnecessary escape character: \/. (totalt 129 st)
- Do not access Object.prototype method X from target object. (totalt 110 st)
- X is not modified in this loop. (totalt 7 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: #40: core.gfvbdf8m.j, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #40: core.gfvbdf8m.j, antal fel: 1930 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1256 st)
- Expected X and instead saw X. (totalt 404 st)
- Unnecessary escape character: \/. (totalt 132 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #41: l.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #41: l.js, antal fel: 1930 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1256 st)
- Expected X and instead saw X. (totalt 404 st)
- Unnecessary escape character: \/. (totalt 132 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #43: I.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #43: I.js, antal fel: 1930 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1256 st)
- Expected X and instead saw X. (totalt 404 st)
- Unnecessary escape character: \/. (totalt 132 st)
- Do not access Object.prototype method X from target object. (totalt 111 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #44: js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #44: js, antal fel: 3351 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2357 st)
- Expected X and instead saw X. (totalt 623 st)
- Do not access Object.prototype method X from target object. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 135 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 8 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #46: J.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #46: J.js, antal fel: 3352 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2357 st)
- Expected X and instead saw X. (totalt 624 st)
- Do not access Object.prototype method X from target object. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 135 st)
- X is not modified in this loop. (totalt 11 st)
- X is assigned to itself. (totalt 8 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary X. (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)