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.49 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: fi, antal fel: 152 ( 1.00 betyg )
- X is defined but never used. (totalt 109 st)
- Unexpected console statement. (totalt 35 st)
- X is not defined. (totalt 7 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: container-dzWNd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: container-dzWNd, antal fel: 87 ( 1.00 betyg )
- X is defined but never used. (totalt 49 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 11 st)
- X is assigned a value but never used. (totalt 9 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 650 ( 1.00 betyg )
- X is defined but never used. (totalt 507 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #34: 3253.7a9925e865, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: 3253.7a9925e865, antal fel: 653 ( 1.00 betyg )
- X is defined but never used. (totalt 508 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #35: -5B...contentPa, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: -5B...contentPa, antal fel: 654 ( 1.00 betyg )
- X is defined but never used. (totalt 508 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #36: 692.6c4af6605ab, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: 692.6c4af6605ab, antal fel: 704 ( 1.00 betyg )
- X is defined but never used. (totalt 554 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #37: 9796.0505cfc4fe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #37: 9796.0505cfc4fe, antal fel: 704 ( 1.00 betyg )
- X is defined but never used. (totalt 554 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 38 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #38: 07874af8.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: 07874af8.js, antal fel: 726 ( 1.00 betyg )
- X is defined but never used. (totalt 574 st)
- X is assigned a value but never used. (totalt 94 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 18 st)
Integritet & säkerhet
- `< script>` in: #1: fi, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: fi, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: fi, antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #1: fi, antal fel: 1475 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1077 st)
- Expected X and instead saw X. (totalt 340 st)
- Unsafe usage of ThrowStatement. (totalt 10 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- The Function constructor is eval. (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)
- Unnecessary escape character: \:. (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)
- Unnecessary escape character: \|. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: container-dzWNd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: container-dzWNd, antal fel: 411 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 401 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Expected X and instead saw X. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: gtm.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #33: gtm.js, antal fel: 1864 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 800 st)
- Expected an assignment or function call and instead saw an expression. (totalt 767 st)
- Expected X and instead saw X. (totalt 205 st)
- Do not access Object.prototype method X from target object. (totalt 82 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: 3253.7a9925e865, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #34: 3253.7a9925e865, antal fel: 1941 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 835 st)
- Unnecessary escape character: \/. (totalt 800 st)
- Expected X and instead saw X. (totalt 214 st)
- Do not access Object.prototype method X from target object. (totalt 82 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: -5B...contentPa, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #35: -5B...contentPa, antal fel: 1942 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 836 st)
- Unnecessary escape character: \/. (totalt 800 st)
- Expected X and instead saw X. (totalt 214 st)
- Do not access Object.prototype method X from target object. (totalt 82 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: 692.6c4af6605ab, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #36: 692.6c4af6605ab, antal fel: 2199 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1065 st)
- Unnecessary escape character: \/. (totalt 800 st)
- Expected X and instead saw X. (totalt 239 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: 9796.0505cfc4fe, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #37: 9796.0505cfc4fe, antal fel: 2200 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1066 st)
- Unnecessary escape character: \/. (totalt 800 st)
- Expected X and instead saw X. (totalt 239 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: 07874af8.js, antal grupperade fel: 25 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #38: 07874af8.js, antal fel: 3100 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1325 st)
- Expected X and instead saw X. (totalt 850 st)
- Unnecessary escape character: \/. (totalt 808 st)
- Do not access Object.prototype method X from target object. (totalt 85 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 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \|. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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)
- 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)