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.57 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: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 185 ( 1.00 betyg )
- X is defined but never used. (totalt 107 st)
- X is not defined. (totalt 65 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #47: webReader.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: webReader.js, antal fel: 448 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #51: text-portlet.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: text-portlet.js, antal fel: 448 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #53: defaultlist.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: defaultlist.js, antal fel: 448 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 22 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #54: 8027.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: 8027.js, antal fel: 449 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #56: searchform-plug, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #56: searchform-plug, antal fel: 449 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 23 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #57: 356.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #57: 356.js, antal fel: 457 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 31 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #59: 6301.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: 6301.js, antal fel: 459 ( 1.00 betyg )
- X is not defined. (totalt 416 st)
- X is defined but never used. (totalt 33 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #60: 2527.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #60: 2527.js, antal fel: 463 ( 1.00 betyg )
- X is not defined. (totalt 417 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #62: archive-plugins, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #62: archive-plugins, antal fel: 463 ( 1.00 betyg )
- X is not defined. (totalt 417 st)
- X is defined but never used. (totalt 36 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #63: ReadSpeaker.Doc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: ReadSpeaker.Doc, antal fel: 465 ( 1.00 betyg )
- X is not defined. (totalt 417 st)
- X is defined but never used. (totalt 37 st)
- Unexpected console statement. (totalt 8 st)
- X is assigned a value but never used. (totalt 3 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: 2251 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1339 st)
- Expected X and instead saw X. (totalt 794 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- X is not modified in this loop. (totalt 13 st)
- Unnecessary X. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 12 st)
- The Function constructor is eval. (totalt 11 st)
- Async arrow function has no X expression. (totalt 9 st)
- X is assigned to itself. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: webReader.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #47: webReader.js, antal fel: 246 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 154 st)
- Expected X and instead saw X. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: text-portlet.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #51: text-portlet.js, antal fel: 246 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 154 st)
- Expected X and instead saw X. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: defaultlist.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #53: defaultlist.js, antal fel: 246 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 154 st)
- Expected X and instead saw X. (totalt 71 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: 8027.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #54: 8027.js, antal fel: 287 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 190 st)
- Expected X and instead saw X. (totalt 74 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #56: searchform-plug, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #56: searchform-plug, antal fel: 288 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 191 st)
- Expected X and instead saw X. (totalt 74 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #57: 356.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #57: 356.js, antal fel: 332 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 207 st)
- Expected X and instead saw X. (totalt 94 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: 6301.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #59: 6301.js, antal fel: 565 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 345 st)
- Expected X and instead saw X. (totalt 188 st)
- Do not access Object.prototype method X from target object. (totalt 16 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #60: 2527.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #60: 2527.js, antal fel: 616 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 381 st)
- Expected X and instead saw X. (totalt 191 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: archive-plugins, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #62: archive-plugins, antal fel: 630 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 392 st)
- Expected X and instead saw X. (totalt 194 st)
- Do not access Object.prototype method X from target object. (totalt 17 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: ReadSpeaker.Doc, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #63: ReadSpeaker.Doc, antal fel: 645 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 404 st)
- Expected X and instead saw X. (totalt 195 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- Unnecessary X. (totalt 16 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)