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.80 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: 439 ( 1.00 betyg )
- X is defined but never used. (totalt 218 st)
- X is not defined. (totalt 149 st)
- Unexpected console statement. (totalt 43 st)
- X is assigned a value but never used. (totalt 29 st)
- `< script>` in: #89: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #89: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `< script>` in: #91: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #91: page.php, antal fel: 12 ( 2.60 betyg )
- X is not defined. (totalt 10 st)
- X is defined but never used. (totalt 2 st)
- `< script src="...">` in: #91: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #91: page.php, antal fel: 1120 ( 1.00 betyg )
- X is not defined. (totalt 727 st)
- X is defined but never used. (totalt 389 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #115: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #115: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #115: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #115: 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: #108: renderer, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #108: renderer, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: logging, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #109: logging, antal fel: 2 ( 4.60 betyg )
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #110: 8Dvk-eDMQTC.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #110: 8Dvk-eDMQTC.js, antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 21 st)
- X is defined but never used. (totalt 11 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #113: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #113: js, antal fel: 609 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 46 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #114: sv.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #114: sv.js, antal fel: 610 ( 1.00 betyg )
- X is defined but never used. (totalt 471 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 47 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #116: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #116: js, antal fel: 1111 ( 1.00 betyg )
- X is defined but never used. (totalt 866 st)
- X is assigned a value but never used. (totalt 180 st)
- X is not defined. (totalt 63 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #118: eyDfcHead4k.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #118: eyDfcHead4k.js, antal fel: 1188 ( 1.00 betyg )
- X is defined but never used. (totalt 892 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 113 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #119: sYqgFo-YbhJ.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #119: sYqgFo-YbhJ.js, antal fel: 1255 ( 1.00 betyg )
- X is defined but never used. (totalt 916 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 156 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #120: JKEi5ds3GqT.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #120: JKEi5ds3GqT.js, antal fel: 1259 ( 1.00 betyg )
- X is defined but never used. (totalt 916 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 160 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #121: ie38mp0O07P.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #121: ie38mp0O07P.js, antal fel: 1264 ( 1.00 betyg )
- X is defined but never used. (totalt 918 st)
- X is assigned a value but never used. (totalt 181 st)
- X is not defined. (totalt 163 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #123: recaptcha--sv.j, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #123: recaptcha--sv.j, antal fel: 1364 ( 1.00 betyg )
- X is defined but never used. (totalt 996 st)
- X is assigned a value but never used. (totalt 183 st)
- X is not defined. (totalt 180 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #139: analytics.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #139: analytics.js, antal fel: 1394 ( 1.00 betyg )
- X is defined but never used. (totalt 1023 st)
- X is not defined. (totalt 183 st)
- X is assigned a value but never used. (totalt 183 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 2 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: 1914 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1076 st)
- Expected X and instead saw X. (totalt 747 st)
- Do not access Object.prototype method X from target object. (totalt 25 st)
- Unnecessary escape character: \/. (totalt 19 st)
- Unnecessary X. (totalt 11 st)
- Unnecessary escape character: \.. (totalt 9 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \:. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- The Function constructor is eval. (totalt 2 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)
- Unnecessary escape character: \'. (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `< script>` in: #89: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #89: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `< script>` in: #91: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #91: page.php, antal fel: 941 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 932 st)
- Expected an assignment or function call and instead saw an expression. (totalt 5 st)
- Expected X and instead saw X. (totalt 4 st)
- `< script src="...">` in: #91: page.php, antal grupperade fel: 23 ( 1.00 betyg )
- `< script src="...">` in: #91: page.php, antal fel: 3790 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2434 st)
- Expected X and instead saw X. (totalt 1169 st)
- X is assigned to itself. (totalt 81 st)
- Unnecessary X. (totalt 46 st)
- Unnecessary escape character: \". (totalt 12 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 5 st)
- Unnecessary escape character: \'. (totalt 5 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \(. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 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)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `< script src="...">` in: #115: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #115: 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: #108: renderer, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #108: renderer, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: logging, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #109: logging, antal fel: 2 ( 4.60 betyg )
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #110: 8Dvk-eDMQTC.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #110: 8Dvk-eDMQTC.js, antal fel: 66 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 43 st)
- Expected X and instead saw X. (totalt 20 st)
- Parsing error: Unexpected token : (totalt 2 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #113: js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #113: js, antal fel: 1211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 860 st)
- Expected X and instead saw X. (totalt 244 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: sv.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #114: sv.js, antal fel: 1211 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 860 st)
- Expected X and instead saw X. (totalt 244 st)
- Do not access Object.prototype method X from target object. (totalt 89 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #116: js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #116: js, antal fel: 2569 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1907 st)
- Expected X and instead saw X. (totalt 462 st)
- Do not access Object.prototype method X from target object. (totalt 169 st)
- X is not modified in this loop. (totalt 10 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 2 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)
- `content-type=".*javascript.*"` in: #118: eyDfcHead4k.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #118: eyDfcHead4k.js, antal fel: 2775 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2066 st)
- Expected X and instead saw X. (totalt 505 st)
- Do not access Object.prototype method X from target object. (totalt 169 st)
- X is assigned to itself. (totalt 11 st)
- X is not modified in this loop. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 2 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)
- `content-type=".*javascript.*"` in: #119: sYqgFo-YbhJ.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #119: sYqgFo-YbhJ.js, antal fel: 2934 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2188 st)
- Expected X and instead saw X. (totalt 533 st)
- Do not access Object.prototype method X from target object. (totalt 169 st)
- X is assigned to itself. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 2 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)
- `content-type=".*javascript.*"` in: #120: JKEi5ds3GqT.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #120: JKEi5ds3GqT.js, antal fel: 2939 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2191 st)
- Expected X and instead saw X. (totalt 535 st)
- Do not access Object.prototype method X from target object. (totalt 169 st)
- X is assigned to itself. (totalt 18 st)
- X is not modified in this loop. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 2 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)
- `content-type=".*javascript.*"` in: #121: ie38mp0O07P.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #121: ie38mp0O07P.js, antal fel: 3194 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2310 st)
- Expected X and instead saw X. (totalt 650 st)
- Do not access Object.prototype method X from target object. (totalt 178 st)
- X is not modified in this loop. (totalt 22 st)
- X is assigned to itself. (totalt 18 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 2 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)
- `content-type=".*javascript.*"` in: #123: recaptcha--sv.j, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #123: recaptcha--sv.j, antal fel: 5459 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2884 st)
- Expected X and instead saw X. (totalt 2291 st)
- Do not access Object.prototype method X from target object. (totalt 182 st)
- X is assigned to itself. (totalt 24 st)
- X is not modified in this loop. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 6 st)
- Unnecessary escape character: \?. (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)
- Parsing error: Unexpected token : (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (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)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #139: analytics.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #139: analytics.js, antal fel: 5889 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3118 st)
- Expected X and instead saw X. (totalt 2469 st)
- Do not access Object.prototype method X from target object. (totalt 194 st)
- X is assigned to itself. (totalt 24 st)
- X is not modified in this loop. (totalt 23 st)
- Unnecessary escape character: \/. (totalt 17 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \?. (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)
- Unnecessary escape character: \[. (totalt 3 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (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)