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.43 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: #59: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #59: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #2: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 494 ( 1.00 betyg )
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 494 ( 1.00 betyg )
- X is defined but never used. (totalt 386 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 495 ( 1.00 betyg )
- X is defined but never used. (totalt 387 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 495 ( 1.00 betyg )
- X is defined but never used. (totalt 387 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 495 ( 1.00 betyg )
- X is defined but never used. (totalt 387 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 497 ( 1.00 betyg )
- X is defined but never used. (totalt 388 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 497 ( 1.00 betyg )
- X is defined but never used. (totalt 388 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 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: 497 ( 1.00 betyg )
- X is defined but never used. (totalt 388 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #45: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: uc.js, antal fel: 544 ( 1.00 betyg )
- X is defined but never used. (totalt 408 st)
- X is assigned a value but never used. (totalt 105 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #55: fn.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: fn.js, antal fel: 546 ( 1.00 betyg )
- X is defined but never used. (totalt 410 st)
- X is assigned a value but never used. (totalt 105 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #60: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: cc.js, antal fel: 574 ( 1.00 betyg )
- X is defined but never used. (totalt 422 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #61: Chatbot.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: Chatbot.js, antal fel: 580 ( 1.00 betyg )
- X is defined but never used. (totalt 427 st)
- X is assigned a value but never used. (totalt 111 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #63: destination, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: destination, antal fel: 970 ( 1.00 betyg )
- X is defined but never used. (totalt 752 st)
- X is assigned a value but never used. (totalt 163 st)
- X is not defined. (totalt 40 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: #59: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #59: 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: #2: gtm.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #2: gtm.js, antal fel: 1398 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1036 st)
- Expected X and instead saw X. (totalt 222 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: 1408 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1045 st)
- Expected X and instead saw X. (totalt 223 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: 1414 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1051 st)
- Expected X and instead saw X. (totalt 223 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: 1421 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1058 st)
- Expected X and instead saw X. (totalt 223 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: 1423 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1060 st)
- Expected X and instead saw X. (totalt 223 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: 1425 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1062 st)
- Expected X and instead saw X. (totalt 223 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: 1425 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1062 st)
- Expected X and instead saw X. (totalt 223 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: 1433 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1070 st)
- Expected X and instead saw X. (totalt 223 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: #45: uc.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #45: uc.js, antal fel: 1785 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1311 st)
- Expected X and instead saw X. (totalt 325 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: #55: fn.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #55: fn.js, antal fel: 1823 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1334 st)
- Expected X and instead saw X. (totalt 335 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: #60: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #60: cc.js, antal fel: 2170 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1640 st)
- Expected X and instead saw X. (totalt 371 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: #61: Chatbot.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #61: Chatbot.js, antal fel: 2286 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1739 st)
- Expected X and instead saw X. (totalt 382 st)
- Do not access Object.prototype method X from target object. (totalt 96 st)
- Unnecessary escape character: \/. (totalt 38 st)
- eval can be harmful. (totalt 7 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)
- 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: #63: destination, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #63: destination, antal fel: 3951 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3047 st)
- Expected X and instead saw X. (totalt 619 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 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)