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.28 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 )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 73 ( 1.00 betyg )
- X is defined but never used. (totalt 49 st)
- X is not defined. (totalt 18 st)
- Unexpected console statement. (totalt 6 st)
- `content-type=".*javascript.*"` in: #15: readspeaker.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #15: readspeaker.js, antal fel: 1 ( 4.80 betyg )
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #16: chunk-RQ24UMKN., antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #16: chunk-RQ24UMKN., antal fel: 1 ( 4.80 betyg )
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #17: chunk-YRT7GXGY., antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #17: chunk-YRT7GXGY., antal fel: 1 ( 4.80 betyg )
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #18: chunk-5TPJFEM7., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #18: chunk-5TPJFEM7., antal fel: 2 ( 4.60 betyg )
- Unexpected console statement. (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: chunk-CFTZMW4W., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: chunk-CFTZMW4W., antal fel: 4 ( 4.20 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #20: chunk-DLFJSPWL., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #20: chunk-DLFJSPWL., antal fel: 4 ( 4.20 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #21: chunk-TBXVTIW2., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #21: chunk-TBXVTIW2., antal fel: 6 ( 3.80 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: chunk-BMARWC7B., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #40: chunk-BMARWC7B., antal fel: 6 ( 3.80 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #41: chunk-EIZEKC67., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #41: chunk-EIZEKC67., antal fel: 6 ( 3.80 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #42: chunk-5NPSPJ7V., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #42: chunk-5NPSPJ7V., antal fel: 6 ( 3.80 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #43: uppsala.datepic, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #43: uppsala.datepic, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 3 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #44: uppsala.matomow, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #44: uppsala.matomow, antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 4 st)
- Unexpected console statement. (totalt 3 st)
- X is defined but never used. (totalt 3 st)
- `content-type=".*javascript.*"` in: #45: uppsala.formpag, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #45: uppsala.formpag, antal fel: 20 ( 1.00 betyg )
- X is not defined. (totalt 11 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #46: uppsala.toggles, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #46: uppsala.toggles, antal fel: 21 ( 1.00 betyg )
- X is not defined. (totalt 12 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #47: uppsala.searchb, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: uppsala.searchb, antal fel: 22 ( 1.00 betyg )
- X is not defined. (totalt 13 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #48: uppsala.toggleh, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #48: uppsala.toggleh, antal fel: 28 ( 1.00 betyg )
- X is not defined. (totalt 19 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #49: uppsala.storage, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #49: uppsala.storage, antal fel: 29 ( 1.00 betyg )
- X is not defined. (totalt 20 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #50: uppsala.toggles, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #50: uppsala.toggles, antal fel: 30 ( 1.00 betyg )
- X is not defined. (totalt 21 st)
- X is defined but never used. (totalt 5 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #51: jquery.datetime, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #51: jquery.datetime, antal fel: 43 ( 1.00 betyg )
- X is not defined. (totalt 31 st)
- X is defined but never used. (totalt 6 st)
- Unexpected console statement. (totalt 4 st)
- X is assigned a value but never used. (totalt 2 st)
Integritet & säkerhet
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 19 ( 1.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 728 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 485 st)
- Expected X and instead saw X. (totalt 192 st)
- Unnecessary escape character: \/. (totalt 7 st)
- Unnecessary escape character: \:. (totalt 6 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary X. (totalt 5 st)
- Do not access Object.prototype method X from target object. (totalt 5 st)
- Unnecessary escape character: \%. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Unnecessary escape character: \?. (totalt 3 st)
- Unnecessary escape character: \&. (totalt 3 st)
- Unnecessary escape character: \#. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 1 st)
- Unnecessary escape character: \-. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \=. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: common.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #13: common.js, antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: index.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #14: index.js, antal fel: 1 ( 4.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #15: readspeaker.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #15: readspeaker.js, antal fel: 9 ( 3.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 9 st)
- `content-type=".*javascript.*"` in: #16: chunk-RQ24UMKN., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #16: chunk-RQ24UMKN., antal fel: 12 ( 2.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 10 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #17: chunk-YRT7GXGY., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #17: chunk-YRT7GXGY., antal fel: 16 ( 1.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 11 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #18: chunk-5TPJFEM7., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #18: chunk-5TPJFEM7., antal fel: 22 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 17 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #19: chunk-CFTZMW4W., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: chunk-CFTZMW4W., antal fel: 39 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 34 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #20: chunk-DLFJSPWL., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #20: chunk-DLFJSPWL., antal fel: 43 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 38 st)
- Expected X and instead saw X. (totalt 5 st)
- `content-type=".*javascript.*"` in: #21: chunk-TBXVTIW2., antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #21: chunk-TBXVTIW2., antal fel: 391 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 250 st)
- Expected X and instead saw X. (totalt 133 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: chunk-BMARWC7B., antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #40: chunk-BMARWC7B., antal fel: 394 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 253 st)
- Expected X and instead saw X. (totalt 133 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: chunk-EIZEKC67., antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #41: chunk-EIZEKC67., antal fel: 412 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 271 st)
- Expected X and instead saw X. (totalt 133 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: chunk-5NPSPJ7V., antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #42: chunk-5NPSPJ7V., antal fel: 417 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 276 st)
- Expected X and instead saw X. (totalt 133 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #43: uppsala.datepic, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #43: uppsala.datepic, antal fel: 417 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 276 st)
- Expected X and instead saw X. (totalt 133 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #44: uppsala.matomow, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #44: uppsala.matomow, antal fel: 422 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 281 st)
- Expected X and instead saw X. (totalt 133 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #45: uppsala.formpag, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #45: uppsala.formpag, antal fel: 441 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 298 st)
- Expected X and instead saw X. (totalt 135 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: uppsala.toggles, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #46: uppsala.toggles, antal fel: 450 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 306 st)
- Expected X and instead saw X. (totalt 136 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: uppsala.searchb, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #47: uppsala.searchb, antal fel: 453 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 309 st)
- Expected X and instead saw X. (totalt 136 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: uppsala.toggleh, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #48: uppsala.toggleh, antal fel: 468 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 319 st)
- Expected X and instead saw X. (totalt 141 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #49: uppsala.storage, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #49: uppsala.storage, antal fel: 468 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 319 st)
- Expected X and instead saw X. (totalt 141 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #50: uppsala.toggles, antal grupperade fel: 8 ( 3.40 betyg )
- `content-type=".*javascript.*"` in: #50: uppsala.toggles, antal fel: 472 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 321 st)
- Expected X and instead saw X. (totalt 143 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- `content-type=".*javascript.*"` in: #51: jquery.datetime, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #51: jquery.datetime, antal fel: 615 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 389 st)
- Expected X and instead saw X. (totalt 159 st)
- Unnecessary escape character: \/. (totalt 43 st)
- X is not modified in this loop. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \+. (totalt 4 st)
- eval can be harmful. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- X is assigned to itself. (totalt 1 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)
- Unnecessary escape character: \). (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)