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.38 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: 277 ( 1.00 betyg )
- X is not defined. (totalt 117 st)
- X is defined but never used. (totalt 100 st)
- Unexpected console statement. (totalt 37 st)
- X is assigned a value but never used. (totalt 23 st)
- `< script>` in: #41: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #41: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #21: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #21: cc.js, antal fel: 28 ( 1.00 betyg )
- X is defined but never used. (totalt 12 st)
- X is not defined. (totalt 9 st)
- X is assigned a value but never used. (totalt 6 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: matomo.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: matomo.js, antal fel: 77 ( 1.00 betyg )
- X is defined but never used. (totalt 32 st)
- X is not defined. (totalt 25 st)
- X is assigned a value but never used. (totalt 13 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #43: common.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #43: common.js, antal fel: 89 ( 1.00 betyg )
- X is defined but never used. (totalt 43 st)
- X is not defined. (totalt 26 st)
- X is assigned a value but never used. (totalt 13 st)
- Unexpected console statement. (totalt 7 st)
- `content-type=".*javascript.*"` in: #44: util.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #44: util.js, antal fel: 108 ( 1.00 betyg )
- X is defined but never used. (totalt 58 st)
- X is not defined. (totalt 27 st)
- X is assigned a value but never used. (totalt 15 st)
- Unexpected console statement. (totalt 8 st)
- `content-type=".*javascript.*"` in: #45: map.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #45: map.js, antal fel: 121 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 28 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #46: marker.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: marker.js, antal fel: 126 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 29 st)
- X is assigned a value but never used. (totalt 16 st)
- Unexpected console statement. (totalt 16 st)
- `content-type=".*javascript.*"` in: #51: infowindow.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: infowindow.js, antal fel: 128 ( 1.00 betyg )
- X is defined but never used. (totalt 65 st)
- X is not defined. (totalt 30 st)
- Unexpected console statement. (totalt 17 st)
- X is assigned a value but never used. (totalt 16 st)
- `content-type=".*javascript.*"` in: #52: log.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: log.js, antal fel: 135 ( 1.00 betyg )
- X is defined but never used. (totalt 69 st)
- X is not defined. (totalt 31 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #53: onion.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: onion.js, antal fel: 136 ( 1.00 betyg )
- X is defined but never used. (totalt 69 st)
- X is not defined. (totalt 32 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #69: vt, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: vt, antal fel: 138 ( 1.00 betyg )
- X is defined but never used. (totalt 69 st)
- X is not defined. (totalt 34 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 17 st)
- `content-type=".*javascript.*"` in: #70: controls.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: controls.js, antal fel: 139 ( 1.00 betyg )
- X is defined but never used. (totalt 69 st)
- X is not defined. (totalt 35 st)
- X is assigned a value but never used. (totalt 18 st)
- Unexpected console statement. (totalt 17 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: 2464 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1476 st)
- Expected X and instead saw X. (totalt 689 st)
- X is assigned to itself. (totalt 222 st)
- Do not access Object.prototype method X from target object. (totalt 26 st)
- Unnecessary escape character: \/. (totalt 21 st)
- Unnecessary X. (totalt 7 st)
- Unexpected string concatenation of literals. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- eval can be harmful. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Async arrow function has no X expression. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- `< script>` in: #41: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #41: 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)
- `content-type=".*javascript.*"` in: #21: cc.js, antal grupperade fel: 6 ( 3.80 betyg )
- `content-type=".*javascript.*"` in: #21: 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: #32: matomo.js, antal grupperade fel: 7 ( 3.60 betyg )
- `content-type=".*javascript.*"` in: #32: matomo.js, antal fel: 350 ( 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)
- Do not access Object.prototype method X from target object. (totalt 3 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: #43: common.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #43: common.js, antal fel: 787 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 648 st)
- Expected X and instead saw X. (totalt 120 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: util.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #44: util.js, antal fel: 2153 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1277 st)
- Expected X and instead saw X. (totalt 833 st)
- Do not access Object.prototype method X from target object. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: map.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #45: map.js, antal fel: 2465 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1535 st)
- Expected X and instead saw X. (totalt 875 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 7 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: marker.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #46: marker.js, antal fel: 2794 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1818 st)
- Expected X and instead saw X. (totalt 916 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: infowindow.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #51: infowindow.js, antal fel: 2833 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1853 st)
- Expected X and instead saw X. (totalt 920 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: log.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #52: log.js, antal fel: 3001 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1977 st)
- Expected X and instead saw X. (totalt 963 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 6 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: onion.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #53: onion.js, antal fel: 3115 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2061 st)
- Expected X and instead saw X. (totalt 992 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #69: vt, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #69: vt, antal fel: 3116 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2062 st)
- Expected X and instead saw X. (totalt 992 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \$. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Async function has no X expression. (totalt 2 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- `content-type=".*javascript.*"` in: #70: controls.js, antal grupperade fel: 20 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #70: controls.js, antal fel: 3450 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2337 st)
- Expected X and instead saw X. (totalt 1049 st)
- Do not access Object.prototype method X from target object. (totalt 18 st)
- X is assigned to itself. (totalt 12 st)
- Unnecessary X. (totalt 7 st)
- Unnecessary escape character: \?. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Async function has no X expression. (totalt 3 st)
- Script URL is a form of eval. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Unexpected string concatenation of literals. (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)
- Unnecessary escape character: \[. (totalt 1 st)
- Async method X has no X expression. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \(. (totalt 1 st)
- eval can be harmful. (totalt 1 st)