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.85 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>` in: #10: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #10: 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: #10: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #10: 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: #7: wp-emoji-releas, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #7: wp-emoji-releas, antal fel: 1 ( 4.80 betyg )
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: 46-aoqCGVKe.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #26: 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: #27: renderer, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: renderer, 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: #28: logging, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: logging, 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: #32: ftNFJRl18lm.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #32: ftNFJRl18lm.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: #34: eyDfcHead4k.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: eyDfcHead4k.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: #35: sYqgFo-YbhJ.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: sYqgFo-YbhJ.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: #36: JKEi5ds3GqT.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: JKEi5ds3GqT.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: #37: 8Dvk-eDMQTC.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: 8Dvk-eDMQTC.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: #38: ie38mp0O07P.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #38: ie38mp0O07P.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)
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: 1 ( 4.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 4 ( 4.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4 st)
- `< script>` in: #10: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #10: page.php, antal fel: 924 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 915 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: #10: page.php, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #10: 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: #7: wp-emoji-releas, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #7: wp-emoji-releas, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Expected X and instead saw X. (totalt 9 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #26: 46-aoqCGVKe.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #26: 46-aoqCGVKe.js, antal fel: 1166 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #27: renderer, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #27: renderer, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #28: logging, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #28: logging, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #32: ftNFJRl18lm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #32: ftNFJRl18lm.js, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #34: eyDfcHead4k.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #34: eyDfcHead4k.js, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #35: sYqgFo-YbhJ.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #35: sYqgFo-YbhJ.js, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #36: JKEi5ds3GqT.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #36: JKEi5ds3GqT.js, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #37: 8Dvk-eDMQTC.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #37: 8Dvk-eDMQTC.js, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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: #38: ie38mp0O07P.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #38: ie38mp0O07P.js, antal fel: 1167 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 941 st)
- Expected X and instead saw X. (totalt 214 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)