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.67 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: 1333 ( 1.00 betyg )
- X is not defined. (totalt 801 st)
- X is defined but never used. (totalt 444 st)
- X is assigned a value but never used. (totalt 74 st)
- Unexpected console statement. (totalt 14 st)
- `< script>` in: #85: page.php, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #85: 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: #85: page.php, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #85: 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: #65: text-editor.c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #65: text-editor.c08, antal fel: 3 ( 4.40 betyg )
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #66: slides.c0029640, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #66: slides.c0029640, antal fel: 6 ( 3.80 betyg )
- X is not defined. (totalt 6 st)
- `content-type=".*javascript.*"` in: #67: nested-carousel, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #67: nested-carousel, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 15 st)
- `content-type=".*javascript.*"` in: #68: social.f215e8a3, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #68: social.f215e8a3, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- `content-type=".*javascript.*"` in: #83: sdk.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #83: sdk.js, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- `content-type=".*javascript.*"` in: #84: sdk.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #84: sdk.js, antal fel: 24 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #96: 46-aoqCGVKe.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #96: 46-aoqCGVKe.js, antal fel: 91 ( 1.00 betyg )
- X is not defined. (totalt 58 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #97: renderer, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #97: renderer, antal fel: 92 ( 1.00 betyg )
- X is not defined. (totalt 58 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: X in strict mode (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #98: logging, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #98: logging, antal fel: 93 ( 1.00 betyg )
- X is not defined. (totalt 58 st)
- X is defined but never used. (totalt 32 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: eyDfcHead4k.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #104: eyDfcHead4k.js, antal fel: 170 ( 1.00 betyg )
- X is not defined. (totalt 108 st)
- X is defined but never used. (totalt 58 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #105: 4jGkrolTMU7.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #105: 4jGkrolTMU7.js, antal fel: 241 ( 1.00 betyg )
- X is not defined. (totalt 155 st)
- X is defined but never used. (totalt 82 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #106: 1Lhj78VXkaF.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #106: 1Lhj78VXkaF.js, antal fel: 439 ( 1.00 betyg )
- X is not defined. (totalt 316 st)
- X is defined but never used. (totalt 119 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #107: 8Dvk-eDMQTC.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #107: 8Dvk-eDMQTC.js, antal fel: 471 ( 1.00 betyg )
- X is not defined. (totalt 337 st)
- X is defined but never used. (totalt 130 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #108: E4EMtS854k7.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #108: E4EMtS854k7.js, antal fel: 477 ( 1.00 betyg )
- X is not defined. (totalt 342 st)
- X is defined but never used. (totalt 131 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: ie38mp0O07P.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #109: ie38mp0O07P.js, antal fel: 482 ( 1.00 betyg )
- X is not defined. (totalt 345 st)
- X is defined but never used. (totalt 133 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Parsing error: X in strict mode (totalt 1 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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3729 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2779 st)
- Expected X and instead saw X. (totalt 805 st)
- Do not access Object.prototype method X from target object. (totalt 101 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is assigned to itself. (totalt 7 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 3 st)
- Unnecessary X. (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)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `< script>` in: #85: page.php, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #85: page.php, antal fel: 1289 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 1272 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: #85: page.php, antal grupperade fel: 22 ( 1.00 betyg )
- `< script src="...">` in: #85: 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: #65: text-editor.c08, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #65: text-editor.c08, antal fel: 4 ( 4.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4 st)
- `content-type=".*javascript.*"` in: #66: slides.c0029640, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #66: slides.c0029640, antal fel: 14 ( 2.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- `content-type=".*javascript.*"` in: #67: nested-carousel, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #67: nested-carousel, antal fel: 27 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 26 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: social.f215e8a3, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: social.f215e8a3, antal fel: 32 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 31 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: sdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #83: sdk.js, antal fel: 39 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #84: sdk.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #84: sdk.js, antal fel: 40 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 34 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- `content-type=".*javascript.*"` in: #96: 46-aoqCGVKe.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #96: 46-aoqCGVKe.js, antal fel: 1180 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 960 st)
- Expected X and instead saw X. (totalt 205 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #97: renderer, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #97: renderer, antal fel: 1181 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 960 st)
- Expected X and instead saw X. (totalt 205 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 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: #98: logging, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #98: logging, antal fel: 1182 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 960 st)
- Expected X and instead saw X. (totalt 205 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 3 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)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: eyDfcHead4k.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #104: eyDfcHead4k.js, antal fel: 1388 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1119 st)
- Expected X and instead saw X. (totalt 248 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is not modified in this loop. (totalt 3 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)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #105: 4jGkrolTMU7.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #105: 4jGkrolTMU7.js, antal fel: 1552 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1244 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)
- Unnecessary escape character: \/. (totalt 4 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)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #106: 1Lhj78VXkaF.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #106: 1Lhj78VXkaF.js, antal fel: 2078 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1601 st)
- Expected X and instead saw X. (totalt 433 st)
- X is assigned to itself. (totalt 22 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 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)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `content-type=".*javascript.*"` in: #107: 8Dvk-eDMQTC.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #107: 8Dvk-eDMQTC.js, antal fel: 2142 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1644 st)
- Expected X and instead saw X. (totalt 453 st)
- X is assigned to itself. (totalt 23 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 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)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (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: E4EMtS854k7.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #108: E4EMtS854k7.js, antal fel: 2179 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1680 st)
- Expected X and instead saw X. (totalt 454 st)
- X is assigned to itself. (totalt 23 st)
- X is not modified in this loop. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 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)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: ie38mp0O07P.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #109: ie38mp0O07P.js, antal fel: 2434 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1799 st)
- Expected X and instead saw X. (totalt 569 st)
- X is assigned to itself. (totalt 23 st)
- X is not modified in this loop. (totalt 15 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \". (totalt 3 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 2 st)
- Async method X has no X expression. (totalt 1 st)
- Parsing error: X in strict mode (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)