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.84 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: 94 ( 1.00 betyg )
- X is defined but never used. (totalt 86 st)
- Unexpected console statement. (totalt 6 st)
- X is assigned a value but never used. (totalt 1 st)
- X is not defined. (totalt 1 st)
- `< script>` in: #14: product-frame, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #14: product-frame, antal fel: 1 ( 4.80 betyg )
- X is not defined. (totalt 1 st)
- `< script src="...">` in: #14: product-frame, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #14: product-frame, antal fel: 77 ( 1.00 betyg )
- X is defined but never used. (totalt 54 st)
- X is assigned a value but never used. (totalt 10 st)
- Unexpected console statement. (totalt 10 st)
- X is not defined. (totalt 3 st)
- `< script src="...">` in: #15: product-modal, antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #15: product-modal, antal fel: 76 ( 1.00 betyg )
- X is defined but never used. (totalt 53 st)
- X is assigned a value but never used. (totalt 10 st)
- Unexpected console statement. (totalt 10 st)
- X is not defined. (totalt 3 st)
- `< script>` in: #38: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #38: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `< script>` in: #39: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: inner.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #6: index.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #6: index.min.js, antal fel: 6 ( 3.80 betyg )
- X is defined but never used. (totalt 6 st)
- `content-type=".*javascript.*"` in: #19: checkout-app.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #19: checkout-app.js, antal fel: 7 ( 3.60 betyg )
- X is defined but never used. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: checkout-app.js, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #23: checkout-app.js, antal fel: 8 ( 3.40 betyg )
- X is defined but never used. (totalt 6 st)
- Parsing error: Unexpected token : (totalt 2 st)
- `content-type=".*javascript.*"` in: #40: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: out-4.5.44.js, antal fel: 142 ( 1.00 betyg )
- X is defined but never used. (totalt 115 st)
- X is not defined. (totalt 24 st)
- Parsing error: Unexpected token : (totalt 2 st)
- X is assigned a value but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: out-4.5.44.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #41: out-4.5.44.js, antal fel: 276 ( 1.00 betyg )
- X is defined but never used. (totalt 224 st)
- X is not defined. (totalt 48 st)
- Parsing error: Unexpected token : (totalt 2 st)
- X is assigned a value but never used. (totalt 2 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: 13 ( 2.40 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 770 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 577 st)
- Expected X and instead saw X. (totalt 171 st)
- Unnecessary X. (totalt 5 st)
- The Function constructor is eval. (totalt 3 st)
- Unnecessary escape character: \/. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary escape character: \-. (totalt 2 st)
- Unnecessary escape character: \}. (totalt 2 st)
- eval can be harmful. (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)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `< script>` in: #14: product-frame, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #14: product-frame, antal fel: 1 ( 4.80 betyg )
- Unnecessary escape character: \/. (totalt 1 st)
- `< script src="...">` in: #14: product-frame, antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #14: product-frame, antal fel: 1536 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 880 st)
- Expected X and instead saw X. (totalt 606 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `< script>` in: #15: product-modal, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #15: product-modal, antal fel: 1 ( 4.80 betyg )
- Unnecessary escape character: \/. (totalt 1 st)
- `< script src="...">` in: #15: product-modal, antal grupperade fel: 8 ( 3.40 betyg )
- `< script src="...">` in: #15: product-modal, antal fel: 1525 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 873 st)
- Expected X and instead saw X. (totalt 602 st)
- Do not access Object.prototype method X from target object. (totalt 42 st)
- The Function constructor is eval. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Unnecessary X. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `< script src="...">` in: #34: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #34: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script src="...">` in: #35: m-outer-3437aad, antal grupperade fel: 1 ( 4.80 betyg )
- `< script src="...">` in: #35: m-outer-3437aad, antal fel: 2 ( 4.60 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2 st)
- `< script>` in: #38: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #38: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `< script>` in: #39: inner.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #39: inner.html, antal fel: 3 ( 4.40 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 3 st)
- `content-type=".*javascript.*"` in: #6: index.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #6: index.min.js, antal fel: 341 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 177 st)
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: checkout-app.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #19: checkout-app.js, antal fel: 342 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 177 st)
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- Parsing error: Unexpected token : (totalt 1 st)
- `content-type=".*javascript.*"` in: #23: checkout-app.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #23: checkout-app.js, antal fel: 343 ( 1.00 betyg )
- Expected X and instead saw X. (totalt 177 st)
- Expected an assignment or function call and instead saw an expression. (totalt 162 st)
- Parsing error: Unexpected token : (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: out-4.5.44.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #40: out-4.5.44.js, antal fel: 767 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 415 st)
- Expected X and instead saw X. (totalt 342 st)
- Parsing error: Unexpected token : (totalt 2 st)
- The Function constructor is eval. (totalt 2 st)
- Unnecessary X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- Unsafe usage of ThrowStatement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #41: out-4.5.44.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #41: out-4.5.44.js, antal fel: 1191 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 668 st)
- Expected X and instead saw X. (totalt 507 st)
- The Function constructor is eval. (totalt 4 st)
- Unnecessary X. (totalt 4 st)
- Parsing error: Unexpected token : (totalt 2 st)
- X is not modified in this loop. (totalt 2 st)
- Unsafe usage of ThrowStatement. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- Unnecessary escape character: \/. (totalt 1 st)