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: 3.05 av 5
- JS är ok.
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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 749 ( 1.00 betyg )
- X is not defined. (totalt 552 st)
- X is defined but never used. (totalt 178 st)
- Unexpected console statement. (totalt 19 st)
- `< script>` in: #118: anchor, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #118: anchor, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #118: anchor, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #118: anchor, antal fel: 100 ( 1.00 betyg )
- X is defined but never used. (totalt 78 st)
- X is not defined. (totalt 17 st)
- Unexpected console statement. (totalt 3 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #104: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #104: dialog.min.js, antal fel: 7 ( 3.60 betyg )
- X is not defined. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #106: nav-menu.a23fbd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #106: nav-menu.a23fbd, antal fel: 17 ( 1.60 betyg )
- X is not defined. (totalt 15 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #108: slides.c0029640, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #108: slides.c0029640, antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #109: load-more.8b46f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #109: load-more.8b46f, antal fel: 25 ( 1.00 betyg )
- X is not defined. (totalt 23 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #110: posts.aec592653, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #110: posts.aec592653, antal fel: 35 ( 1.00 betyg )
- X is not defined. (totalt 33 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #111: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #111: text-editor.c08, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #112: media-carousel., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #112: media-carousel., antal fel: 46 ( 1.00 betyg )
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #113: search-form.b70, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #113: search-form.b70, antal fel: 48 ( 1.00 betyg )
- X is not defined. (totalt 46 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #114: form.5fb35271b8, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #114: form.5fb35271b8, antal fel: 79 ( 1.00 betyg )
- X is not defined. (totalt 77 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #115: popup.f7b15b2ca, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #115: popup.f7b15b2ca, antal fel: 82 ( 1.00 betyg )
- X is not defined. (totalt 80 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #120: recaptcha--sv.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #120: recaptcha--sv.j, antal fel: 182 ( 1.00 betyg )
- X is not defined. (totalt 97 st)
- X is defined but never used. (totalt 79 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (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: 17 ( 1.60 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3576 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2858 st)
- Expected X and instead saw X. (totalt 602 st)
- Do not access Object.prototype method X from target object. (totalt 48 st)
- Comparing to itself is potentially pointless. (totalt 19 st)
- Unnecessary escape character: \/. (totalt 14 st)
- The Function constructor is eval. (totalt 10 st)
- X is assigned to itself. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- Unnecessary escape character: \^. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- `< script src="...">` in: #118: anchor, antal grupperade fel: 18 ( 1.40 betyg )
- `< script src="...">` in: #118: anchor, antal fel: 2265 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1641 st)
- Expected an assignment or function call and instead saw an expression. (totalt 574 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- `content-type=".*javascript.*"` in: #104: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #104: dialog.min.js, antal fel: 37 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 31 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #106: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #106: nav-menu.a23fbd, antal fel: 53 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 46 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #108: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #108: slides.c0029640, antal fel: 63 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 56 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #109: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #109: load-more.8b46f, antal fel: 77 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 70 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #110: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #110: posts.aec592653, antal fel: 86 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 79 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #111: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #111: text-editor.c08, antal fel: 90 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 83 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #112: media-carousel., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #112: media-carousel., antal fel: 102 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 95 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #113: search-form.b70, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #113: search-form.b70, antal fel: 108 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 101 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #114: form.5fb35271b8, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #114: form.5fb35271b8, antal fel: 156 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 148 st)
- Expected X and instead saw X. (totalt 8 st)
- `content-type=".*javascript.*"` in: #115: popup.f7b15b2ca, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #115: popup.f7b15b2ca, antal fel: 157 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 149 st)
- Expected X and instead saw X. (totalt 8 st)
- `content-type=".*javascript.*"` in: #120: recaptcha--sv.j, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #120: recaptcha--sv.j, antal fel: 2422 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 1649 st)
- Expected an assignment or function call and instead saw an expression. (totalt 723 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \). (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Unnecessary escape character: \^. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \(. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)