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.46 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 window (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 204 ( 1.00 betyg )
- X is defined but never used. (totalt 174 st)
- X is assigned a value but never used. (totalt 22 st)
- Unexpected console statement. (totalt 7 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #3: stockholm, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #3: stockholm, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `< script>` in: #44: index.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: index.html, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #60: g-C3-B6teborg, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #60: g-C3-B6teborg, antal fel: 3 ( 4.40 betyg )
- X is defined but never used. (totalt 2 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: svg4everybody.m, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #27: svg4everybody.m, antal fel: 2 ( 4.60 betyg )
- X is not defined. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: scripts.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #28: scripts.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 3 st)
- X is not defined. (totalt 2 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: index.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #34: index.js, antal fel: 91 ( 1.00 betyg )
- X is not defined. (totalt 44 st)
- X is defined but never used. (totalt 43 st)
- Unexpected console statement. (totalt 4 st)
- `content-type=".*javascript.*"` in: #35: wrapperMessagin, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #35: wrapperMessagin, antal fel: 174 ( 1.00 betyg )
- X is defined but never used. (totalt 110 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #36: custom.ca802a38, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #36: custom.ca802a38, antal fel: 176 ( 1.00 betyg )
- X is defined but never used. (totalt 112 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #37: gdpr-tcf.fd8d93, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #37: gdpr-tcf.fd8d93, antal fel: 216 ( 1.00 betyg )
- X is defined but never used. (totalt 152 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 19 st)
- `content-type=".*javascript.*"` in: #47: polyfills.355e5, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #47: polyfills.355e5, antal fel: 218 ( 1.00 betyg )
- X is defined but never used. (totalt 153 st)
- X is not defined. (totalt 45 st)
- Unexpected console statement. (totalt 20 st)
- `content-type=".*javascript.*"` in: #48: Notice.64e5a.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #48: Notice.64e5a.js, antal fel: 245 ( 1.00 betyg )
- X is defined but never used. (totalt 170 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #62: 5588.e53a177c.m, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #62: 5588.e53a177c.m, antal fel: 245 ( 1.00 betyg )
- X is defined but never used. (totalt 170 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 25 st)
- `content-type=".*javascript.*"` in: #63: 314.cee86989.m., antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #63: 314.cee86989.m., antal fel: 245 ( 1.00 betyg )
- X is defined but never used. (totalt 170 st)
- X is not defined. (totalt 50 st)
- Unexpected console statement. (totalt 25 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 window (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 1513 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 785 st)
- Expected X and instead saw X. (totalt 721 st)
- The Function constructor is eval. (totalt 2 st)
- Parsing error: Unexpected token : (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)
- `< script>` in: #3: stockholm, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #3: stockholm, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `< script>` in: #44: index.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #44: index.html, antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script>` in: #60: g-C3-B6teborg, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #60: g-C3-B6teborg, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #27: svg4everybody.m, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #27: svg4everybody.m, antal fel: 10 ( 3.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #28: scripts.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #28: scripts.js, antal fel: 16 ( 1.80 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 14 st)
- Expected X and instead saw X. (totalt 2 st)
- `content-type=".*javascript.*"` in: #34: index.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #34: index.js, antal fel: 247 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 170 st)
- Expected X and instead saw X. (totalt 68 st)
- X is assigned to itself. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- `content-type=".*javascript.*"` in: #35: wrapperMessagin, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #35: wrapperMessagin, antal fel: 777 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 460 st)
- Expected X and instead saw X. (totalt 286 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- X is assigned to itself. (totalt 5 st)
- The Function constructor is eval. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: custom.ca802a38, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #36: custom.ca802a38, antal fel: 816 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 475 st)
- Expected X and instead saw X. (totalt 309 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- The Function constructor is eval. (totalt 6 st)
- X is assigned to itself. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- `content-type=".*javascript.*"` in: #37: gdpr-tcf.fd8d93, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #37: gdpr-tcf.fd8d93, antal fel: 1546 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 757 st)
- Expected X and instead saw X. (totalt 749 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- The Function constructor is eval. (totalt 7 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #47: polyfills.355e5, antal grupperade fel: 11 ( 2.80 betyg )
- `content-type=".*javascript.*"` in: #47: polyfills.355e5, antal fel: 1588 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 779 st)
- Expected X and instead saw X. (totalt 768 st)
- Do not access Object.prototype method X from target object. (totalt 9 st)
- The Function constructor is eval. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #48: Notice.64e5a.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #48: Notice.64e5a.js, antal fel: 2274 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1227 st)
- Expected X and instead saw X. (totalt 984 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- The Function constructor is eval. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \< . (totalt 6 st)
- Unnecessary escape character: \>. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #62: 5588.e53a177c.m, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #62: 5588.e53a177c.m, antal fel: 2275 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1228 st)
- Expected X and instead saw X. (totalt 984 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- The Function constructor is eval. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \< . (totalt 6 st)
- Unnecessary escape character: \>. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #63: 314.cee86989.m., antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #63: 314.cee86989.m., antal fel: 2276 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1229 st)
- Expected X and instead saw X. (totalt 984 st)
- Do not access Object.prototype method X from target object. (totalt 10 st)
- The Function constructor is eval. (totalt 8 st)
- Unsafe usage of ThrowStatement. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \< . (totalt 6 st)
- Unnecessary escape character: \>. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unsafe usage of ReturnStatement. (totalt 4 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \-. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Script URL is a form of eval. (totalt 1 st)