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.15 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: 677 ( 1.00 betyg )
- X is not defined. (totalt 420 st)
- X is defined but never used. (totalt 174 st)
- Unexpected console statement. (totalt 50 st)
- X is assigned a value but never used. (totalt 33 st)
- `< script>` in: #63: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #63: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #90: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #90: 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: #64: configuration.j, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #64: configuration.j, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #65: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: cc.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 12 st)
- X is not defined. (totalt 11 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: initWidget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: initWidget.js, antal fel: 30 ( 1.00 betyg )
- X is defined but never used. (totalt 12 st)
- X is not defined. (totalt 11 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #71: m-el-main, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: m-el-main, antal fel: 73 ( 1.00 betyg )
- X is defined but never used. (totalt 51 st)
- X is not defined. (totalt 13 st)
- X is assigned a value but never used. (totalt 8 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: integration, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #83: integration, antal fel: 735 ( 1.00 betyg )
- X is not defined. (totalt 670 st)
- X is defined but never used. (totalt 54 st)
- X is assigned a value but never used. (totalt 8 st)
- Unexpected console statement. (totalt 3 st)
- `content-type=".*javascript.*"` in: #87: widget.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #87: widget.js, antal fel: 936 ( 1.00 betyg )
- X is not defined. (totalt 676 st)
- X is defined but never used. (totalt 231 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #93: supportedLangua, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #93: supportedLangua, antal fel: 937 ( 1.00 betyg )
- X is not defined. (totalt 677 st)
- X is defined but never used. (totalt 231 st)
- Unexpected console statement. (totalt 21 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #95: client.bundle.1, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #95: client.bundle.1, antal fel: 1373 ( 1.00 betyg )
- X is not defined. (totalt 684 st)
- X is defined but never used. (totalt 562 st)
- Unexpected console statement. (totalt 119 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #97: bundle.fefe147d, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #97: bundle.fefe147d, antal fel: 1546 ( 1.00 betyg )
- X is defined but never used. (totalt 731 st)
- X is not defined. (totalt 684 st)
- Unexpected console statement. (totalt 123 st)
- X is assigned a value but never used. (totalt 8 st)
- `content-type=".*javascript.*"` in: #99: localization-sv, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #99: localization-sv, antal fel: 1546 ( 1.00 betyg )
- X is defined but never used. (totalt 731 st)
- X is not defined. (totalt 684 st)
- Unexpected console statement. (totalt 123 st)
- X is assigned a value but never used. (totalt 8 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: 18 ( 1.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3290 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2077 st)
- Expected X and instead saw X. (totalt 1063 st)
- Unnecessary escape character: \/. (totalt 65 st)
- Unnecessary X. (totalt 17 st)
- Unnecessary escape character: \-. (totalt 13 st)
- Do not access Object.prototype method X from target object. (totalt 13 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary escape character: \[. (totalt 4 st)
- Unexpected string concatenation of literals. (totalt 4 st)
- Unnecessary escape character: \). (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 3 st)
- Unnecessary escape character: \^. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ReturnStatement. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- Unnecessary escape character: \'. (totalt 1 st)
- `< script>` in: #63: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #63: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `< script>` in: #90: index.aa941f8.h, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #90: 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: #65: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #65: cc.js, antal fel: 347 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (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: #69: initWidget.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #69: initWidget.js, antal fel: 347 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 36 st)
- Script URL is a form of eval. (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: #71: m-el-main, antal grupperade fel: 16 ( 1.80 betyg )
- `content-type=".*javascript.*"` in: #71: m-el-main, antal fel: 1726 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1078 st)
- Expected X and instead saw X. (totalt 610 st)
- Unnecessary escape character: \/. (totalt 11 st)
- Unnecessary X. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- X is assigned to itself. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 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)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `content-type=".*javascript.*"` in: #83: integration, antal grupperade fel: 18 ( 1.40 betyg )
- `content-type=".*javascript.*"` in: #83: integration, antal fel: 1846 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1173 st)
- Expected X and instead saw X. (totalt 630 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary X. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Do not access Object.prototype method X from target object. (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)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \). (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #87: widget.js, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #87: widget.js, antal fel: 2687 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1645 st)
- Expected X and instead saw X. (totalt 957 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unnecessary X. (totalt 8 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 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)
- The Function constructor is eval. (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)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #93: supportedLangua, antal grupperade fel: 19 ( 1.20 betyg )
- `content-type=".*javascript.*"` in: #93: supportedLangua, antal fel: 2687 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1645 st)
- Expected X and instead saw X. (totalt 957 st)
- Do not access Object.prototype method X from target object. (totalt 28 st)
- Unnecessary escape character: \/. (totalt 24 st)
- Unnecessary X. (totalt 8 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 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)
- The Function constructor is eval. (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)
- X is not modified in this loop. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- `content-type=".*javascript.*"` in: #95: client.bundle.1, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #95: client.bundle.1, antal fel: 4621 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2856 st)
- Expected X and instead saw X. (totalt 1609 st)
- Do not access Object.prototype method X from target object. (totalt 61 st)
- Unnecessary escape character: \/. (totalt 25 st)
- Unnecessary X. (totalt 12 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \?. (totalt 4 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary escape character: \_. (totalt 4 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #97: bundle.fefe147d, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #97: bundle.fefe147d, antal fel: 5308 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3236 st)
- Expected X and instead saw X. (totalt 1884 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Unnecessary X. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 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 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (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 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)
- `content-type=".*javascript.*"` in: #99: localization-sv, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #99: localization-sv, antal fel: 5308 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3236 st)
- Expected X and instead saw X. (totalt 1884 st)
- Do not access Object.prototype method X from target object. (totalt 87 st)
- Unnecessary escape character: \/. (totalt 26 st)
- Unnecessary X. (totalt 14 st)
- Comparing to itself is potentially pointless. (totalt 10 st)
- Unnecessary escape character: \.. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 8 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 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (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 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unexpected string concatenation of literals. (totalt 1 st)
- Unnecessary escape character: \+. (totalt 1 st)