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.54 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: 1598 ( 1.00 betyg )
- X is defined but never used. (totalt 836 st)
- X is not defined. (totalt 584 st)
- X is assigned a value but never used. (totalt 167 st)
- Unexpected console statement. (totalt 11 st)
- `< script>` in: #70: sw-iframe.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #70: sw-iframe.html, antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `< script>` in: #102: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #102: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #102: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #102: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #57: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #57: gtm.js, antal fel: 590 ( 1.00 betyg )
- X is defined but never used. (totalt 483 st)
- X is assigned a value but never used. (totalt 85 st)
- X is not defined. (totalt 22 st)
- `content-type=".*javascript.*"` in: #59: gtm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #59: gtm.js, antal fel: 1107 ( 1.00 betyg )
- X is defined but never used. (totalt 886 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 40 st)
- `content-type=".*javascript.*"` in: #69: recorder.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: recorder.js, antal fel: 1111 ( 1.00 betyg )
- X is defined but never used. (totalt 889 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 40 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: nav-menu.a23fbd, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: nav-menu.a23fbd, antal fel: 1121 ( 1.00 betyg )
- X is defined but never used. (totalt 890 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: mega-menu.80086, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: mega-menu.80086, antal fel: 1183 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 110 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: mega-menu-stret, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: mega-menu-stret, antal fel: 1188 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 115 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: menu-title-keyb, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: menu-title-keyb, antal fel: 1202 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 129 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal fel: 1205 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 132 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: image-carousel., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #76: image-carousel., antal fel: 1206 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 133 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: carousel.3620fc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: carousel.3620fc, antal fel: 1212 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 139 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: form.5fb35271b8, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #78: form.5fb35271b8, antal fel: 1243 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 170 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: popup.f7b15b2ca, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #79: popup.f7b15b2ca, antal fel: 1246 ( 1.00 betyg )
- X is defined but never used. (totalt 891 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 173 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: init.4e02050bca, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #80: init.4e02050bca, antal fel: 1281 ( 1.00 betyg )
- X is defined but never used. (totalt 913 st)
- X is assigned a value but never used. (totalt 182 st)
- X is not defined. (totalt 173 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #104: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #104: recaptcha--sv.j, antal fel: 1381 ( 1.00 betyg )
- X is defined but never used. (totalt 991 st)
- X is not defined. (totalt 190 st)
- X is assigned a value but never used. (totalt 184 st)
- Unexpected console statement. (totalt 16 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: 5553 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4299 st)
- Expected X and instead saw X. (totalt 1003 st)
- Do not access Object.prototype method X from target object. (totalt 188 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is assigned to itself. (totalt 13 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 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)
- `< script>` in: #70: sw-iframe.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #70: 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)
- `< script src="...">` in: #102: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #102: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (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)
- eval can be harmful. (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)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: gtm.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #57: gtm.js, antal fel: 1088 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 726 st)
- Expected X and instead saw X. (totalt 198 st)
- Unnecessary escape character: \/. (totalt 83 st)
- Do not access Object.prototype method X from target object. (totalt 73 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: #59: gtm.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #59: gtm.js, antal fel: 2422 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1727 st)
- Expected X and instead saw X. (totalt 421 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: recorder.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #69: recorder.js, antal fel: 2444 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1747 st)
- Expected X and instead saw X. (totalt 422 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: nav-menu.a23fbd, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #71: nav-menu.a23fbd, antal fel: 2460 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1762 st)
- Expected X and instead saw X. (totalt 423 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: mega-menu.80086, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #72: mega-menu.80086, antal fel: 2523 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1824 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #73: mega-menu-stret, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #73: mega-menu-stret, antal fel: 2526 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1827 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #74: menu-title-keyb, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #74: menu-title-keyb, antal fel: 2545 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1846 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #75: text-editor.c08, antal fel: 2549 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1850 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #76: image-carousel., antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #76: image-carousel., antal fel: 2550 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1851 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: carousel.3620fc, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #77: carousel.3620fc, antal fel: 2560 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1861 st)
- Expected X and instead saw X. (totalt 424 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #78: form.5fb35271b8, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #78: form.5fb35271b8, antal fel: 2608 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1908 st)
- Expected X and instead saw X. (totalt 425 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #79: popup.f7b15b2ca, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #79: popup.f7b15b2ca, antal fel: 2609 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1909 st)
- Expected X and instead saw X. (totalt 425 st)
- Do not access Object.prototype method X from target object. (totalt 161 st)
- Unnecessary escape character: \/. (totalt 94 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 escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #80: init.4e02050bca, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #80: init.4e02050bca, antal fel: 2851 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2077 st)
- Expected X and instead saw X. (totalt 493 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 94 st)
- X is not modified in this loop. (totalt 6 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary X. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: recaptcha--sv.j, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #104: recaptcha--sv.j, antal fel: 5116 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2651 st)
- Expected X and instead saw X. (totalt 2134 st)
- Do not access Object.prototype method X from target object. (totalt 167 st)
- Unnecessary escape character: \/. (totalt 103 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unexpected string concatenation of literals. (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)