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: 2.86 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: 301 ( 1.00 betyg )
- X is not defined. (totalt 222 st)
- X is defined but never used. (totalt 62 st)
- X is assigned a value but never used. (totalt 9 st)
- Unexpected console statement. (totalt 8 st)
- `< script>` in: #41: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #41: 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: #25: analytics.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #25: analytics.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 27 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #27: m-el-main, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: m-el-main, antal fel: 73 ( 1.00 betyg )
- X is defined but never used. (totalt 66 st)
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: initWidget.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: initWidget.js, antal fel: 73 ( 1.00 betyg )
- X is defined but never used. (totalt 66 st)
- X is not defined. (totalt 5 st)
- X is assigned a value but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #34: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: js, antal fel: 575 ( 1.00 betyg )
- X is defined but never used. (totalt 462 st)
- X is assigned a value but never used. (totalt 92 st)
- X is not defined. (totalt 21 st)
- `content-type=".*javascript.*"` in: #35: js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: js, antal fel: 1078 ( 1.00 betyg )
- X is defined but never used. (totalt 859 st)
- X is assigned a value but never used. (totalt 182 st)
- X is not defined. (totalt 37 st)
- `content-type=".*javascript.*"` in: #39: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #39: widget.js, antal fel: 1279 ( 1.00 betyg )
- X is defined but never used. (totalt 1036 st)
- X is assigned a value but never used. (totalt 182 st)
- X is not defined. (totalt 43 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #40: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: supportedLangua, antal fel: 1280 ( 1.00 betyg )
- X is defined but never used. (totalt 1036 st)
- X is assigned a value but never used. (totalt 182 st)
- X is not defined. (totalt 44 st)
- Unexpected console statement. (totalt 18 st)
- `content-type=".*javascript.*"` in: #44: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: client.bundle.1, antal fel: 1716 ( 1.00 betyg )
- X is defined but never used. (totalt 1367 st)
- X is assigned a value but never used. (totalt 182 st)
- Unexpected console statement. (totalt 116 st)
- X is not defined. (totalt 51 st)
- `content-type=".*javascript.*"` in: #46: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: bundle.fefe147d, antal fel: 1889 ( 1.00 betyg )
- X is defined but never used. (totalt 1536 st)
- X is assigned a value but never used. (totalt 182 st)
- Unexpected console statement. (totalt 120 st)
- X is not defined. (totalt 51 st)
- `content-type=".*javascript.*"` in: #48: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #48: localization-sv, antal fel: 1889 ( 1.00 betyg )
- X is defined but never used. (totalt 1536 st)
- X is assigned a value but never used. (totalt 182 st)
- Unexpected console statement. (totalt 120 st)
- X is not defined. (totalt 51 st)
- `content-type=".*javascript.*"` in: #54: primus.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: primus.js, antal fel: 1933 ( 1.00 betyg )
- X is defined but never used. (totalt 1580 st)
- X is assigned a value but never used. (totalt 182 st)
- Unexpected console statement. (totalt 120 st)
- X is not defined. (totalt 51 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: 15 ( 2.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 954 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 529 st)
- Expected X and instead saw X. (totalt 358 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Do not access Object.prototype method X from target object. (totalt 8 st)
- Unnecessary X. (totalt 8 st)
- Comparing to itself is potentially pointless. (totalt 7 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \.. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \-. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `< script>` in: #41: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #41: 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: #25: analytics.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #25: analytics.js, antal fel: 430 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 234 st)
- Expected X and instead saw X. (totalt 178 st)
- Do not access Object.prototype method X from target object. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: m-el-main, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #27: m-el-main, antal fel: 1809 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1006 st)
- Expected X and instead saw X. (totalt 752 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: initWidget.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #28: initWidget.js, antal fel: 1809 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1006 st)
- Expected X and instead saw X. (totalt 752 st)
- Do not access Object.prototype method X from target object. (totalt 14 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Script URL is a form of eval. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #34: js, antal fel: 3182 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2068 st)
- Expected X and instead saw X. (totalt 970 st)
- Do not access Object.prototype method X from target object. (totalt 94 st)
- Unnecessary escape character: \/. (totalt 16 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 5 st)
- X is assigned to itself. (totalt 5 st)
- X is not modified in this loop. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 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)
- `content-type=".*javascript.*"` in: #35: js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #35: js, antal fel: 4560 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3133 st)
- Expected X and instead saw X. (totalt 1188 st)
- Do not access Object.prototype method X from target object. (totalt 176 st)
- Unnecessary escape character: \/. (totalt 19 st)
- X is assigned to itself. (totalt 8 st)
- Unnecessary X. (totalt 7 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: widget.js, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #39: widget.js, antal fel: 5401 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3605 st)
- Expected X and instead saw X. (totalt 1515 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unnecessary X. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: supportedLangua, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #40: supportedLangua, antal fel: 5401 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3605 st)
- Expected X and instead saw X. (totalt 1515 st)
- Do not access Object.prototype method X from target object. (totalt 202 st)
- Unnecessary escape character: \/. (totalt 30 st)
- Unnecessary X. (totalt 9 st)
- X is assigned to itself. (totalt 8 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: client.bundle.1, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #44: client.bundle.1, antal fel: 7335 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 4816 st)
- Expected X and instead saw X. (totalt 2167 st)
- Do not access Object.prototype method X from target object. (totalt 235 st)
- Unnecessary escape character: \/. (totalt 31 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- Unnecessary X. (totalt 13 st)
- X is assigned to itself. (totalt 9 st)
- X is not modified in this loop. (totalt 8 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: bundle.fefe147d, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #46: bundle.fefe147d, antal fel: 8022 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5196 st)
- Expected X and instead saw X. (totalt 2442 st)
- Do not access Object.prototype method X from target object. (totalt 261 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary X. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: localization-sv, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #48: localization-sv, antal fel: 8022 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5196 st)
- Expected X and instead saw X. (totalt 2442 st)
- Do not access Object.prototype method X from target object. (totalt 261 st)
- Unnecessary escape character: \/. (totalt 32 st)
- Unnecessary X. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 13 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: primus.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #54: primus.js, antal fel: 8031 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 5198 st)
- Expected X and instead saw X. (totalt 2446 st)
- Do not access Object.prototype method X from target object. (totalt 261 st)
- Unnecessary escape character: \/. (totalt 33 st)
- Unnecessary X. (totalt 15 st)
- Comparing to itself is potentially pointless. (totalt 14 st)
- X is not modified in this loop. (totalt 9 st)
- X is assigned to itself. (totalt 9 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 st)
- Unnecessary escape character: \?. (totalt 6 st)
- The Function constructor is eval. (totalt 5 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \,. (totalt 1 st)