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.42 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: 354 ( 1.00 betyg )
- X is not defined. (totalt 225 st)
- X is defined but never used. (totalt 99 st)
- Unexpected console statement. (totalt 24 st)
- X is assigned a value but never used. (totalt 6 st)
- `< script>` in: #58: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #58: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: gtm.js, antal fel: 512 ( 1.00 betyg )
- X is defined but never used. (totalt 395 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: navigation-js.b, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: navigation-js.b, antal fel: 512 ( 1.00 betyg )
- X is defined but never used. (totalt 395 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: plans-js.3da074, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: plans-js.3da074, antal fel: 513 ( 1.00 betyg )
- X is defined but never used. (totalt 396 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: textimage-js.59, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: textimage-js.59, antal fel: 513 ( 1.00 betyg )
- X is defined but never used. (totalt 396 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: chat-js.488ad70, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: chat-js.488ad70, antal fel: 513 ( 1.00 betyg )
- X is defined but never used. (totalt 396 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: form-js.2e7285c, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: form-js.2e7285c, antal fel: 515 ( 1.00 betyg )
- X is defined but never used. (totalt 397 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: scroll-js.19ea5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: scroll-js.19ea5, antal fel: 515 ( 1.00 betyg )
- X is defined but never used. (totalt 397 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: section-js.925d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: section-js.925d, antal fel: 515 ( 1.00 betyg )
- X is defined but never used. (totalt 397 st)
- X is assigned a value but never used. (totalt 97 st)
- X is not defined. (totalt 19 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #55: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: uc.js, antal fel: 562 ( 1.00 betyg )
- X is defined but never used. (totalt 417 st)
- X is assigned a value but never used. (totalt 112 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #56: fn.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: fn.js, antal fel: 564 ( 1.00 betyg )
- X is defined but never used. (totalt 419 st)
- X is assigned a value but never used. (totalt 112 st)
- X is not defined. (totalt 20 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #59: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: cc.js, antal fel: 592 ( 1.00 betyg )
- X is defined but never used. (totalt 431 st)
- X is assigned a value but never used. (totalt 118 st)
- X is not defined. (totalt 29 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #60: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: destination, antal fel: 988 ( 1.00 betyg )
- X is defined but never used. (totalt 762 st)
- X is assigned a value but never used. (totalt 170 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #63: Chatbot.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: Chatbot.js, antal fel: 995 ( 1.00 betyg )
- X is defined but never used. (totalt 768 st)
- X is assigned a value but never used. (totalt 170 st)
- X is not defined. (totalt 42 st)
- Unexpected console statement. (totalt 15 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: 27 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1310 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 928 st)
- Expected X and instead saw X. (totalt 314 st)
- Unnecessary escape character: \/. (totalt 18 st)
- Unexpected string concatenation of literals. (totalt 9 st)
- Unnecessary escape character: \%. (totalt 6 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \[. (totalt 5 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (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)
- 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)
- Unnecessary escape character: \|. (totalt 1 st)
- `< script>` in: #58: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #58: 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)
- `content-type=".*javascript.*"` in: #29: gtm.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #29: gtm.js, antal fel: 1421 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1056 st)
- Expected X and instead saw X. (totalt 225 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #36: navigation-js.b, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #36: navigation-js.b, antal fel: 1431 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1065 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #39: plans-js.3da074, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #39: plans-js.3da074, antal fel: 1437 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1071 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: textimage-js.59, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #40: textimage-js.59, antal fel: 1444 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1078 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #41: chat-js.488ad70, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #41: chat-js.488ad70, antal fel: 1446 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1080 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #42: form-js.2e7285c, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #42: form-js.2e7285c, antal fel: 1448 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1082 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #43: scroll-js.19ea5, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #43: scroll-js.19ea5, antal fel: 1448 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1082 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #44: section-js.925d, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #44: section-js.925d, antal fel: 1456 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1090 st)
- Expected X and instead saw X. (totalt 226 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 35 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 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: #55: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #55: uc.js, antal fel: 1808 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1331 st)
- Expected X and instead saw X. (totalt 328 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 37 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 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: fn.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: fn.js, antal fel: 1846 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1354 st)
- Expected X and instead saw X. (totalt 338 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Unnecessary escape character: \-. (totalt 4 st)
- eval can be harmful. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 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)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #59: cc.js, antal fel: 2194 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1661 st)
- Expected X and instead saw X. (totalt 374 st)
- Do not access Object.prototype method X from target object. (totalt 93 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Unnecessary escape character: \-. (totalt 4 st)
- eval can be harmful. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 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 escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: destination, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #60: destination, antal fel: 3900 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2997 st)
- Expected X and instead saw X. (totalt 624 st)
- Do not access Object.prototype method X from target object. (totalt 197 st)
- Unnecessary escape character: \/. (totalt 41 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- eval can be harmful. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: Chatbot.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #63: Chatbot.js, antal fel: 4019 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3097 st)
- Expected X and instead saw X. (totalt 635 st)
- Do not access Object.prototype method X from target object. (totalt 200 st)
- Unnecessary escape character: \/. (totalt 41 st)
- X is not modified in this loop. (totalt 7 st)
- eval can be harmful. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary X. (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)