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.91 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: 1200 ( 1.00 betyg )
- X is not defined. (totalt 645 st)
- X is defined but never used. (totalt 439 st)
- X is assigned a value but never used. (totalt 94 st)
- Unexpected console statement. (totalt 22 st)
- `content-type=".*javascript.*"` in: #90: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #90: 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: #91: nav-menu.a23fbd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #91: 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: #92: slides.c0029640, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #92: 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: #93: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #93: text-editor.c08, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #94: counter.12335f4, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #94: counter.12335f4, 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: #95: video.6ebfa2c3f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #95: video.6ebfa2c3f, antal fel: 32 ( 1.00 betyg )
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #96: carousel.3620fc, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #96: carousel.3620fc, 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: #97: load-more.8b46f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #97: load-more.8b46f, antal fel: 43 ( 1.00 betyg )
- X is not defined. (totalt 41 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #98: posts.aec592653, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #98: posts.aec592653, antal fel: 53 ( 1.00 betyg )
- X is not defined. (totalt 51 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #121: form.5fb35271b8, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #121: form.5fb35271b8, antal fel: 84 ( 1.00 betyg )
- X is not defined. (totalt 82 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #122: popup.f7b15b2ca, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #122: popup.f7b15b2ca, antal fel: 87 ( 1.00 betyg )
- X is not defined. (totalt 85 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #123: tabs.537e7a0f17, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #123: tabs.537e7a0f17, antal fel: 93 ( 1.00 betyg )
- X is not defined. (totalt 91 st)
- Unexpected console statement. (totalt 1 st)
- X is defined 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: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3657 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2805 st)
- Expected X and instead saw X. (totalt 676 st)
- Do not access Object.prototype method X from target object. (totalt 136 st)
- Unnecessary escape character: \/. (totalt 14 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)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #90: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #90: 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: #91: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #91: 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: #92: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #92: 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: #93: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #93: text-editor.c08, antal fel: 67 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 60 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #94: counter.12335f4, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #94: counter.12335f4, antal fel: 70 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 63 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #95: video.6ebfa2c3f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #95: video.6ebfa2c3f, antal fel: 81 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 74 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #96: carousel.3620fc, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #96: carousel.3620fc, antal fel: 91 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 84 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #97: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #97: load-more.8b46f, antal fel: 105 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 98 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #98: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #98: posts.aec592653, antal fel: 114 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 107 st)
- Expected X and instead saw X. (totalt 7 st)
- `content-type=".*javascript.*"` in: #121: form.5fb35271b8, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #121: form.5fb35271b8, antal fel: 162 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 154 st)
- Expected X and instead saw X. (totalt 8 st)
- `content-type=".*javascript.*"` in: #122: popup.f7b15b2ca, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #122: popup.f7b15b2ca, antal fel: 163 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 155 st)
- Expected X and instead saw X. (totalt 8 st)
- `content-type=".*javascript.*"` in: #123: tabs.537e7a0f17, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #123: tabs.537e7a0f17, antal fel: 175 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 167 st)
- Expected X and instead saw X. (totalt 8 st)