| Null Or Boolean Arrays |
All, Analyze |
1 |
1 |
Minor |
0 % |
| String Initialization |
All, CompatibilityPHP71 |
12 |
5 |
Minor |
33 % |
| Too Many Array Dimensions |
All, Analyze |
1 |
1 |
Minor |
0 % |
| Abstract Or Implements |
All, Analyze, LintButWontExec |
1 |
1 |
Major |
4 % |
| Ambiguous Static |
All, Analyze |
32 |
25 |
Minor |
64 % |
| Ambiguous Visibilities |
All, Analyze |
99 |
45 |
Minor |
70 % |
| Avoid option arrays in constructors |
All, Analyze, ClassReview |
3 |
3 |
Minor |
0 % |
| Avoid Optional Properties |
All, Analyze |
121 |
45 |
Major |
83 % |
| Cant Inherit Abstract Method |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
6 |
6 |
Critical |
0 % |
| Cant Instantiate Class |
All, Analyze |
5 |
5 |
Critical |
28 % |
| Child Class Removes Typehint |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Typechecks |
7 |
6 |
Major |
1 % |
| Const Visibility Usage |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
97 |
18 |
Minor |
16 % |
| Constant Class |
Analyze, All, Simple, CI-checks |
8 |
8 |
Minor |
49 % |
| Could Be Abstract Class |
All, Analyze, ClassReview |
2 |
2 |
Minor |
65 % |
| Class Could Be Final |
All, Analyze, ClassReview |
132 |
132 |
Minor |
95 % |
| Method Could Be Static |
All, Analyze, ClassReview |
48 |
33 |
Minor |
95 % |
| Cyclic References |
All, Analyze, ClassReview |
9 |
5 |
Minor |
0 % |
| Dependant Abstract Classes |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
| Different Argument Counts |
All, Analyze, ClassReview |
13 |
13 |
Minor |
0 % |
| No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks |
3 |
2 |
Major |
41 % |
| Don't Send $this In Constructor |
All, Analyze |
1 |
1 |
Minor |
39 % |
| Empty Classes |
Analyze, All, Simple |
1 |
1 |
Minor |
58 % |
| Class Should Be Final By Ocramius |
All, Analyze |
12 |
12 |
Minor |
42 % |
| Hidden Nullable |
All, Analyze, ClassReview |
66 |
33 |
Minor |
0 % |
| Incompatible Signature Methods With Covariance |
All, Analyze |
18 |
18 |
Critical |
0 % |
| Instantiating Abstract Class |
Analyze, All, Simple |
4 |
4 |
Major |
9 % |
| Locally Unused Property |
Dead code, All, Simple |
21 |
7 |
Minor |
76 % |
| Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
45 |
24 |
Minor |
49 % |
| Make Global A Property |
Analyze, All, Simple |
2 |
1 |
Minor |
33 % |
| Method Signature Must Be Compatible |
All, Analyze, LintButWontExec |
81 |
49 |
Critical |
50 % |
| No Public Access |
Analyze, All |
2 |
2 |
Minor |
60 % |
| Non Nullable Getters |
All, Analyze, ClassReview |
18 |
12 |
Minor |
0 % |
| Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
1 |
1 |
Minor |
42 % |
| Parent First |
All, Analyze, Suggestions |
3 |
3 |
Minor |
55 % |
| Property Could Be Local |
All, Analyze, ClassReview |
56 |
25 |
Minor |
71 % |
| Never Used Properties |
Analyze, All, Simple |
15 |
6 |
Minor |
72 % |
| Property Used In One Method Only |
All, Analyze |
40 |
21 |
Minor |
84 % |
| Redefined Class Constants |
Analyze, All, Simple, CI-checks |
2 |
2 |
Minor |
15 % |
| Scalar Or Object Property |
All, Analyze |
2 |
2 |
Minor |
24 % |
| Should Use Local Class |
Analyze, ClearPHP, All, Simple |
72 |
41 |
Minor |
94 % |
| Undefined Classes |
Analyze, All |
156 |
39 |
Major |
91 % |
| Undefined Class Constants |
Analyze, All, CI-checks |
40 |
8 |
Major |
53 % |
| Undefined Parent |
Analyze, All, Simple |
1 |
1 |
Minor |
63 % |
| Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks |
3 |
2 |
Major |
58 % |
| Unresolved Catch |
Dead code, ClearPHP, All |
1 |
1 |
Major |
51 % |
| Unresolved Classes |
Analyze, All |
50 |
13 |
Major |
86 % |
| Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10 |
2 |
1 |
Major |
48 % |
| Unused Classes |
Dead code, All, Simple, Analyze |
17 |
17 |
Major |
72 % |
| Unused Class Constant |
All, Analyze, ClassReview |
112 |
9 |
Minor |
0 % |
| Unused Methods |
Dead code, All, Simple |
372 |
83 |
Minor |
95 % |
| Unused Private Methods |
Dead code, OneFile, All, Simple |
15 |
7 |
Minor |
45 % |
| Unused Private Properties |
Dead code, OneFile, All, Simple |
8 |
7 |
Minor |
37 % |
| Unused Protected Methods |
Dead code, All |
9 |
4 |
Major |
72 % |
| Use Instanceof |
Analyze, All, Simple, CI-checks |
4 |
3 |
Major |
63 % |
| Used Once Property |
All, Analyze |
21 |
15 |
Minor |
72 % |
| Useless Abstract Class |
Analyze, All, Simple |
3 |
3 |
Minor |
60 % |
| Useless Constructor |
Analyze, All, Simple, Level 3 |
5 |
5 |
Minor |
38 % |
| Weak Typing |
All, Analyze |
1 |
1 |
Minor |
41 % |
| Illegal Name For Method |
All, Analyze, OneFile, Simple |
1 |
1 |
Major |
19 % |
| Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks |
38 |
20 |
Minor |
54 % |
| Catch Undefined Variable |
All, Analyze |
3 |
1 |
Minor |
0 % |
| Undefined Caught Exceptions |
Dead code, All |
1 |
1 |
None |
50 % |
| Rethrown Exceptions |
All, Dead code |
1 |
1 |
Minor |
18 % |
| Uncaught Exceptions |
Analyze, All |
192 |
54 |
Minor |
81 % |
| Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple |
6 |
6 |
Minor |
43 % |
| Useless Catch |
All, Analyze, CI-checks |
2 |
2 |
Minor |
47 % |
| Use Named Boolean In Argument Definition |
All, Analyze |
56 |
37 |
Minor |
84 % |
| Callback Needs Return |
All, Analyze, CI-checks |
1 |
1 |
Major |
51 % |
| Could Make A Function |
All, Analyze, Suggestions |
174 |
57 |
Minor |
75 % |
| Empty Function |
Analyze, All, Simple |
17 |
14 |
Minor |
71 % |
| Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3 |
4 |
3 |
Major |
61 % |
| Insufficient Typehint |
All, Analyze, Typechecks |
3 |
3 |
Major |
24 % |
| Mismatch Parameter Name |
All, Analyze, CompatibilityPHP80 |
12 |
10 |
Minor |
0 % |
| Mismatched Default Arguments |
All, Analyze, Typechecks |
54 |
29 |
Minor |
33 % |
| Mismatched Typehint |
All, Analyze, Typechecks |
12 |
12 |
Major |
5 % |
| Modified Typed Parameter |
All, Analyze, ClassReview |
7 |
4 |
Minor |
0 % |
| Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks |
1 |
1 |
Major |
22 % |
| Never Used Parameter |
All, Analyze, Suggestions |
108 |
67 |
Minor |
47 % |
| No Boolean As Default |
All, Analyze |
56 |
37 |
Minor |
84 % |
| No Return Used |
All, Analyze, Suggestions, Level 4 |
65 |
25 |
Minor |
41 % |
| Only Variable Passed By Reference |
All, Analyze |
1 |
1 |
Critical |
40 % |
| Relay Function |
Analyze, All |
16 |
7 |
Major |
83 % |
| Too Many Local Variables |
All, Analyze |
1 |
1 |
Minor |
65 % |
| Typehint Must Be Returned |
All, Analyze, LintButWontExec, CI-checks |
1 |
1 |
Major |
10 % |
| Undefined Functions |
Analyze, All, CI-checks |
284 |
59 |
Major |
71 % |
| Unused Arguments |
Analyze, All, Simple |
4 |
4 |
Major |
89 % |
| Useless Referenced Argument |
All, Analyze |
3 |
3 |
Minor |
57 % |
| Useless Type Check |
All, Dead code, OneFile |
1 |
1 |
Minor |
0 % |
| Uses Default Values |
Analyze, All, Simple, CI-checks |
567 |
83 |
Minor |
97 % |
| Methods Without Return |
All, Analyze |
82 |
34 |
Minor |
0 % |
| Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks |
31 |
18 |
Major |
38 % |
| Wrong Returned Type |
All, Analyze, ClassReview, CI-checks |
66 |
24 |
Minor |
0 % |
| Wrong Type With Call |
All, Analyze, Typechecks, CI-checks |
17 |
4 |
Minor |
0 % |
| Forgotten Interface |
All, Analyze |
3 |
3 |
Minor |
52 % |
| Empty Interfaces |
Analyze, All, Simple |
3 |
3 |
Minor |
38 % |
| Interfaces Is Not Implemented |
All, Analyze, ClassReview, LintButWontExec, CI-checks |
1 |
1 |
Minor |
0 % |
| Undefined Interfaces |
Analyze, All, CI-checks |
64 |
25 |
Major |
67 % |
| Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
8 |
8 |
Minor |
57 % |
| Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks |
2 |
1 |
Minor |
44 % |
| Unused Use |
Dead code, ClearPHP, All, Simple |
26 |
19 |
Major |
54 % |
| No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
6 |
5 |
Major |
55 % |
| Logical To in_array |
All, Analyze, Level 2 |
8 |
6 |
Minor |
66 % |
| Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks |
5 |
3 |
Minor |
74 % |
| strpos() Too Much |
All, Analyze, CI-checks |
5 |
4 |
Minor |
46 % |
| array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze |
31 |
13 |
Minor |
0 % |
| Assumptions |
All, Analyze |
13 |
8 |
Minor |
0 % |
| Avoid mb_dectect_encoding() |
All, Analyze |
2 |
2 |
Minor |
0 % |
| Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks |
14 |
3 |
Major |
59 % |
| Detect Current Class |
All, Suggestions, CompatibilityPHP74 |
1 |
1 |
None |
47 % |
| Don't Pollute Global Space |
All, Analyze |
11 |
2 |
Minor |
0 % |
| Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks |
28 |
17 |
Major |
45 % |
| Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks |
28 |
19 |
Minor |
52 % |
| List Short Syntax |
Internal, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Appinfo |
4 |
3 |
Major |
10 % |
| Possible Missing Subpattern |
All, Analyze, Top10, CI-checks |
4 |
3 |
Minor |
40 % |
| No More Curly Arrays |
All, CompatibilityPHP74 |
1 |
1 |
Minor |
0 % |
| PHP 7.0 Scalar Typehints |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
339 |
70 |
Critical |
31 % |
| PHP Keywords As Names |
Analyze, All, Simple |
154 |
33 |
Major |
89 % |
| Scalar Are Not Arrays |
All, Analyze, CompatibilityPHP74, CI-checks |
7 |
2 |
Minor |
0 % |
| Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks |
8 |
6 |
Major |
71 % |
| Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
163 |
68 |
Major |
21 % |
| Should Use SetCookie() |
All, Analyze |
1 |
1 |
Major |
6 % |
| Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
49 |
12 |
Minor |
45 % |
| Usort Sorting In PHP 7.0 |
CompatibilityPHP70, All |
1 |
1 |
Major |
46 % |
| Wrong Type For Native PHP Function |
All, Analyze, CI-checks |
64 |
33 |
Minor |
0 % |
| Avoid Those Hash Functions |
Security, All |
8 |
4 |
Major |
60 % |
| Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks |
1 |
1 |
Critical |
32 % |
| Encoded Simple Letters |
All, Security |
17 |
4 |
Minor |
40 % |
| Keep Files Access Restricted |
All, Security |
4 |
2 |
Minor |
0 % |
| Mkdir Default |
All, Security |
2 |
2 |
Major |
35 % |
| No Net For Xml Load |
All, Security |
3 |
2 |
Major |
49 % |
| Session Lazy Write |
All, Security |
1 |
1 |
Major |
4 % |
| Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks |
2 |
2 |
Major |
22 % |
| Should Use session_regenerateid() |
All, Security |
1 |
1 |
Major |
82 % |
| Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
29 |
8 |
Minor |
33 % |
| Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
2 |
2 |
Major |
52 % |
| Constant Comparison |
All, Analyze |
11 |
6 |
Minor |
0 % |
| Array_merge Needs Array Of Arrays |
All, Analyze |
4 |
3 |
Minor |
0 % |
| Assign And Compare |
All, Analyze, CI-checks |
1 |
1 |
Minor |
17 % |
| Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
14 |
9 |
Minor |
92 % |
| Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks |
30 |
12 |
Minor |
76 % |
| Buried Assignation |
Analyze, All |
94 |
27 |
Minor |
82 % |
| Casting Ternary |
All, Analyze, OneFile, CI-checks |
1 |
1 |
Major |
0 % |
| Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Minor |
23 % |
| Check All Types |
All, Analyze |
18 |
4 |
Major |
68 % |
| Common Alternatives |
Analyze, All, Simple |
7 |
5 |
Major |
61 % |
| Could Be Else |
All, Analyze |
4 |
4 |
Minor |
48 % |
| Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks |
1 |
1 |
Minor |
60 % |
| Dont Change The Blind Var |
All, Analyze |
20 |
13 |
Minor |
72 % |
| Dont Mix ++ |
All, Analyze |
8 |
7 |
Minor |
43 % |
| Double Assignation |
Analyze, All |
1 |
1 |
Major |
55 % |
| 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 |
39 |
18 |
Minor |
65 % |
| Empty Blocks |
Analyze, All, Simple, CI-checks |
1 |
1 |
Minor |
57 % |
| Empty Instructions |
Dead code, Analyze, All, Simple |
2 |
1 |
Minor |
43 % |
| Empty Try Catch |
Analyze, All, Level 3 |
1 |
1 |
Minor |
47 % |
| Eval() Usage |
Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security |
2 |
2 |
Major |
37 % |
| eval() Without Try |
Analyze, All, Simple, Level 3, Security, CI-checks |
2 |
2 |
Critical |
34 % |
| Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks |
4 |
3 |
Major |
60 % |
| Switch Fallthrough |
All, Inventory, Security, Stats |
1 |
1 |
Minor |
37 % |
| Global Usage |
Analyze, Appinfo, ClearPHP, All |
2 |
1 |
Minor |
52 % |
| Htmlentities Calls |
Analyze, All, Simple, CI-checks |
9 |
4 |
Major |
39 % |
| If With Same Conditions |
Analyze, All, Simple, CI-checks |
1 |
1 |
Major |
44 % |
| Iffectations |
Analyze, All |
92 |
29 |
Minor |
80 % |
| Inconsistent Elseif |
All, Analyze |
4 |
3 |
Major |
73 % |
| Infinite Recursion |
All, Analyze |
1 |
1 |
Major |
0 % |
| Long Arguments |
All, Analyze |
15 |
7 |
Minor |
67 % |
| Max Level Of Nesting |
All, Analyze |
11 |
8 |
Minor |
0 % |
| Merge If Then |
All, Analyze, CI-checks |
19 |
15 |
Minor |
0 % |
| Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4 |
2 |
2 |
Major |
62 % |
| Missing New ? |
All, Analyze |
2 |
1 |
Critical |
5 % |
| Modernize Empty With Expression |
All, Analyze, OneFile, Simple |
2 |
2 |
Minor |
56 % |
| Nested Ifthen |
Analyze, All, RadwellCodes |
65 |
28 |
Major |
87 % |
| Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks |
2 |
2 |
Major |
20 % |
| Don't Change Incomings |
Analyze, All |
8 |
1 |
Minor |
44 % |
| No Direct Usage |
Analyze, All, Simple |
3 |
2 |
Major |
36 % |
| No Hardcoded Ip |
Analyze, ClearPHP, Security, All, Simple |
6 |
1 |
Minor |
24 % |
| No Need For Else |
All, Analyze |
3 |
2 |
Minor |
74 % |
| No Need For Triple Equal |
All, Analyze |
13 |
6 |
Minor |
0 % |
| No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks |
1 |
1 |
Minor |
61 % |
| Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks |
3 |
3 |
Minor |
57 % |
| Variable Is Not A Condition |
All, Analyze |
128 |
52 |
Minor |
57 % |
| @ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks |
21 |
10 |
Minor |
66 % |
| Not Not |
Analyze, OneFile, All, Simple, CI-checks |
3 |
3 |
Minor |
13 % |
| Several Instructions On The Same Line |
Analyze, All |
18 |
6 |
Major |
57 % |
| Printf Number Of Arguments |
All, Analyze, CI-checks |
2 |
1 |
Minor |
42 % |
| Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks |
1 |
1 |
Major |
49 % |
| Same Conditions In Condition |
Analyze, All, Simple, CI-checks |
1 |
1 |
Critical |
49 % |
| Should Chain Exception |
Analyze, All, Simple, CI-checks |
4 |
3 |
Minor |
36 % |
| Should Make Ternary |
All, Analyze, OneFile, Simple, CI-checks |
42 |
27 |
Minor |
85 % |
| Preprocessable |
Analyze, All, Rector |
19 |
10 |
Minor |
86 % |
| Static Loop |
Analyze, All, Simple, Level 4 |
9 |
4 |
Minor |
65 % |
| Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks |
1 |
1 |
Major |
54 % |
| Suspicious Comparison |
All, Analyze, Level 3 |
3 |
2 |
Major |
15 % |
| Switch To Switch |
Analyze, All, RadwellCodes, Simple |
4 |
4 |
Minor |
79 % |
| Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks |
5 |
4 |
Major |
68 % |
| Test Then Cast |
All, Analyze |
1 |
1 |
Major |
32 % |
| Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks |
1 |
1 |
Major |
50 % |
| Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks |
2 |
2 |
Major |
49 % |
| Unconditional Break In Loop |
All, Analyze, Level 3, CI-checks |
2 |
2 |
Major |
46 % |
| Unpreprocessed Values |
Analyze, OneFile, ClearPHP, All, Simple |
1 |
1 |
Minor |
28 % |
| Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
11 |
7 |
Major |
44 % |
| Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80 |
5 |
3 |
Minor |
0 % |
| Avoid get_class() |
Analyze, All, Simple, CI-checks |
1 |
1 |
Minor |
32 % |
| Use Positive Condition |
All, Analyze, OneFile, Simple |
17 |
12 |
Minor |
81 % |
| Useless Casting |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks |
6 |
5 |
Minor |
37 % |
| Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks |
15 |
12 |
Minor |
58 % |
| Useless Parenthesis |
Analyze, All, Simple, CI-checks |
49 |
25 |
Minor |
81 % |
| Missing Returntype In Method |
All, Typehints, Analyze, CI-checks |
58 |
31 |
Minor |
0 % |
| Assigned Twice |
All, Analyze |
29 |
9 |
Minor |
78 % |
| Overwritten Literals |
Analyze, All |
34 |
9 |
Major |
78 % |
| Undefined Variable |
All, Analyze, CI-checks |
150 |
15 |
Minor |
77 % |
| Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
2 |
2 |
Minor |
87 % |
| Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
26 |
21 |
Minor |
95 % |
| Written Only Variables |
Analyze, OneFile, All, Simple |
23 |
13 |
Minor |
78 % |