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.74 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: Webbsida , antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 16 st)
- X is assigned a value but never used. (totalt 4 st)
- X is defined but never used. (totalt 3 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 738 ( 1.00 betyg )
- X is not defined. (totalt 657 st)
- X is defined but never used. (totalt 58 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #67: mega-menu.80086, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #67: mega-menu.80086, antal fel: 62 ( 1.00 betyg )
- X is not defined. (totalt 61 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: mega-menu-stret, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: mega-menu-stret, antal fel: 67 ( 1.00 betyg )
- X is not defined. (totalt 66 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: menu-title-keyb, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #69: menu-title-keyb, antal fel: 81 ( 1.00 betyg )
- X is not defined. (totalt 80 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #70: nav-menu.a23fbd, antal fel: 91 ( 1.00 betyg )
- X is not defined. (totalt 89 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #71: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #71: text-editor.c08, antal fel: 94 ( 1.00 betyg )
- X is not defined. (totalt 92 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #72: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #72: load-more.8b46f, antal fel: 99 ( 1.00 betyg )
- X is not defined. (totalt 97 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #73: loop.4a16d82b8b, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: loop.4a16d82b8b, antal fel: 124 ( 1.00 betyg )
- X is not defined. (totalt 122 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #74: ajax-pagination, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #74: ajax-pagination, antal fel: 127 ( 1.00 betyg )
- X is not defined. (totalt 125 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal fel: 158 ( 1.00 betyg )
- X is not defined. (totalt 156 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal fel: 161 ( 1.00 betyg )
- X is not defined. (totalt 159 st)
- X is defined but never used. (totalt 2 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script>` in: #1: Webbsida , antal fel: 112 ( 1.00 betyg )
- Unnecessary escape character: \/. (totalt 90 st)
- Expected X and instead saw X. (totalt 10 st)
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Do not access Object.prototype method X from target object. (totalt 4 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 11 ( 2.80 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1518 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1093 st)
- Expected X and instead saw X. (totalt 370 st)
- Do not access Object.prototype method X from target object. (totalt 32 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is assigned to itself. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary X. (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: #67: mega-menu.80086, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #67: mega-menu.80086, antal fel: 63 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 62 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: mega-menu-stret, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #68: mega-menu-stret, antal fel: 66 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 65 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: menu-title-keyb, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #69: menu-title-keyb, antal fel: 85 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 84 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: nav-menu.a23fbd, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #70: nav-menu.a23fbd, antal fel: 101 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 99 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #71: text-editor.c08, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #71: text-editor.c08, antal fel: 105 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 103 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #72: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #72: load-more.8b46f, antal fel: 119 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 117 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #73: loop.4a16d82b8b, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #73: loop.4a16d82b8b, antal fel: 146 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 141 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #74: ajax-pagination, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #74: ajax-pagination, antal fel: 158 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 153 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #75: form.5fb35271b8, antal fel: 206 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 200 st)
- Expected X and instead saw X. (totalt 6 st)
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #76: popup.f7b15b2ca, antal fel: 207 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 201 st)
- Expected X and instead saw X. (totalt 6 st)