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.50 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: 608 ( 1.00 betyg )
- X is not defined. (totalt 489 st)
- X is defined but never used. (totalt 68 st)
- Unexpected console statement. (totalt 30 st)
- X is assigned a value but never used. (totalt 21 st)
- `< script>` in: #64: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #64: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #52: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #52: gtm.js, antal fel: 562 ( 1.00 betyg )
- X is defined but never used. (totalt 458 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 22 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: configuration.j, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #53: configuration.j, antal fel: 567 ( 1.00 betyg )
- X is defined but never used. (totalt 458 st)
- X is assigned a value but never used. (totalt 81 st)
- X is not defined. (totalt 27 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #54: cc.js, antal fel: 595 ( 1.00 betyg )
- X is defined but never used. (totalt 470 st)
- X is assigned a value but never used. (totalt 87 st)
- X is not defined. (totalt 36 st)
- Unexpected console statement. (totalt 2 st)
- `content-type=".*javascript.*"` in: #65: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #65: uc.js, antal fel: 642 ( 1.00 betyg )
- X is defined but never used. (totalt 490 st)
- X is assigned a value but never used. (totalt 102 st)
- X is not defined. (totalt 37 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #66: js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #66: js, antal fel: 1108 ( 1.00 betyg )
- X is defined but never used. (totalt 862 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 49 st)
- Unexpected console statement. (totalt 13 st)
- `content-type=".*javascript.*"` in: #69: dialog.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #69: dialog.min.js, antal fel: 1115 ( 1.00 betyg )
- X is defined but never used. (totalt 862 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 55 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #70: search-form.b70, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #70: search-form.b70, antal fel: 1117 ( 1.00 betyg )
- X is defined but never used. (totalt 862 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 57 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #71: nav-menu.997320, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #71: nav-menu.997320, antal fel: 1130 ( 1.00 betyg )
- X is defined but never used. (totalt 863 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 69 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #72: text-editor.c08, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #72: text-editor.c08, antal fel: 1133 ( 1.00 betyg )
- X is defined but never used. (totalt 863 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 72 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #73: load-more.376b5, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #73: load-more.376b5, antal fel: 1137 ( 1.00 betyg )
- X is defined but never used. (totalt 863 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 76 st)
- Unexpected console statement. (totalt 14 st)
- `content-type=".*javascript.*"` in: #74: posts.aec592653, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #74: posts.aec592653, antal fel: 1147 ( 1.00 betyg )
- X is defined but never used. (totalt 863 st)
- X is assigned a value but never used. (totalt 184 st)
- X is not defined. (totalt 86 st)
- Unexpected console statement. (totalt 14 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: 1727 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1272 st)
- Expected X and instead saw X. (totalt 408 st)
- Unnecessary escape character: \/. (totalt 10 st)
- Do not access Object.prototype method X from target object. (totalt 7 st)
- Unnecessary escape character: \-. (totalt 5 st)
- Comparing to itself is potentially pointless. (totalt 4 st)
- X is assigned to itself. (totalt 4 st)
- Unnecessary X. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary escape character: \.. (totalt 3 st)
- The Function constructor is eval. (totalt 3 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)
- `< script>` in: #64: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #64: 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: #52: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #52: gtm.js, antal fel: 1056 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 762 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #53: configuration.j, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #53: configuration.j, antal fel: 1056 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 762 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #54: cc.js, antal grupperade fel: 12 ( 2.60 betyg )
- `content-type=".*javascript.*"` in: #54: cc.js, antal fel: 1403 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1068 st)
- Expected X and instead saw X. (totalt 234 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Unnecessary escape character: \/. (totalt 11 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- Unnecessary escape character: \[. (totalt 1 st)
- `content-type=".*javascript.*"` in: #65: uc.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #65: uc.js, antal fel: 1755 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1309 st)
- Expected X and instead saw X. (totalt 336 st)
- Do not access Object.prototype method X from target object. (totalt 76 st)
- Unnecessary escape character: \/. (totalt 13 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)
- `content-type=".*javascript.*"` in: #66: js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #66: js, antal fel: 3176 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2410 st)
- Expected X and instead saw X. (totalt 555 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #69: dialog.min.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #69: dialog.min.js, antal fel: 3213 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2441 st)
- Expected X and instead saw X. (totalt 561 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #70: search-form.b70, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #70: search-form.b70, antal fel: 3219 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2447 st)
- Expected X and instead saw X. (totalt 561 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #71: nav-menu.997320, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #71: nav-menu.997320, antal fel: 3231 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2458 st)
- Expected X and instead saw X. (totalt 562 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #72: text-editor.c08, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #72: text-editor.c08, antal fel: 3235 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2462 st)
- Expected X and instead saw X. (totalt 562 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #73: load-more.376b5, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #73: load-more.376b5, antal fel: 3249 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2476 st)
- Expected X and instead saw X. (totalt 562 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)
- `content-type=".*javascript.*"` in: #74: posts.aec592653, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #74: posts.aec592653, antal fel: 3258 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2485 st)
- Expected X and instead saw X. (totalt 562 st)
- Do not access Object.prototype method X from target object. (totalt 163 st)
- Unnecessary escape character: \/. (totalt 16 st)
- X is not modified in this loop. (totalt 7 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 4 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 2 st)
- Unnecessary X. (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)