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.48 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: borger, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: borger, antal fel: 24 ( 1.00 betyg )
- Unexpected console statement. (totalt 20 st)
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 2 st)
- `< script src="...">` in: #1: borger, antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #1: borger, antal fel: 128 ( 1.00 betyg )
- X is defined but never used. (totalt 55 st)
- Unexpected console statement. (totalt 52 st)
- X is not defined. (totalt 21 st)
- `< script>` in: #7: cookiesharingif, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #7: cookiesharingif, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 3 st)
- Unexpected console statement. (totalt 3 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #12: jquery.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #12: jquery.min.js, antal fel: 22 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #14: da.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #14: da.js, antal fel: 23 ( 1.00 betyg )
- X is defined but never used. (totalt 20 st)
- X is not defined. (totalt 3 st)
- `content-type=".*javascript.*"` in: #25: libraries.min.j, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #25: libraries.min.j, antal fel: 36 ( 1.00 betyg )
- X is defined but never used. (totalt 23 st)
- X is not defined. (totalt 13 st)
- `content-type=".*javascript.*"` in: #26: plugins.min.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #26: plugins.min.js, antal fel: 61 ( 1.00 betyg )
- X is not defined. (totalt 37 st)
- X is defined but never used. (totalt 24 st)
- `content-type=".*javascript.*"` in: #27: modules.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #27: modules.min.js, antal fel: 62 ( 1.00 betyg )
- X is not defined. (totalt 37 st)
- X is defined but never used. (totalt 24 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: base.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: base.min.js, antal fel: 65 ( 1.00 betyg )
- X is not defined. (totalt 40 st)
- X is defined but never used. (totalt 24 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: jquery-validate, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #30: jquery-validate, antal fel: 78 ( 1.00 betyg )
- X is not defined. (totalt 44 st)
- X is defined but never used. (totalt 29 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- X is assigned a value but never used. (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #1: borger, antal grupperade fel: 3 ( 4.40 betyg )
- `< script>` in: #1: borger, antal fel: 24 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 19 st)
- Expected X and instead saw X. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `< script src="...">` in: #1: borger, antal grupperade fel: 9 ( 3.20 betyg )
- `< script src="...">` in: #1: borger, antal fel: 585 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 418 st)
- Expected X and instead saw X. (totalt 155 st)
- Do not access Object.prototype method X from target object. (totalt 6 st)
- Script URL is a form of eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- X is assigned to itself. (totalt 1 st)
- Unnecessary escape character: \&. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `< script>` in: #7: cookiesharingif, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #7: cookiesharingif, antal fel: 80 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 47 st)
- Expected an assignment or function call and instead saw an expression. (totalt 33 st)
- `content-type=".*javascript.*"` in: #12: jquery.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #12: jquery.min.js, antal fel: 371 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 213 st)
- Expected X and instead saw X. (totalt 145 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: da.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #14: da.js, antal fel: 371 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 213 st)
- Expected X and instead saw X. (totalt 145 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #25: libraries.min.j, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #25: libraries.min.j, antal fel: 546 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 357 st)
- Expected X and instead saw X. (totalt 176 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: plugins.min.js, antal grupperade fel: 10 ( 3.00 betyg )
- `content-type=".*javascript.*"` in: #26: plugins.min.js, antal fel: 670 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 457 st)
- Expected X and instead saw X. (totalt 198 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: modules.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #27: modules.min.js, antal fel: 671 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 457 st)
- Expected X and instead saw X. (totalt 198 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: base.min.js, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #28: base.min.js, antal fel: 672 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 458 st)
- Expected X and instead saw X. (totalt 198 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: jquery-validate, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #30: jquery-validate, antal fel: 755 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 520 st)
- Expected X and instead saw X. (totalt 211 st)
- Unnecessary escape character: \/. (totalt 6 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- X is not modified in this loop. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \.. (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)