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.31 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 83 ( 1.00 betyg )
- X is defined but never used. (totalt 38 st)
- X is not defined. (totalt 35 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 1 st)
- `< script>` in: #36: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #36: page.php, antal fel: 18 ( 1.40 betyg )
- X is not defined. (totalt 15 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #36: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #36: 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: #30: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #30: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #33: sdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #33: sdk.js, antal fel: 31 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #35: js, antal fel: 533 ( 1.00 betyg )
- X is defined but never used. (totalt 423 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 19 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal fel: 600 ( 1.00 betyg )
- X is defined but never used. (totalt 455 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 54 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: renderer, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #50: renderer, antal fel: 601 ( 1.00 betyg )
- X is defined but never used. (totalt 455 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 54 st)
- Parsing error: X in strict mode (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: logging, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #51: logging, antal fel: 602 ( 1.00 betyg )
- X is defined but never used. (totalt 455 st)
- X is assigned a value but never used. (totalt 90 st)
- X is not defined. (totalt 54 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #55: eyDfcHead4k.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #55: eyDfcHead4k.js, antal fel: 679 ( 1.00 betyg )
- X is defined but never used. (totalt 481 st)
- X is not defined. (totalt 104 st)
- X is assigned a value but never used. (totalt 91 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: sYqgFo-YbhJ.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #56: sYqgFo-YbhJ.js, antal fel: 746 ( 1.00 betyg )
- X is defined but never used. (totalt 505 st)
- X is not defined. (totalt 147 st)
- X is assigned a value but never used. (totalt 91 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: JKEi5ds3GqT.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #57: JKEi5ds3GqT.js, antal fel: 750 ( 1.00 betyg )
- X is defined but never used. (totalt 505 st)
- X is not defined. (totalt 151 st)
- X is assigned a value but never used. (totalt 91 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: 8Dvk-eDMQTC.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #58: 8Dvk-eDMQTC.js, antal fel: 782 ( 1.00 betyg )
- X is defined but never used. (totalt 516 st)
- X is not defined. (totalt 172 st)
- X is assigned a value but never used. (totalt 91 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: ie38mp0O07P.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #59: ie38mp0O07P.js, antal fel: 787 ( 1.00 betyg )
- X is defined but never used. (totalt 518 st)
- X is not defined. (totalt 175 st)
- X is assigned a value but never used. (totalt 91 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 133 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 70 st)
- Unexpected string concatenation of literals. (totalt 15 st)
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- Unnecessary escape character: \-. (totalt 12 st)
- Unnecessary escape character: \/. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `< script>` in: #36: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #36: page.php, antal fel: 940 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 923 st)
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 6 st)
- `< script src="...">` in: #36: page.php, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #36: 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: #30: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #30: analytics.js, antal fel: 430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: sdk.js, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #33: sdk.js, antal fel: 431 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #35: js, antal fel: 1804 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1296 st)
- Expected X and instead saw X. (totalt 396 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- Unnecessary escape character: \/. (totalt 5 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 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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)
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #49: 46-aoqCGVKe.js, antal fel: 2944 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2222 st)
- Expected X and instead saw X. (totalt 601 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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: #50: renderer, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #50: renderer, antal fel: 2945 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2222 st)
- Expected X and instead saw X. (totalt 601 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: logging, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #51: logging, antal fel: 2946 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2222 st)
- Expected X and instead saw X. (totalt 601 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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: #55: eyDfcHead4k.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #55: eyDfcHead4k.js, antal fel: 3152 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2381 st)
- Expected X and instead saw X. (totalt 644 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is assigned to itself. (totalt 8 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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: #56: sYqgFo-YbhJ.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #56: sYqgFo-YbhJ.js, antal fel: 3311 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2503 st)
- Expected X and instead saw X. (totalt 672 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is assigned to itself. (totalt 15 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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: #57: JKEi5ds3GqT.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #57: JKEi5ds3GqT.js, antal fel: 3316 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2506 st)
- Expected X and instead saw X. (totalt 674 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is assigned to itself. (totalt 15 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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: #58: 8Dvk-eDMQTC.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #58: 8Dvk-eDMQTC.js, antal fel: 3380 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2549 st)
- Expected X and instead saw X. (totalt 694 st)
- Do not access Object.prototype method X from target object. (totalt 92 st)
- X is assigned to itself. (totalt 16 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (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: #59: ie38mp0O07P.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #59: ie38mp0O07P.js, antal fel: 3635 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2668 st)
- Expected X and instead saw X. (totalt 809 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- X is not modified in this loop. (totalt 18 st)
- X is assigned to itself. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \". (totalt 2 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)