| Multiple Index Definition |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Minor |
25 % |
| String Initialization |
All, CompatibilityPHP71 |
4 |
2 |
Minor |
33 % |
| Ambiguous Visibilities |
All, Analyze |
2 |
2 |
Minor |
70 % |
| Avoid Optional Properties |
All, Analyze |
4 |
2 |
Major |
83 % |
| Class Could Be Final |
All, Analyze, ClassReview |
6 |
4 |
Minor |
95 % |
| Method Could Be Static |
All, Analyze, ClassReview |
7 |
1 |
Minor |
95 % |
| Don't Unset Properties |
All, Analyze, Top10, php-cs-fixable, CI-checks |
2 |
1 |
Major |
40 % |
| Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
7 |
2 |
Minor |
49 % |
| No Public Access |
Analyze, All |
36 |
1 |
Minor |
60 % |
| Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
13 |
3 |
Minor |
42 % |
| Var Keyword |
Analyze, OneFile, ClearPHP, All, Simple, Level 1 |
2 |
1 |
Minor |
22 % |
| Property Could Be Local |
All, Analyze, ClassReview |
10 |
2 |
Minor |
71 % |
| Property Used In One Method Only |
All, Analyze |
25 |
3 |
Minor |
84 % |
| Should Use Local Class |
Analyze, ClearPHP, All, Simple |
27 |
2 |
Minor |
94 % |
| Static Methods Called From Object |
Analyze, All, Simple, CI-checks |
7 |
3 |
Minor |
38 % |
| Undefined Classes |
Analyze, All |
8 |
2 |
Major |
91 % |
| Unresolved Classes |
Analyze, All |
2 |
2 |
Major |
86 % |
| Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10 |
3 |
1 |
Major |
48 % |
| Unused Class Constant |
All, Analyze, ClassReview |
3 |
2 |
Minor |
0 % |
| Unused Methods |
Dead code, All, Simple |
33 |
4 |
Minor |
95 % |
| Unused Private Methods |
Dead code, OneFile, All, Simple |
2 |
1 |
Minor |
45 % |
| Use Class Operator |
All, Analyze, Performances, Simple, CI-checks |
4 |
2 |
Minor |
74 % |
| Used Once Property |
All, Analyze |
2 |
1 |
Minor |
72 % |
| Illegal Name For Method |
All, Analyze, OneFile, Simple |
8 |
1 |
Major |
19 % |
| Use const |
Analyze, Coding Conventions, All, Top10, CI-checks |
10 |
1 |
Minor |
57 % |
| Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks |
22 |
1 |
Minor |
54 % |
| Uncaught Exceptions |
Analyze, All |
2 |
1 |
Minor |
81 % |
| Missing Include |
All, Analyze |
19 |
11 |
Critical |
61 % |
| Aliases Usage |
Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks |
10 |
2 |
Minor |
42 % |
| Use Named Boolean In Argument Definition |
All, Analyze |
15 |
2 |
Minor |
84 % |
| Could Make A Function |
All, Analyze, Suggestions |
20 |
1 |
Minor |
75 % |
| Deep Definitions |
Analyze, Appinfo, All, Simple |
1 |
1 |
Major |
12 % |
| Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3 |
4 |
3 |
Major |
61 % |
| Mismatched Default Arguments |
All, Analyze, Typechecks |
14 |
2 |
Minor |
33 % |
| Never Used Parameter |
All, Analyze, Suggestions |
24 |
4 |
Minor |
47 % |
| No Boolean As Default |
All, Analyze |
15 |
2 |
Minor |
84 % |
| No Literal For Reference |
All, Analyze, CI-checks |
2 |
1 |
Minor |
0 % |
| No Return Used |
All, Analyze, Suggestions, Level 4 |
2 |
1 |
Minor |
41 % |
| Only Variable For Reference |
All, Analyze, LintButWontExec |
2 |
1 |
Critical |
24 % |
| Too Many Local Variables |
All, Analyze |
1 |
1 |
Minor |
65 % |
| Undefined Functions |
Analyze, All, CI-checks |
182 |
11 |
Major |
71 % |
| Unused Arguments |
Analyze, All, Simple |
3 |
2 |
Major |
89 % |
| Unused Functions |
Dead code, All, Simple |
2 |
1 |
Minor |
53 % |
| Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple |
7 |
2 |
Minor |
39 % |
| Useless Referenced Argument |
All, Analyze |
4 |
1 |
Minor |
57 % |
| Uses Default Values |
Analyze, All, Simple, CI-checks |
259 |
11 |
Minor |
97 % |
| Methods Without Return |
All, Analyze |
69 |
5 |
Minor |
0 % |
| Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
1 |
1 |
Major |
38 % |
| Undefined Interfaces |
Analyze, All, CI-checks |
3 |
1 |
Major |
67 % |
| Logical To in_array |
All, Analyze, Level 2 |
3 |
3 |
Minor |
66 % |
| Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
10 |
1 |
Minor |
74 % |
| strpos() Too Much |
All, Analyze, CI-checks |
2 |
1 |
Minor |
46 % |
| Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks |
3 |
3 |
Major |
59 % |
| Deprecated Functions |
Analyze, All, CI-checks |
3 |
1 |
Major |
22 % |
| Don't Pollute Global Space |
All, Analyze |
63 |
6 |
Minor |
0 % |
| Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks |
9 |
3 |
Major |
45 % |
| Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks |
3 |
1 |
Minor |
52 % |
| Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks |
14 |
4 |
Minor |
42 % |
| No Class In Global |
All, Analyze, CI-checks |
46 |
5 |
Minor |
78 % |
| No More Curly Arrays |
All, CompatibilityPHP74 |
1 |
1 |
Minor |
0 % |
| PHP 7.0 Removed Functions |
CompatibilityPHP70, CompatibilityPHP71, All |
2 |
1 |
Major |
0 % |
| PHP 7.2 Deprecations |
All, CompatibilityPHP72 |
1 |
1 |
Major |
1 % |
| PHP 7.2 Removed Functions |
All, CompatibilityPHP72 |
1 |
1 |
Major |
1 % |
| PHP 7.4 Removed Functions |
All, CompatibilityPHP74 |
1 |
1 |
Critical |
0 % |
| PHP 8.0 Removed Functions |
All, CompatibilityPHP80 |
1 |
1 |
Major |
0 % |
| PHP Keywords As Names |
Analyze, All, Simple |
33 |
3 |
Major |
89 % |
| Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks |
1 |
1 |
Major |
71 % |
| Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
5 |
2 |
Major |
21 % |
| Use PHP Object API |
Analyze, ClearPHP, All, Simple, CI-checks |
2 |
1 |
Minor |
23 % |
| Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
7 |
1 |
Minor |
45 % |
| Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
23 |
2 |
Minor |
0 % |
| Always Anchor Regex |
All, Security |
6 |
1 |
Major |
65 % |
| Avoid Those Hash Functions |
Security, All |
14 |
4 |
Major |
60 % |
| Direct Injection |
Security, All |
1 |
1 |
Major |
41 % |
| Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks |
9 |
3 |
Critical |
32 % |
| Encoded Simple Letters |
All, Security |
2 |
1 |
Minor |
40 % |
| Indirect Injection |
Security, All |
28 |
3 |
Critical |
21 % |
| No Net For Xml Load |
All, Security |
6 |
4 |
Major |
49 % |
| No Weak SSL Crypto |
All, Security |
1 |
1 |
Minor |
0 % |
| Should Use session_regenerateid() |
All, Security |
1 |
1 |
Major |
82 % |
| Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
4 |
1 |
Minor |
33 % |
| Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
1 |
1 |
Major |
52 % |
| Array_merge Needs Array Of Arrays |
All, Analyze |
1 |
1 |
Minor |
0 % |
| Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
3 |
3 |
Minor |
92 % |
| Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
18 |
6 |
Minor |
76 % |
| Buried Assignation |
Analyze, All |
9 |
2 |
Minor |
82 % |
| Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
7 |
2 |
Minor |
55 % |
| Check All Types |
All, Analyze |
2 |
1 |
Major |
68 % |
| Check JSON |
All, Analyze, CI-checks |
1 |
1 |
Major |
64 % |
| Common Alternatives |
Analyze, All, Simple |
27 |
4 |
Major |
61 % |
| Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
2 |
1 |
Minor |
60 % |
| Dont Change The Blind Var |
All, Analyze |
1 |
1 |
Minor |
72 % |
| Don't Read And Write In One Expression |
All, Analyze, CompatibilityPHP73, CompatibilityPHP74 |
1 |
1 |
Critical |
38 % |
| Double Assignation |
Analyze, All |
6 |
3 |
Major |
55 % |
| Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks |
6 |
3 |
Minor |
70 % |
| Echo With Concat |
Performances, Analyze, All, Simple, Suggestions |
13 |
2 |
Minor |
58 % |
| Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks |
6 |
2 |
Minor |
65 % |
| Empty Blocks |
Analyze, All, Simple, CI-checks |
5 |
4 |
Minor |
57 % |
| Empty Instructions |
Dead code, Analyze, All, Simple |
181 |
8 |
Minor |
43 % |
| Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks |
14 |
6 |
Major |
60 % |
| Switch Fallthrough |
All, Inventory, Security, Stats |
2 |
1 |
Minor |
37 % |
| Htmlentities Calls |
Analyze, All, Simple, CI-checks |
7 |
1 |
Major |
39 % |
| Identical Consecutive Expression |
All, Analyze |
1 |
1 |
Minor |
58 % |
| Iffectations |
Analyze, All |
8 |
2 |
Minor |
80 % |
| Implied If |
Analyze, ClearPHP, All, Simple, CI-checks |
9 |
3 |
Major |
29 % |
| Implode() Arguments Order |
All, Analyze, CI-checks |
1 |
1 |
Minor |
0 % |
| Inconsistent Elseif |
All, Analyze |
5 |
2 |
Major |
73 % |
| Invalid Regex |
All, Analyze, CI-checks |
3 |
1 |
Major |
18 % |
| Long Arguments |
All, Analyze |
1 |
1 |
Minor |
67 % |
| Max Level Of Nesting |
All, Analyze |
5 |
2 |
Minor |
0 % |
| Merge If Then |
All, Analyze, CI-checks |
7 |
3 |
Minor |
0 % |
| Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4 |
2 |
1 |
Major |
62 % |
| Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
1 |
1 |
Minor |
43 % |
| Multiple Type Variable |
All, Analyze, Level 4 |
2 |
2 |
Minor |
43 % |
| Nested Ifthen |
Analyze, All, RadwellCodes |
12 |
3 |
Major |
87 % |
| Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
2 |
1 |
Major |
20 % |
| No Choice |
Analyze, All, Simple, Level 2, Top10, CI-checks |
3 |
3 |
Major |
43 % |
| No Need For Else |
All, Analyze |
7 |
3 |
Minor |
74 % |
| No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks |
23 |
12 |
Minor |
61 % |
| Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks |
9 |
2 |
Minor |
57 % |
| Variable Is Not A Condition |
All, Analyze |
26 |
4 |
Minor |
57 % |
| @ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
17 |
4 |
Minor |
66 % |
| Objects Don't Need References |
Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks |
2 |
1 |
Minor |
31 % |
| include_once() Usage |
Analyze, Appinfo, All |
4 |
2 |
Minor |
73 % |
| Several Instructions On The Same Line |
Analyze, All |
26 |
5 |
Major |
57 % |
| Or Die |
Analyze, OneFile, ClearPHP, All, Simple, CI-checks |
9 |
3 |
Minor |
13 % |
| Return True False |
Analyze, All, Simple, Level 1, CI-checks |
3 |
3 |
Major |
53 % |
| Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
15 |
4 |
Minor |
85 % |
| Preprocessable |
Analyze, All, Rector |
58 |
5 |
Minor |
86 % |
| Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
1 |
1 |
Major |
54 % |
| Switch To Switch |
Analyze, All, RadwellCodes, Simple |
6 |
3 |
Minor |
79 % |
| Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks |
5 |
3 |
Major |
68 % |
| Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
1 |
1 |
Major |
44 % |
| Use Positive Condition |
All, Analyze, OneFile, Simple |
12 |
3 |
Minor |
81 % |
| Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
2 |
1 |
Minor |
58 % |
| Useless Parenthesis |
Analyze, All, Simple, CI-checks |
18 |
2 |
Minor |
81 % |
| While(List() = Each()) |
Analyze, Performances, OneFile, All, Simple, Suggestions, Level 2, CI-checks |
1 |
1 |
Minor |
15 % |
| preg_replace With Option e |
Analyze, CompatibilityPHP70, Security, CompatibilityPHP71, All, Simple, CompatibilityPHP72, CI-checks |
3 |
1 |
Major |
8 % |
| String May Hold A Variable |
Analyze, All, Simple |
2 |
1 |
Minor |
58 % |
| Assigned Twice |
All, Analyze |
35 |
3 |
Minor |
78 % |
| Overwritten Literals |
Analyze, All |
44 |
3 |
Major |
78 % |
| Undefined Variable |
All, Analyze, CI-checks |
4 |
2 |
Minor |
77 % |
| Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
8 |
4 |
Minor |
87 % |
| Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
16 |
5 |
Minor |
95 % |
| Written Only Variables |
Analyze, OneFile, All, Simple |
10 |
2 |
Minor |
78 % |