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.87 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: 1982 ( 1.00 betyg )
- X is defined but never used. (totalt 993 st)
- X is not defined. (totalt 752 st)
- X is assigned a value but never used. (totalt 192 st)
- Unexpected console statement. (totalt 45 st)
- `content-type=".*javascript.*"` in: #123: lightbox.f3fa60, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #123: lightbox.f3fa60, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 38 st)
- `content-type=".*javascript.*"` in: #124: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #124: dialog.min.js, antal fel: 45 ( 1.00 betyg )
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #126: share-link.min., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #126: share-link.min., antal fel: 54 ( 1.00 betyg )
- X is not defined. (totalt 53 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #128: nav-menu.a23fbd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #128: nav-menu.a23fbd, antal fel: 64 ( 1.00 betyg )
- X is not defined. (totalt 62 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #129: search-form.b70, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #129: search-form.b70, antal fel: 66 ( 1.00 betyg )
- X is not defined. (totalt 64 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #130: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #130: text-editor.c08, antal fel: 69 ( 1.00 betyg )
- X is not defined. (totalt 67 st)
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #143: video.6ebfa2c3f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #143: video.6ebfa2c3f, antal fel: 76 ( 1.00 betyg )
- X is not defined. (totalt 74 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: 20 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 6374 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4652 st)
- Expected X and instead saw X. (totalt 1209 st)
- Do not access Object.prototype method X from target object. (totalt 244 st)
- Unnecessary escape character: \-. (totalt 189 st)
- Unnecessary escape character: \/. (totalt 22 st)
- X is assigned to itself. (totalt 11 st)
- X is not modified in this loop. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- Unnecessary escape character: \}. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \:. (totalt 1 st)
- `content-type=".*javascript.*"` in: #123: lightbox.f3fa60, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #123: lightbox.f3fa60, antal fel: 65 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 64 st)
- Expected X and instead saw X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #124: dialog.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #124: dialog.min.js, 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: #126: share-link.min., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #126: share-link.min., antal fel: 108 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 100 st)
- Expected X and instead saw X. (totalt 7 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #128: nav-menu.a23fbd, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #128: nav-menu.a23fbd, antal fel: 124 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 115 st)
- Expected X and instead saw X. (totalt 8 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #129: search-form.b70, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #129: search-form.b70, antal fel: 130 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 121 st)
- Expected X and instead saw X. (totalt 8 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #130: text-editor.c08, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #130: text-editor.c08, antal fel: 134 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 125 st)
- Expected X and instead saw X. (totalt 8 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #143: video.6ebfa2c3f, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #143: video.6ebfa2c3f, antal fel: 145 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 136 st)
- Expected X and instead saw X. (totalt 8 st)
- Script URL is a form of eval. (totalt 1 st)