| Avoid Optional Properties |
All, Analyze |
5 |
2 |
Major |
83 % |
| Cant Instantiate Class |
All, Analyze |
10 |
2 |
Critical |
28 % |
| Could Be Abstract Class |
All, Analyze, ClassReview |
1 |
1 |
Minor |
65 % |
| Class Could Be Final |
All, Analyze, ClassReview |
19 |
19 |
Minor |
95 % |
| Method Could Be Static |
All, Analyze, ClassReview |
3 |
2 |
Minor |
95 % |
| Different Argument Counts |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
| Don't Unset Properties |
All, Analyze, Top10, php-cs-fixable, CI-checks |
165 |
18 |
Major |
40 % |
| Incompatible Signature Methods With Covariance |
All, Analyze |
18 |
2 |
Critical |
0 % |
| Locally Unused Property |
Dead code, All, Simple |
1 |
1 |
Minor |
76 % |
| Method Signature Must Be Compatible |
All, Analyze, LintButWontExec |
1 |
1 |
Critical |
50 % |
| Non Nullable Getters |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
| Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
9 |
1 |
Minor |
42 % |
| Parent First |
All, Analyze, Suggestions |
1 |
1 |
Minor |
55 % |
| Never Used Properties |
Analyze, All, Simple |
1 |
1 |
Minor |
72 % |
| Should Use Local Class |
Analyze, ClearPHP, All, Simple |
4 |
3 |
Minor |
94 % |
| Undefined Classes |
Analyze, All |
94 |
18 |
Major |
91 % |
| Unresolved Classes |
Analyze, All |
2 |
1 |
Major |
86 % |
| Unused Class Constant |
All, Analyze, ClassReview |
23 |
5 |
Minor |
0 % |
| Unused Methods |
Dead code, All, Simple |
195 |
21 |
Minor |
95 % |
| Useless Constructor |
Analyze, All, Simple, Level 3 |
4 |
4 |
Minor |
38 % |
| Uncaught Exceptions |
Analyze, All |
2 |
2 |
Minor |
81 % |
| Use Named Boolean In Argument Definition |
All, Analyze |
6 |
4 |
Minor |
84 % |
| Empty Function |
Analyze, All, Simple |
6 |
4 |
Minor |
71 % |
| Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3 |
1 |
1 |
Major |
61 % |
| Mismatched Default Arguments |
All, Analyze, Typechecks |
4 |
2 |
Minor |
33 % |
| Never Used Parameter |
All, Analyze, Suggestions |
7 |
4 |
Minor |
47 % |
| No Boolean As Default |
All, Analyze |
6 |
4 |
Minor |
84 % |
| Relay Function |
Analyze, All |
16 |
11 |
Major |
83 % |
| Undefined Functions |
Analyze, All, CI-checks |
16 |
4 |
Major |
71 % |
| Unused Arguments |
Analyze, All, Simple |
1 |
1 |
Major |
89 % |
| Useless Referenced Argument |
All, Analyze |
4 |
3 |
Minor |
57 % |
| Uses Default Values |
Analyze, All, Simple, CI-checks |
24 |
10 |
Minor |
97 % |
| Using Deprecated Method |
All, Analyze |
16 |
1 |
Minor |
0 % |
| Methods Without Return |
All, Analyze |
180 |
19 |
Minor |
0 % |
| Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
3 |
1 |
Major |
38 % |
| Wrong Returned Type |
All, Analyze, ClassReview, CI-checks |
3 |
1 |
Minor |
0 % |
| Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
1 |
1 |
Minor |
57 % |
| Unresolved Use |
Analyze, ClearPHP, All, Simple |
23 |
18 |
Major |
65 % |
| Unused Use |
Dead code, ClearPHP, All, Simple |
1 |
1 |
Major |
54 % |
| array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze |
1 |
1 |
Minor |
0 % |
| Detect Current Class |
All, Suggestions, CompatibilityPHP74 |
37 |
5 |
None |
47 % |
| PHP 7.0 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
27 |
7 |
Critical |
31 % |
| PHP Keywords As Names |
Analyze, All, Simple |
315 |
16 |
Major |
89 % |
| Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
36 |
9 |
Major |
21 % |
| Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
78 |
16 |
Minor |
45 % |
| Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
1 |
1 |
Minor |
0 % |
| Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
1 |
1 |
Minor |
92 % |
| Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
10 |
4 |
Minor |
76 % |
| Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
1 |
1 |
Minor |
55 % |
| Check All Types |
All, Analyze |
11 |
4 |
Major |
68 % |
| Common Alternatives |
Analyze, All, Simple |
6 |
1 |
Major |
61 % |
| Dangling Array References |
PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks |
3 |
2 |
Major |
40 % |
| Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks |
1 |
1 |
Minor |
70 % |
| Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks |
18 |
4 |
Minor |
65 % |
| Foreach Reference Is Not Modified |
Analyze, All, Simple, CI-checks |
9 |
3 |
Minor |
24 % |
| Identical Consecutive Expression |
All, Analyze |
4 |
2 |
Minor |
58 % |
| Infinite Recursion |
All, Analyze |
6 |
1 |
Major |
0 % |
| Max Level Of Nesting |
All, Analyze |
1 |
1 |
Minor |
0 % |
| Merge If Then |
All, Analyze, CI-checks |
7 |
4 |
Minor |
0 % |
| Missing New ? |
All, Analyze |
21 |
18 |
Critical |
5 % |
| Nested Ifthen |
Analyze, All, RadwellCodes |
9 |
2 |
Major |
87 % |
| No Need For Else |
All, Analyze |
1 |
1 |
Minor |
74 % |
| No Need For Triple Equal |
All, Analyze |
17 |
9 |
Minor |
0 % |
| No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks |
24 |
1 |
Minor |
61 % |
| Variable Is Not A Condition |
All, Analyze |
18 |
7 |
Minor |
57 % |
| Objects Don't Need References |
Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks |
6 |
3 |
Minor |
31 % |
| include_once() Usage |
Analyze, Appinfo, All |
24 |
1 |
Minor |
73 % |
| Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
5 |
2 |
Minor |
85 % |
| Preprocessable |
Analyze, All, Rector |
2 |
2 |
Minor |
86 % |
| Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80 |
1 |
1 |
Minor |
0 % |
| Use Positive Condition |
All, Analyze, OneFile, Simple |
4 |
3 |
Minor |
81 % |
| Useless Parenthesis |
Analyze, All, Simple, CI-checks |
6 |
3 |
Minor |
81 % |
| String May Hold A Variable |
Analyze, All, Simple |
1 |
1 |
Minor |
58 % |
| Assigned Twice |
All, Analyze |
2 |
1 |
Minor |
78 % |
| Overwritten Literals |
Analyze, All |
2 |
1 |
Major |
78 % |
| Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
1 |
1 |
Minor |
95 % |