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.64 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 420 ( 1.00 betyg )
- X is defined but never used. (totalt 342 st)
- X is assigned a value but never used. (totalt 50 st)
- X is not defined. (totalt 28 st)
- `< script>` in: #22: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #22: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #12: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 588 ( 1.00 betyg )
- X is defined but never used. (totalt 480 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: gtm.js, antal fel: 1173 ( 1.00 betyg )
- X is defined but never used. (totalt 955 st)
- X is assigned a value but never used. (totalt 173 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #14: bat.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #14: bat.js, antal fel: 1192 ( 1.00 betyg )
- X is defined but never used. (totalt 974 st)
- X is assigned a value but never used. (totalt 173 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #18: 187165609.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #18: 187165609.js, antal fel: 1193 ( 1.00 betyg )
- X is defined but never used. (totalt 975 st)
- X is assigned a value but never used. (totalt 173 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 1575 ( 1.00 betyg )
- X is defined but never used. (totalt 1295 st)
- X is assigned a value but never used. (totalt 222 st)
- X is not defined. (totalt 56 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 1954 ( 1.00 betyg )
- X is defined but never used. (totalt 1611 st)
- X is assigned a value but never used. (totalt 276 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: 187165609, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: 187165609, antal fel: 1954 ( 1.00 betyg )
- X is defined but never used. (totalt 1611 st)
- X is assigned a value but never used. (totalt 276 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #23: 0.8.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #23: 0.8.1, antal fel: 1971 ( 1.00 betyg )
- X is defined but never used. (totalt 1627 st)
- X is assigned a value but never used. (totalt 276 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 3 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: Identifier X has already been declared (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1696 st)
- Expected X and instead saw X. (totalt 455 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 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)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `< script>` in: #22: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #22: 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: #12: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #12: gtm.js, antal fel: 1018 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 734 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 72 st)
- Unnecessary escape character: \/. (totalt 6 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #13: gtm.js, antal fel: 2039 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1472 st)
- Expected X and instead saw X. (totalt 396 st)
- Do not access Object.prototype method X from target object. (totalt 145 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: bat.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #14: bat.js, antal fel: 2345 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1607 st)
- Expected X and instead saw X. (totalt 465 st)
- Do not access Object.prototype method X from target object. (totalt 247 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: 187165609.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #18: 187165609.js, antal fel: 2345 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1607 st)
- Expected X and instead saw X. (totalt 465 st)
- Do not access Object.prototype method X from target object. (totalt 247 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #19: js, antal fel: 4038 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2933 st)
- Expected X and instead saw X. (totalt 708 st)
- Do not access Object.prototype method X from target object. (totalt 352 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #20: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #20: js, antal fel: 5726 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4255 st)
- Expected X and instead saw X. (totalt 951 st)
- Do not access Object.prototype method X from target object. (totalt 457 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: 187165609, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #21: 187165609, antal fel: 5728 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4257 st)
- Expected X and instead saw X. (totalt 951 st)
- Do not access Object.prototype method X from target object. (totalt 457 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: 0.8.1, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #23: 0.8.1, antal fel: 5926 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4429 st)
- Expected X and instead saw X. (totalt 977 st)
- Do not access Object.prototype method X from target object. (totalt 457 st)
- Unnecessary escape character: \/. (totalt 20 st)
- X is not modified in this loop. (totalt 14 st)
- X is assigned to itself. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary X. (totalt 1 st)