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: 3.94 av 5
- JS är ok.
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: 104 ( 1.00 betyg )
- X is defined but never used. (totalt 80 st)
- Unexpected console statement. (totalt 14 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #92: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #92: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: insight.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #87: insight.min.js, antal fel: 25 ( 1.00 betyg )
- X is defined but never used. (totalt 21 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #88: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #88: gtm.js, antal fel: 554 ( 1.00 betyg )
- X is defined but never used. (totalt 447 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #90: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #90: uc.js, antal fel: 601 ( 1.00 betyg )
- X is defined but never used. (totalt 467 st)
- X is assigned a value but never used. (totalt 96 st)
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #91: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #91: js, antal fel: 1059 ( 1.00 betyg )
- X is defined but never used. (totalt 831 st)
- X is assigned a value but never used. (totalt 178 st)
- X is not defined. (totalt 35 st)
- Unexpected console statement. (totalt 15 st)
- `content-type=".*javascript.*"` in: #93: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #93: cc.js, antal fel: 1087 ( 1.00 betyg )
- X is defined but never used. (totalt 843 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 44 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: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1293 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 956 st)
- Expected X and instead saw X. (totalt 279 st)
- Do not access Object.prototype method X from target object. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unsafe usage of ThrowStatement. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `< script>` in: #92: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #92: 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: #56: 4585.dd70546adf, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #56: 4585.dd70546adf, antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: 3248.91ae917431, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #57: 3248.91ae917431, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: 4517.d070b96704, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #58: 4517.d070b96704, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #59: 3568.ffaae6bcc9, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #59: 3568.ffaae6bcc9, antal fel: 4 ( 4.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4 st)
- `content-type=".*javascript.*"` in: #60: 9766.a8d1a98479, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #60: 9766.a8d1a98479, antal fel: 5 ( 4.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5 st)
- `content-type=".*javascript.*"` in: #61: 6335.352fb875fb, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #61: 6335.352fb875fb, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6 st)
- `content-type=".*javascript.*"` in: #62: 8955.e593cf1c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #62: 8955.e593cf1c08, antal fel: 7 ( 3.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 7 st)
- `content-type=".*javascript.*"` in: #63: 3868.0d2edfa7a5, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #63: 3868.0d2edfa7a5, antal fel: 8 ( 3.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- `content-type=".*javascript.*"` in: #64: 9275.1d58d28ead, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #64: 9275.1d58d28ead, antal fel: 9 ( 3.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- `content-type=".*javascript.*"` in: #65: 7210.be519f7d88, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #65: 7210.be519f7d88, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- `content-type=".*javascript.*"` in: #66: 4268.9b1210b9e2, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #66: 4268.9b1210b9e2, antal fel: 11 ( 2.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- `content-type=".*javascript.*"` in: #67: 6129.15793b08e6, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #67: 6129.15793b08e6, antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- `content-type=".*javascript.*"` in: #68: 3970.74bb16081c, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #68: 3970.74bb16081c, antal fel: 13 ( 2.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 13 st)
- `content-type=".*javascript.*"` in: #69: 3583.a4d0ddf67a, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #69: 3583.a4d0ddf67a, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- `content-type=".*javascript.*"` in: #70: 6013.eec4d360f6, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #70: 6013.eec4d360f6, antal fel: 15 ( 2.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- `content-type=".*javascript.*"` in: #71: 9667.1e504bf8fc, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #71: 9667.1e504bf8fc, antal fel: 16 ( 1.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 16 st)
- `content-type=".*javascript.*"` in: #72: 5038.294701d164, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #72: 5038.294701d164, antal fel: 17 ( 1.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 17 st)
- `content-type=".*javascript.*"` in: #73: 9734.398b7691db, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #73: 9734.398b7691db, antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 18 st)
- `content-type=".*javascript.*"` in: #74: 459.fb5fa2ce6f0, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #74: 459.fb5fa2ce6f0, antal fel: 19 ( 1.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 19 st)
- `content-type=".*javascript.*"` in: #75: 8356.1b44241e16, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #75: 8356.1b44241e16, antal fel: 20 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 20 st)
- `content-type=".*javascript.*"` in: #76: 4598.1d8fed62a8, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #76: 4598.1d8fed62a8, antal fel: 21 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 21 st)
- `content-type=".*javascript.*"` in: #77: 4270.66b82c0973, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #77: 4270.66b82c0973, antal fel: 22 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 22 st)
- `content-type=".*javascript.*"` in: #78: 8088.14c71f979e, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #78: 8088.14c71f979e, antal fel: 23 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 23 st)
- `content-type=".*javascript.*"` in: #79: 4742.cb274cc5eb, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #79: 4742.cb274cc5eb, antal fel: 24 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 24 st)
- `content-type=".*javascript.*"` in: #80: 689.ea958770b96, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #80: 689.ea958770b96, antal fel: 25 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- `content-type=".*javascript.*"` in: #81: 4273.3a351b0c46, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #81: 4273.3a351b0c46, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 26 st)
- `content-type=".*javascript.*"` in: #82: 390.d56212e9fad, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #82: 390.d56212e9fad, antal fel: 27 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 27 st)
- `content-type=".*javascript.*"` in: #83: 8684.afb96622a2, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #83: 8684.afb96622a2, antal fel: 28 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 28 st)
- `content-type=".*javascript.*"` in: #84: 3797.1a4dd590be, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #84: 3797.1a4dd590be, antal fel: 29 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 29 st)
- `content-type=".*javascript.*"` in: #85: 2969.503f52af7a, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #85: 2969.503f52af7a, antal fel: 30 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 30 st)
- `content-type=".*javascript.*"` in: #87: insight.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #87: insight.min.js, antal fel: 188 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 118 st)
- Expected X and instead saw X. (totalt 59 st)
- Unnecessary escape character: \[. (totalt 3 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 X. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #88: gtm.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #88: gtm.js, antal fel: 1325 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 924 st)
- Expected X and instead saw X. (totalt 258 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Unnecessary escape character: \[. (totalt 3 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 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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: #90: uc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #90: uc.js, antal fel: 1677 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1165 st)
- Expected X and instead saw X. (totalt 360 st)
- Do not access Object.prototype method X from target object. (totalt 88 st)
- Unnecessary escape character: \/. (totalt 38 st)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 3 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)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (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: #91: js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #91: js, antal fel: 3104 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2272 st)
- Expected X and instead saw X. (totalt 579 st)
- Do not access Object.prototype method X from target object. (totalt 175 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)
- Unnecessary escape character: \[. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary X. (totalt 3 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)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- `content-type=".*javascript.*"` in: #93: cc.js, antal grupperade fel: 21 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #93: cc.js, antal fel: 3451 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2578 st)
- Expected X and instead saw X. (totalt 615 st)
- Do not access Object.prototype method X from target object. (totalt 175 st)
- Unnecessary escape character: \/. (totalt 41 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 6 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 X. (totalt 3 st)
- Comparing to itself is potentially pointless. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- eval can be harmful. (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)