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.41 av 5
- JS är dålig.Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 36 ( 1.00 betyg )
- X is defined but never used. (totalt 30 st)
- X is not defined. (totalt 3 st)
- X is assigned a value but never used. (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #20: 7IGigb-0XtQ, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: 7IGigb-0XtQ, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal fel: 89 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #30: otBannerSdk.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #30: otBannerSdk.js, antal fel: 145 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- Unexpected console statement. (totalt 32 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #32: www-embed-playe, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: www-embed-playe, antal fel: 240 ( 1.00 betyg )
- X is defined but never used. (totalt 194 st)
- Unexpected console statement. (totalt 37 st)
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 4 st)
- `content-type=".*javascript.*"` in: #33: base.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: base.js, antal fel: 470 ( 1.00 betyg )
- X is defined but never used. (totalt 398 st)
- Unexpected console statement. (totalt 47 st)
- X is assigned a value but never used. (totalt 16 st)
- X is not defined. (totalt 9 st)
- `content-type=".*javascript.*"` in: #45: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: matomo.js, antal fel: 663 ( 1.00 betyg )
- X is defined but never used. (totalt 437 st)
- X is not defined. (totalt 134 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #49: ad-status.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #49: ad-status.js, antal fel: 663 ( 1.00 betyg )
- X is defined but never used. (totalt 437 st)
- X is not defined. (totalt 134 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #50: iframe-api, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #50: iframe-api, antal fel: 665 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is not defined. (totalt 134 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #52: rqDMfREJsMUq8q-, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: rqDMfREJsMUq8q-, antal fel: 665 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is not defined. (totalt 134 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #53: embed.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: embed.js, antal fel: 666 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is not defined. (totalt 135 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #61: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #61: configs.php, antal fel: 667 ( 1.00 betyg )
- X is defined but never used. (totalt 439 st)
- X is not defined. (totalt 136 st)
- Unexpected console statement. (totalt 63 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #63: www-widgetapi.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: www-widgetapi.j, antal fel: 684 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- X is not defined. (totalt 138 st)
- Unexpected console statement. (totalt 68 st)
- X is assigned a value but never used. (totalt 29 st)
- `content-type=".*javascript.*"` in: #72: endscreen.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: endscreen.js, antal fel: 685 ( 1.00 betyg )
- X is defined but never used. (totalt 449 st)
- X is not defined. (totalt 139 st)
- Unexpected console statement. (totalt 68 st)
- X is assigned a value but never used. (totalt 29 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 18 ( 1.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 15 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 10 ( 3.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 490 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 239 st)
- Expected X and instead saw X. (totalt 221 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Parsing error: Unexpected token : (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `< script>` in: #20: 7IGigb-0XtQ, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #20: 7IGigb-0XtQ, antal fel: 4 ( 4.20 betyg )
- Expected X and instead saw X. (totalt 4 st)
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal fel: 469 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 413 st)
- Expected X and instead saw X. (totalt 36 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: otBannerSdk.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #30: otBannerSdk.js, antal fel: 1494 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1285 st)
- Expected X and instead saw X. (totalt 182 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 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)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: www-embed-playe, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #32: www-embed-playe, antal fel: 3232 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2439 st)
- Expected X and instead saw X. (totalt 715 st)
- Do not access Object.prototype method X from target object. (totalt 21 st)
- X is assigned to itself. (totalt 17 st)
- Unnecessary X. (totalt 11 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \/. (totalt 4 st)
- Unnecessary escape character: \(. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: base.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #33: base.js, antal fel: 14354 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9950 st)
- Expected X and instead saw X. (totalt 4203 st)
- Do not access Object.prototype method X from target object. (totalt 63 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 25 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \.. (totalt 11 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 6 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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: #45: matomo.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #45: matomo.js, antal fel: 14416 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9950 st)
- Expected X and instead saw X. (totalt 4252 st)
- Do not access Object.prototype method X from target object. (totalt 70 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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: #49: ad-status.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #49: ad-status.js, antal fel: 14416 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9950 st)
- Expected X and instead saw X. (totalt 4252 st)
- Do not access Object.prototype method X from target object. (totalt 70 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \/. (totalt 8 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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: #50: iframe-api, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #50: iframe-api, antal fel: 14424 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9950 st)
- Expected X and instead saw X. (totalt 4252 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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: #52: rqDMfREJsMUq8q-, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #52: rqDMfREJsMUq8q-, antal fel: 14442 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9956 st)
- Expected X and instead saw X. (totalt 4263 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: embed.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: embed.js, antal fel: 14528 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10034 st)
- Expected X and instead saw X. (totalt 4271 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #61: configs.php, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #61: configs.php, antal fel: 14528 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10034 st)
- Expected X and instead saw X. (totalt 4271 st)
- Do not access Object.prototype method X from target object. (totalt 71 st)
- X is assigned to itself. (totalt 46 st)
- Unnecessary X. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: www-widgetapi.j, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #63: www-widgetapi.j, antal fel: 14739 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10134 st)
- Expected X and instead saw X. (totalt 4362 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- X is assigned to itself. (totalt 55 st)
- Unnecessary X. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #72: endscreen.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #72: endscreen.js, antal fel: 14886 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10245 st)
- Expected X and instead saw X. (totalt 4398 st)
- Do not access Object.prototype method X from target object. (totalt 78 st)
- X is assigned to itself. (totalt 55 st)
- Unnecessary X. (totalt 26 st)
- Comparing to itself is potentially pointless. (totalt 16 st)
- Unnecessary escape character: \/. (totalt 15 st)
- Unnecessary escape character: \.. (totalt 12 st)
- Unnecessary escape character: \?. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 9 st)
- Unnecessary escape character: \). (totalt 5 st)
- Unnecessary escape character: \(. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \@. (totalt 2 st)
- The Function constructor is 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)
- eval can be harmful. (totalt 1 st)