Javascript
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.87 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 680 ( 1.00 betyg )
- X is not defined. (totalt 522 st)
- X is defined but never used. (totalt 90 st)
- X is assigned a value but never used. (totalt 58 st)
- Unexpected console statement. (totalt 9 st)
- Rule "no-unused-expressions" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- `< script>` in: #33: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #33: 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: #33: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #33: page.php, antal fel: 1053 ( 1.00 betyg )
- X is not defined. (totalt 692 st)
- X is defined but never used. (totalt 357 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: twemoji.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #31: twemoji.js, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: wp-emoji.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #32: wp-emoji.js, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal fel: 68 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: renderer, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: renderer, antal fel: 69 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 32 st)
- X is assigned a value but never used. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: logging, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: logging, antal fel: 70 ( 1.00 betyg )
- X is not defined. (totalt 35 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: Unexpected token : (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: eyDfcHead4k.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: eyDfcHead4k.js, antal fel: 147 ( 1.00 betyg )
- X is not defined. (totalt 85 st)
- X is defined but never used. (totalt 58 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #55: sYqgFo-YbhJ.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #55: sYqgFo-YbhJ.js, antal fel: 214 ( 1.00 betyg )
- X is not defined. (totalt 128 st)
- X is defined but never used. (totalt 82 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #56: JKEi5ds3GqT.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: JKEi5ds3GqT.js, antal fel: 218 ( 1.00 betyg )
- X is not defined. (totalt 132 st)
- X is defined but never used. (totalt 82 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #57: 8Dvk-eDMQTC.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: 8Dvk-eDMQTC.js, antal fel: 250 ( 1.00 betyg )
- X is not defined. (totalt 153 st)
- X is defined but never used. (totalt 93 st)
- X is assigned a value but never used. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #58: ie38mp0O07P.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: ie38mp0O07P.js, antal fel: 255 ( 1.00 betyg )
- X is not defined. (totalt 156 st)
- X is defined but never used. (totalt 95 st)
- X is assigned a value but never used. (totalt 2 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: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 415 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 165 st)
- Expected X and instead saw X. (totalt 134 st)
- Unexpected string concatenation of literals. (totalt 88 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary X. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Rule "no-unused-expressions" is already configured by another configuration comment in the preceding code. This configuration is ignored. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `< script>` in: #33: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #33: page.php, antal fel: 992 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 983 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: #33: page.php, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #33: page.php, antal fel: 2650 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1508 st)
- Expected X and instead saw X. (totalt 964 st)
- X is assigned to itself. (totalt 80 st)
- Unnecessary X. (totalt 46 st)
- Unnecessary escape character: \". (totalt 11 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)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Unnecessary escape character: \< . (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)
- The Function constructor is eval. (totalt 1 st)
- Unexpected negating the left operand of X operator. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: twemoji.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #31: twemoji.js, antal fel: 2 ( 4.60 betyg )
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #32: wp-emoji.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #32: wp-emoji.js, antal fel: 2 ( 4.60 betyg )
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal fel: 1142 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 926 st)
- Expected X and instead saw X. (totalt 205 st)
- X is not modified in this loop. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: renderer, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #50: renderer, antal fel: 1143 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 926 st)
- Expected X and instead saw X. (totalt 205 st)
- X is not modified in this loop. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: logging, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #51: logging, antal fel: 1144 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 926 st)
- Expected X and instead saw X. (totalt 205 st)
- X is not modified in this loop. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: eyDfcHead4k.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #54: eyDfcHead4k.js, antal fel: 1350 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1085 st)
- Expected X and instead saw X. (totalt 248 st)
- X is assigned to itself. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: sYqgFo-YbhJ.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #55: sYqgFo-YbhJ.js, antal fel: 1509 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1207 st)
- Expected X and instead saw X. (totalt 276 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: JKEi5ds3GqT.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #56: JKEi5ds3GqT.js, antal fel: 1514 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1210 st)
- Expected X and instead saw X. (totalt 278 st)
- X is assigned to itself. (totalt 12 st)
- X is not modified in this loop. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: 8Dvk-eDMQTC.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #57: 8Dvk-eDMQTC.js, antal fel: 1578 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1253 st)
- Expected X and instead saw X. (totalt 298 st)
- X is assigned to itself. (totalt 13 st)
- X is not modified in this loop. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: ie38mp0O07P.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #58: ie38mp0O07P.js, antal fel: 1833 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1372 st)
- Expected X and instead saw X. (totalt 413 st)
- X is not modified in this loop. (totalt 15 st)
- X is assigned to itself. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 11 st)
- Unnecessary escape character: \". (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary escape character: \.. (totalt 1 st)