Ambiguous Static |
All, Analyze |
16 |
12 |
Minor |
64 % |
Ambiguous Visibilities |
All, Analyze |
56 |
31 |
Minor |
70 % |
Anonymous Classes |
Appinfo, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
4 |
3 |
Major |
15 % |
Avoid Optional Properties |
All, Analyze |
4 |
4 |
Major |
83 % |
Const Visibility Usage |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
3 |
1 |
Minor |
16 % |
Class Could Be Final |
All, Analyze, ClassReview |
72 |
68 |
Minor |
95 % |
Method Could Be Static |
All, Analyze, ClassReview |
23 |
16 |
Minor |
95 % |
Don't Unset Properties |
All, Analyze, Top10, php-cs-fixable, CI-checks |
3 |
3 |
Major |
40 % |
Class Should Be Final By Ocramius |
All, Analyze |
1 |
1 |
Minor |
42 % |
Hidden Nullable |
All, Analyze, ClassReview |
95 |
27 |
Minor |
0 % |
Locally Unused Property |
Dead code, All, Simple |
6 |
2 |
Minor |
76 % |
No Public Access |
Analyze, All |
23 |
11 |
Minor |
60 % |
Non Nullable Getters |
All, Analyze, ClassReview |
11 |
11 |
Minor |
0 % |
Parent First |
All, Analyze, Suggestions |
1 |
1 |
Minor |
55 % |
Property Could Be Local |
All, Analyze, ClassReview |
25 |
19 |
Minor |
71 % |
Never Used Properties |
Analyze, All, Simple |
6 |
2 |
Minor |
72 % |
Property Used In One Method Only |
All, Analyze |
6 |
4 |
Minor |
84 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
43 |
29 |
Minor |
94 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks |
1 |
1 |
Minor |
38 % |
Undefined Classes |
Analyze, All |
138 |
48 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks |
6 |
4 |
Major |
53 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks |
24 |
1 |
Major |
58 % |
Undefined static:: Or self:: |
Analyze, All, Simple |
1 |
1 |
Minor |
33 % |
Unresolved Catch |
Dead code, ClearPHP, All |
3 |
3 |
Major |
51 % |
Unresolved Classes |
Analyze, All |
12 |
9 |
Major |
86 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10 |
23 |
14 |
Major |
48 % |
Unused Classes |
Dead code, All, Simple, Analyze |
1 |
1 |
Major |
72 % |
Unused Class Constant |
All, Analyze, ClassReview |
4 |
2 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple |
131 |
52 |
Minor |
95 % |
Unused Protected Methods |
Dead code, All |
10 |
4 |
Major |
72 % |
Use Instanceof |
Analyze, All, Simple, CI-checks |
3 |
3 |
Major |
63 % |
Used Once Property |
All, Analyze |
4 |
4 |
Minor |
72 % |
Can't Throw Throwable |
All, Analyze, LintButWontExec |
1 |
1 |
Minor |
13 % |
Catch Undefined Variable |
All, Analyze |
3 |
1 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All |
4 |
4 |
None |
50 % |
Forgotten Thrown |
All, Analyze |
5 |
3 |
Major |
30 % |
Uncaught Exceptions |
Analyze, All |
11 |
9 |
Minor |
81 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple |
4 |
4 |
Minor |
43 % |
Use Named Boolean In Argument Definition |
All, Analyze |
11 |
6 |
Minor |
84 % |
Empty Function |
Analyze, All, Simple |
6 |
4 |
Minor |
71 % |
Insufficient Typehint |
All, Analyze, Typechecks |
10 |
8 |
Major |
24 % |
Mismatch Parameter Name |
All, Analyze, CompatibilityPHP80 |
5 |
2 |
Minor |
0 % |
Mismatched Default Arguments |
All, Analyze, Typechecks |
9 |
5 |
Minor |
33 % |
Mismatched Typehint |
All, Analyze, Typechecks |
41 |
11 |
Major |
5 % |
Modified Typed Parameter |
All, Analyze, ClassReview |
4 |
4 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks |
2 |
2 |
Major |
22 % |
Never Used Parameter |
All, Analyze, Suggestions |
33 |
21 |
Minor |
47 % |
No Boolean As Default |
All, Analyze |
11 |
6 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4 |
8 |
5 |
Minor |
41 % |
Relay Function |
Analyze, All |
16 |
12 |
Major |
83 % |
Typehint Must Be Returned |
All, Analyze, LintButWontExec, CI-checks |
2 |
2 |
Major |
10 % |
Undefined Functions |
Analyze, All, CI-checks |
64 |
30 |
Major |
71 % |
Unused Arguments |
Analyze, All, Simple |
13 |
9 |
Major |
89 % |
Uses Default Values |
Analyze, All, Simple, CI-checks |
49 |
23 |
Minor |
97 % |
Methods Without Return |
All, Analyze |
77 |
33 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
48 |
25 |
Major |
38 % |
Wrong Returned Type |
All, Analyze, ClassReview, CI-checks |
12 |
9 |
Minor |
0 % |
Empty Interfaces |
Analyze, All, Simple |
8 |
8 |
Minor |
38 % |
Interfaces Don't Ensure Properties |
All, Analyze, ClassReview |
2 |
1 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, CI-checks |
68 |
38 |
Major |
67 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
1 |
1 |
Minor |
57 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks |
19 |
16 |
Minor |
42 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple |
82 |
51 |
Major |
65 % |
Unused Use |
Dead code, ClearPHP, All, Simple |
27 |
14 |
Major |
54 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
1 |
1 |
Major |
55 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
5 |
4 |
Minor |
74 % |
Assumptions |
All, Analyze |
1 |
1 |
Minor |
0 % |
Wrong fopen() Mode |
Analyze, All, CI-checks |
2 |
2 |
Major |
16 % |
PHP 7.0 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
158 |
60 |
Critical |
31 % |
Php7 Relaxed Keyword |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
7 |
5 |
Major |
25 % |
PHP Keywords As Names |
Analyze, All, Simple |
11 |
3 |
Major |
89 % |
Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
79 |
31 |
Major |
21 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
7 |
5 |
Minor |
0 % |
Mkdir Default |
All, Security |
1 |
1 |
Major |
35 % |
No Net For Xml Load |
All, Security |
3 |
3 |
Major |
49 % |
Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
2 |
1 |
Minor |
33 % |
Constant Comparison |
All, Analyze |
17 |
7 |
Minor |
0 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
1 |
1 |
Minor |
76 % |
Buried Assignation |
Analyze, All |
6 |
5 |
Minor |
82 % |
Check JSON |
All, Analyze, CI-checks |
1 |
1 |
Major |
64 % |
Common Alternatives |
Analyze, All, Simple |
1 |
1 |
Major |
61 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
5 |
3 |
Minor |
60 % |
Dont Change The Blind Var |
All, Analyze |
3 |
2 |
Minor |
72 % |
Don't Read And Write In One Expression |
All, Analyze, CompatibilityPHP73, CompatibilityPHP74 |
1 |
1 |
Critical |
38 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks |
1 |
1 |
Minor |
70 % |
Empty Instructions |
Dead code, Analyze, All, Simple |
2 |
2 |
Minor |
43 % |
Empty Try Catch |
Analyze, All, Level 3 |
2 |
1 |
Minor |
47 % |
Iffectations |
Analyze, All |
3 |
1 |
Minor |
80 % |
Inconsistent Elseif |
All, Analyze |
1 |
1 |
Major |
73 % |
Infinite Recursion |
All, Analyze |
7 |
3 |
Major |
0 % |
Missing New ? |
All, Analyze |
11 |
11 |
Critical |
5 % |
Multiply By One |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
1 |
1 |
Minor |
17 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
2 |
1 |
Major |
87 % |
No Need For Else |
All, Analyze |
2 |
1 |
Minor |
74 % |
Variable Is Not A Condition |
All, Analyze |
17 |
11 |
Minor |
57 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
1 |
1 |
Minor |
66 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks |
1 |
1 |
Minor |
36 % |
Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
1 |
1 |
Minor |
85 % |
Preprocessable |
Analyze, All, Rector |
1 |
1 |
Minor |
86 % |
Suspicious Comparison |
All, Analyze, Level 3 |
3 |
2 |
Major |
15 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks |
1 |
1 |
Major |
68 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
9 |
5 |
Major |
44 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
1 |
1 |
Minor |
81 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
23 |
7 |
Minor |
58 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks |
11 |
9 |
Minor |
81 % |
Dependant Trait |
Analyze, All, Level 3 |
6 |
6 |
Minor |
26 % |
Trait Not Found |
All, Analyze, LintButWontExec |
2 |
2 |
Minor |
0 % |
String May Hold A Variable |
Analyze, All, Simple |
1 |
1 |
Minor |
58 % |
Missing Returntype In Method |
All, Typehints, Analyze, CI-checks |
21 |
14 |
Minor |
0 % |
Assigned Twice |
All, Analyze |
2 |
1 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
2 |
1 |
Major |
78 % |
Undefined Variable |
All, Analyze, CI-checks |
8 |
1 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
1 |
1 |
Minor |
87 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
25 |
10 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple |
4 |
3 |
Minor |
78 % |