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: 3.39 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: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1080 ( 1.00 betyg )
- X is not defined. (totalt 518 st)
- X is defined but never used. (totalt 458 st)
- X is assigned a value but never used. (totalt 90 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #61: search-form.b70, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #61: search-form.b70, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #62: text-editor.2c3, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #62: text-editor.2c3, antal fel: 5 ( 4.00 betyg )
- X is not defined. (totalt 5 st)
- `content-type=".*javascript.*"` in: #63: nav-menu.7e665d, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #63: nav-menu.7e665d, antal fel: 15 ( 2.00 betyg )
- X is not defined. (totalt 14 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #64: slides.c0029640, antal fel: 18 ( 1.40 betyg )
- X is not defined. (totalt 17 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #65: load-more.8b46f, antal fel: 23 ( 1.00 betyg )
- X is not defined. (totalt 22 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #66: posts.aec592653, antal fel: 33 ( 1.00 betyg )
- X is not defined. (totalt 32 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: 14 ( 2.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 2824 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2024 st)
- Expected X and instead saw X. (totalt 683 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 10 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 3 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)
- `content-type=".*javascript.*"` in: #61: search-form.b70, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #61: search-form.b70, antal fel: 6 ( 3.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 6 st)
- `content-type=".*javascript.*"` in: #62: text-editor.2c3, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #62: text-editor.2c3, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- `content-type=".*javascript.*"` in: #63: nav-menu.7e665d, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #63: nav-menu.7e665d, antal fel: 26 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 25 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #64: slides.c0029640, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #64: slides.c0029640, antal fel: 36 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 35 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: load-more.8b46f, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #65: load-more.8b46f, antal fel: 50 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 49 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: posts.aec592653, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #66: posts.aec592653, antal fel: 59 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 58 st)
- Expected X and instead saw X. (totalt 1 st)