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.60 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: 912 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- X is not defined. (totalt 362 st)
- X is assigned a value but never used. (totalt 54 st)
- Unexpected console statement. (totalt 47 st)
- `< script>` in: #91: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #91: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #97: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #97: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #2: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 598 ( 1.00 betyg )
- X is defined but never used. (totalt 482 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: recaptcha--en.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #64: recaptcha--en.j, antal fel: 698 ( 1.00 betyg )
- X is defined but never used. (totalt 561 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 47 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #65: fbevents.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: fbevents.js, antal fel: 1356 ( 1.00 betyg )
- X is defined but never used. (totalt 1202 st)
- X is assigned a value but never used. (totalt 86 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #78: wp-emoji-releas, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: wp-emoji-releas, antal fel: 1357 ( 1.00 betyg )
- X is defined but never used. (totalt 1202 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #88: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #88: uc.js, antal fel: 1404 ( 1.00 betyg )
- X is defined but never used. (totalt 1222 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 54 st)
- Unexpected console statement. (totalt 26 st)
- `content-type=".*javascript.*"` in: #89: 132261201819050, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #89: 132261201819050, antal fel: 1562 ( 1.00 betyg )
- X is defined but never used. (totalt 1352 st)
- X is assigned a value but never used. (totalt 109 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 46 st)
- `content-type=".*javascript.*"` in: #92: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #92: cc.js, antal fel: 1590 ( 1.00 betyg )
- X is defined but never used. (totalt 1364 st)
- X is assigned a value but never used. (totalt 115 st)
- X is not defined. (totalt 64 st)
- Unexpected console statement. (totalt 47 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: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3338 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2391 st)
- Expected X and instead saw X. (totalt 772 st)
- Do not access Object.prototype method X from target object. (totalt 109 st)
- Unnecessary escape character: \/. (totalt 20 st)
- Comparing to itself is potentially pointless. (totalt 11 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \}. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (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)
- `< script>` in: #91: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #91: 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)
- `< script>` in: #97: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #97: 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: #2: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 1103 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 793 st)
- Expected X and instead saw X. (totalt 217 st)
- Do not access Object.prototype method X from target object. (totalt 75 st)
- Unnecessary escape character: \/. (totalt 9 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 X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: recaptcha--en.j, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #64: recaptcha--en.j, antal fel: 3522 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1962 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1417 st)
- Do not access Object.prototype method X from target object. (totalt 79 st)
- Unnecessary escape character: \/. (totalt 18 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 3 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)
- eval can be harmful. (totalt 2 st)
- Script URL is a form of eval. (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: #65: fbevents.js, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #65: fbevents.js, antal fel: 4986 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2616 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2058 st)
- Do not access Object.prototype method X from target object. (totalt 82 st)
- Unnecessary escape character: \/. (totalt 27 st)
- Unnecessary escape character: \-. (totalt 19 st)
- X is assigned to itself. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #78: wp-emoji-releas, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #78: wp-emoji-releas, antal fel: 5012 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2625 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2073 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 27 st)
- Unnecessary escape character: \-. (totalt 19 st)
- X is assigned to itself. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary X. (totalt 4 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #88: uc.js, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #88: uc.js, antal fel: 5364 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2727 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2314 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 29 st)
- Unnecessary escape character: \-. (totalt 23 st)
- X is assigned to itself. (totalt 17 st)
- Unsafe usage of ThrowStatement. (totalt 15 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \". (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #89: 132261201819050, antal grupperade fel: 33 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #89: 132261201819050, antal fel: 5819 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2892 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2565 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 63 st)
- Unnecessary escape character: \-. (totalt 23 st)
- X is assigned to itself. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 7 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \`. (totalt 2 st)
- `content-type=".*javascript.*"` in: #92: cc.js, antal grupperade fel: 35 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #92: cc.js, antal fel: 6167 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 2928 st)
- Expected an assignment or function call and instead saw an expression. (totalt 2872 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 63 st)
- Unnecessary escape character: \-. (totalt 23 st)
- X is assigned to itself. (totalt 18 st)
- Unsafe usage of ThrowStatement. (totalt 17 st)
- Unnecessary escape character: \?. (totalt 13 st)
- Unnecessary escape character: \^. (totalt 12 st)
- Unnecessary escape character: \+. (totalt 10 st)
- Unnecessary escape character: \{. (totalt 10 st)
- Unnecessary escape character: \}. (totalt 9 st)
- Unnecessary escape character: \). (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unnecessary escape character: \[. (totalt 8 st)
- Unnecessary escape character: \'. (totalt 8 st)
- Unnecessary escape character: \$. (totalt 7 st)
- Unnecessary escape character: \*. (totalt 7 st)
- Unnecessary escape character: \|. (totalt 7 st)
- Unnecessary escape character: \=. (totalt 6 st)
- Unnecessary escape character: \". (totalt 6 st)
- X is not modified in this loop. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \(. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \,. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 3 st)
- eval can be harmful. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unsafe usage of ReturnStatement. (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)