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.06 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: 5 ( 4.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1243 ( 1.00 betyg )
- X is not defined. (totalt 1082 st)
- X is defined but never used. (totalt 132 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 7 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #60: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #60: index.aa941f8.h, antal fel: 2 ( 4.60 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: ReadSpeaker.Doc, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #43: ReadSpeaker.Doc, antal fel: 2 ( 4.60 betyg )
- X is assigned a value but never used. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: container-Wg427, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #47: container-Wg427, antal fel: 252 ( 1.00 betyg )
- X is not defined. (totalt 152 st)
- X is defined but never used. (totalt 60 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #48: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: initWidget.js, antal fel: 252 ( 1.00 betyg )
- X is not defined. (totalt 152 st)
- X is defined but never used. (totalt 60 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #58: configs.php, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #58: configs.php, antal fel: 253 ( 1.00 betyg )
- X is not defined. (totalt 153 st)
- X is defined but never used. (totalt 60 st)
- Unexpected console statement. (totalt 22 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #59: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #59: widget.js, antal fel: 454 ( 1.00 betyg )
- X is defined but never used. (totalt 237 st)
- X is not defined. (totalt 159 st)
- Unexpected console statement. (totalt 40 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #63: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #63: bundle.fefe147d, antal fel: 627 ( 1.00 betyg )
- X is defined but never used. (totalt 406 st)
- X is not defined. (totalt 159 st)
- Unexpected console statement. (totalt 44 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #65: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: client.bundle.1, antal fel: 1063 ( 1.00 betyg )
- X is defined but never used. (totalt 737 st)
- X is not defined. (totalt 166 st)
- Unexpected console statement. (totalt 142 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #68: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #68: localization-sv, antal fel: 1063 ( 1.00 betyg )
- X is defined but never used. (totalt 737 st)
- X is not defined. (totalt 166 st)
- Unexpected console statement. (totalt 142 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #77: widget-app.508e, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #77: widget-app.508e, antal fel: 1201 ( 1.00 betyg )
- X is defined but never used. (totalt 857 st)
- X is not defined. (totalt 171 st)
- Unexpected console statement. (totalt 155 st)
- X is assigned a value but never used. (totalt 18 st)
- `content-type=".*javascript.*"` in: #82: widget-answers., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #82: widget-answers., antal fel: 1237 ( 1.00 betyg )
- X is defined but never used. (totalt 892 st)
- X is not defined. (totalt 171 st)
- Unexpected console statement. (totalt 156 st)
- X is assigned a value but never used. (totalt 18 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: 22 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1971 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1205 st)
- Expected X and instead saw X. (totalt 671 st)
- Do not access Object.prototype method X from target object. (totalt 27 st)
- Unnecessary escape character: \-. (totalt 14 st)
- Unnecessary X. (totalt 13 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 7 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 3 st)
- eval can be harmful. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \_. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \@. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Implied eval. Consider passing a function instead of a string. (totalt 1 st)
- Parsing error: Deleting local variable in strict mode (totalt 1 st)
- `< script>` in: #60: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #60: index.aa941f8.h, antal fel: 7 ( 3.60 betyg )
- Expected X and instead saw X. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: ReadSpeaker.Doc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: ReadSpeaker.Doc, antal fel: 15 ( 2.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Expected X and instead saw X. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: container-Wg427, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #47: container-Wg427, antal fel: 106 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 54 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: initWidget.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #48: initWidget.js, antal fel: 106 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 54 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #58: configs.php, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #58: configs.php, antal fel: 106 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 54 st)
- Unnecessary escape character: \/. (totalt 22 st)
- Expected an assignment or function call and instead saw an expression. (totalt 12 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #59: widget.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #59: widget.js, antal fel: 947 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 484 st)
- Expected X and instead saw X. (totalt 381 st)
- Do not access Object.prototype method X from target object. (totalt 36 st)
- Unnecessary escape character: \/. (totalt 33 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: bundle.fefe147d, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #63: bundle.fefe147d, antal fel: 1634 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 864 st)
- Expected X and instead saw X. (totalt 656 st)
- Do not access Object.prototype method X from target object. (totalt 62 st)
- Unnecessary escape character: \/. (totalt 34 st)
- Unnecessary X. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 3 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: client.bundle.1, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #65: client.bundle.1, antal fel: 3568 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2075 st)
- Expected X and instead saw X. (totalt 1308 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 35 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #68: localization-sv, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #68: localization-sv, antal fel: 3568 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2075 st)
- Expected X and instead saw X. (totalt 1308 st)
- Do not access Object.prototype method X from target object. (totalt 95 st)
- Unnecessary escape character: \/. (totalt 35 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Unnecessary X. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #77: widget-app.508e, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #77: widget-app.508e, antal fel: 4648 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2704 st)
- Expected X and instead saw X. (totalt 1722 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #82: widget-answers., antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #82: widget-answers., antal fel: 4753 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2795 st)
- Expected X and instead saw X. (totalt 1736 st)
- Do not access Object.prototype method X from target object. (totalt 121 st)
- Unnecessary escape character: \/. (totalt 36 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary escape character: \.. (totalt 9 st)
- Unnecessary X. (totalt 9 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- The Function constructor is eval. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \). (totalt 2 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)