Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
80 |
19 |
Minor |
10 % |
Multiple Index Definition |
Analyze, OneFile, All, Simple, CI-checks, Rector, CE |
5 |
4 |
Minor |
33 % |
Non-constant Index In Array |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
14 % |
Null Or Boolean Arrays |
All, Analyze |
68 |
11 |
Minor |
0 % |
Randomly Sorted Arrays |
All, Analyze, Level 4, Suggestions |
5 |
2 |
Minor |
41 % |
Too Many Array Dimensions |
All, Analyze |
40 |
12 |
Minor |
0 % |
Weak Type With Array |
All, Analyze, ChangedBehavior |
51 |
21 |
Minor |
0 % |
Abstract Or Implements |
All, Analyze, LintButWontExec, ChangedBehavior |
16 |
16 |
Major |
24 % |
Access Protected Structures |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Major |
17 % |
Ambiguous Static |
All, Analyze, Semantics, ChangedBehavior |
264 |
94 |
Minor |
66 % |
Ambiguous Visibilities |
All, Analyze, Semantics, ChangedBehavior |
46 |
32 |
Minor |
70 % |
Avoid Optional Properties |
All, Analyze, ChangedBehavior |
133 |
31 |
Major |
84 % |
Could Be Abstract Class |
All, Analyze, ClassReview, ChangedBehavior |
13 |
13 |
Minor |
65 % |
Class Could Be Final |
All, Analyze, ClassReview, ChangedBehavior |
229 |
202 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview, ChangedBehavior |
266 |
113 |
Minor |
92 % |
Could Inject Parameter |
All, Analyze, ClassReview, ChangedBehavior |
39 |
25 |
Minor |
0 % |
Cyclic References |
All, Analyze, ClassReview, ChangedBehavior |
41 |
16 |
Minor |
0 % |
Dependant Abstract Classes |
All, Analyze, ClassReview, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Different Argument Counts |
All, Analyze, ClassReview, ChangedBehavior |
2 |
2 |
Minor |
0 % |
No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks, CE |
10 |
3 |
Major |
43 % |
Don't Send $this In Constructor |
All, Analyze, ChangedBehavior |
28 |
28 |
Minor |
41 % |
Don't Unset Properties |
All, Analyze, Top10, php-cs-fixable, CI-checks, ChangedBehavior, CE |
11 |
5 |
Major |
42 % |
Empty Classes |
Analyze, All, Simple, ChangedBehavior |
4 |
3 |
Minor |
60 % |
Implicit Nullable Type |
All, Analyze, ClassReview, ChangedBehavior |
29 |
21 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
All, Analyze, ChangedBehavior |
5 |
5 |
Critical |
0 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2, ChangedBehavior |
34 |
9 |
Minor |
71 % |
Make Global A Property |
Analyze, All, Simple, ChangedBehavior |
53 |
22 |
Minor |
37 % |
Method Signature Must Be Compatible |
All, Analyze, LintButWontExec, ChangedBehavior |
2 |
2 |
Critical |
53 % |
New Object Then Immediate Call |
All, Analyze, ClassReview |
137 |
61 |
Minor |
0 % |
self, parent, static Outside Class |
All, Analyze, LintButWontExec, ChangedBehavior |
40 |
16 |
Major |
8 % |
No Public Access |
Analyze, All, ChangedBehavior |
232 |
59 |
Minor |
61 % |
Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
1046 |
60 |
Minor |
42 % |
Non Static Methods Called In A Static |
Analyze, CompatibilityPHP56, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
20 % |
Old Style Constructor |
Analyze, OneFile, Appinfo, ClearPHP, All, Simple, CompatibilityPHP80, ChangedBehavior, CE |
2 |
2 |
Minor |
14 % |
Var Keyword |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, ChangedBehavior |
199 |
42 |
Minor |
4 % |
Parent First |
All, Analyze, Suggestions, ChangedBehavior |
5 |
5 |
Minor |
56 % |
Property Could Be Local |
All, Analyze, ClassReview, ChangedBehavior |
32 |
13 |
Minor |
76 % |
Same Name For Property And Method |
All, Analyze, ClassReview, Semantics, ChangedBehavior |
8 |
3 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused, ChangedBehavior |
126 |
75 |
Minor |
71 % |
Property Used In One Method Only |
All, Analyze, ChangedBehavior |
241 |
68 |
Minor |
84 % |
Parent, Static Or Self Outside Class |
Analyze, All, Simple, ChangedBehavior |
40 |
16 |
Major |
21 % |
Scalar Or Object Property |
All, Analyze |
2 |
2 |
Minor |
32 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview, ChangedBehavior |
122 |
35 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
561 |
135 |
Minor |
95 % |
Static Methods Cannot Call Non-Static Methods |
All, Analyze, ClassReview |
2 |
2 |
Minor |
0 % |
Static Methods Can't Contain $this |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
3 |
3 |
Major |
6 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
229 |
45 |
Minor |
50 % |
$this Belongs To Classes Or Traits |
Analyze, All, Simple, LintButWontExec, ChangedBehavior |
1278 |
63 |
Major |
32 % |
$this Is Not For Static Methods |
Analyze, All |
3 |
3 |
Major |
6 % |
Wrong Access Style to Property |
All, Analyze, Level 2, ClassReview, CI-checks, CE |
57 |
15 |
Critical |
37 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
218 |
104 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE |
2 |
2 |
Major |
62 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
1 |
1 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE |
1754 |
162 |
Major |
61 % |
Undefined static:: Or self:: |
Analyze, All, Simple, Undefined, ChangedBehavior |
51 |
18 |
Minor |
35 % |
Unfinished Object |
All, Analyze, ClassReview, ChangedBehavior |
95 |
40 |
Major |
0 % |
Unreachable Method |
All, Analyze, Dead code, ClassReview, Unused, ChangedBehavior |
3 |
2 |
Minor |
0 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
62 |
36 |
Major |
76 % |
Unused Classes |
Dead code, All, Simple, Analyze, Unused, ChangedBehavior |
1 |
1 |
Major |
67 % |
Unused Class Constant |
All, Analyze, ClassReview, Unused, ChangedBehavior |
33 |
6 |
Minor |
0 % |
Unused Public Methods |
All, Analyze, ChangedBehavior |
894 |
165 |
Minor |
0 % |
Use ::Class Operator |
All, Analyze, Performances, Simple, CI-checks, ChangedBehavior, CE |
473 |
50 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
43 |
24 |
Major |
63 % |
Used Once Property |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
74 % |
Useless Abstract Class |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
33 % |
Useless Constructor |
Analyze, All, Simple, Level 3, ChangedBehavior |
2 |
2 |
Minor |
41 % |
Weak Typing |
All, Analyze, ChangedBehavior |
34 |
7 |
Minor |
47 % |
Wrong Typed Property Default |
All, Analyze, LintButWontExec, ClassReview, CI-checks, CE |
2 |
1 |
Minor |
0 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
163 |
28 |
Minor |
54 % |
Constant Used Only Once |
All, Analyze, ChangedBehavior |
95 |
11 |
Minor |
0 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
19 |
12 |
Minor |
41 % |
Undefined Constants |
Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, ChangedBehavior, CE |
196 |
57 |
Minor |
71 % |
Catch With Undefined Variable |
All, Analyze, Undefined, ChangedBehavior |
8 |
4 |
Minor |
0 % |
Forgotten Thrown |
All, Analyze, ChangedBehavior |
11 |
1 |
Minor |
20 % |
Throw Raw Exceptions |
All, Analyze, Suggestions, ChangedBehavior |
34 |
5 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
34 |
5 |
Minor |
84 % |
Useless Try |
All, Analyze, ChangedBehavior |
21 |
14 |
Minor |
0 % |
Missing Include |
All, Analyze, ChangedBehavior |
128 |
64 |
Critical |
65 % |
Native Alias Functions Usage |
Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
31 |
15 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
All, Analyze, ChangedBehavior |
166 |
73 |
Minor |
84 % |
Could Make A Function |
All, Analyze, Suggestions, ChangedBehavior |
1216 |
179 |
Minor |
66 % |
Deep Definitions |
Analyze, Appinfo, All, Simple, ChangedBehavior, CE |
16 |
10 |
Major |
13 % |
Don't Collect Void |
All, Analyze, ChangedBehavior |
16 |
11 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple, ChangedBehavior |
17 |
15 |
Minor |
74 % |
Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3, ChangedBehavior |
6 |
6 |
Major |
70 % |
Insufficient Typehint |
All, Analyze, Typechecks, ChangedBehavior |
10 |
9 |
Major |
43 % |
Method Is Not An If |
All, Analyze |
174 |
60 |
Minor |
0 % |
Mismatch Parameter Name |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
7 |
7 |
Minor |
0 % |
Mismatched Default Arguments |
All, Analyze, Typechecks, ChangedBehavior |
100 |
24 |
Minor |
80 % |
Mismatched Typehint |
All, Analyze, Typechecks, ChangedBehavior |
12 |
9 |
Major |
66 % |
Modified Typed Parameter |
All, Analyze, ClassReview, ChangedBehavior |
7 |
6 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
34 % |
Never Called Parameter |
All, Analyze, Suggestions, Rector, Unused |
99 |
37 |
Minor |
92 % |
No Boolean As Default |
All, Analyze |
166 |
74 |
Minor |
84 % |
No Default For Referenced Parameter |
All, Analyze, ChangedBehavior |
15 |
10 |
Minor |
0 % |
No Return Used |
All, Analyze, Suggestions, Level 4, ChangedBehavior |
58 |
37 |
Minor |
69 % |
Only Variable Passed By Reference |
All, Analyze, ChangedBehavior |
1133 |
197 |
Critical |
43 % |
Retyped Reference |
All, Analyze, Typehints, ChangedBehavior |
3 |
3 |
Major |
0 % |
Should Use Existing Constants |
Analyze, All, Simple, ChangedBehavior |
11 |
2 |
Minor |
32 % |
Too Many Local Variables |
All, Analyze |
35 |
30 |
Minor |
64 % |
Class-typed References |
All, Analyze, CI-checks, CE |
2 |
1 |
Minor |
37 % |
Undefined Functions |
Analyze, All, CI-checks, Stubs, Undefined, CE |
20 |
14 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
161 |
73 |
Major |
90 % |
Unused Returned Value |
All, Analyze, OneFile, Dead code, Simple, Unused |
381 |
109 |
Minor |
41 % |
Use Constant As Arguments |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
30 % |
Useless Argument |
All, Analyze, ChangedBehavior |
3 |
2 |
Minor |
0 % |
Useless Referenced Argument |
All, Analyze, ChangedBehavior |
14 |
12 |
Minor |
58 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
5472 |
293 |
Minor |
98 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE |
37 |
22 |
Major |
81 % |
Wrong Optional Parameter |
Analyze, All, Simple, Level 1, CI-checks, CompatibilityPHP80, ChangedBehavior, CE |
9 |
4 |
Minor |
32 % |
Wrong Type Returned |
All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE |
460 |
121 |
Minor |
0 % |
Wrong Type With Call |
All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE |
14 |
10 |
Minor |
0 % |
Forgotten Interface |
All, Analyze, ChangedBehavior |
6 |
6 |
Minor |
48 % |
Undefined Interfaces |
Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE |
2 |
2 |
Major |
72 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
5 |
2 |
Minor |
23 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
11 |
5 |
Major |
69 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
13 |
9 |
Major |
57 % |
Logical To in_array |
All, Analyze, Level 2, ChangedBehavior |
24 |
15 |
Minor |
67 % |
Memoize MagicCall |
All, Analyze, ClassReview, ChangedBehavior |
23 |
14 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE |
207 |
73 |
Minor |
74 % |
strpos() Too Much |
All, Analyze, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
49 % |
Use array_slice() |
All, Analyze, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
0 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze, ChangedBehavior, CE |
11 |
9 |
Minor |
0 % |
Assumptions |
All, Analyze, ChangedBehavior |
15 |
11 |
Minor |
0 % |
Avoid mb_dectect_encoding() |
All, Analyze, ChangedBehavior |
6 |
2 |
Minor |
0 % |
Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE |
37 |
23 |
Major |
59 % |
Deprecated PHP Functions |
Analyze, All, CI-checks, CE |
30 |
12 |
Major |
23 % |
Don't Pollute Global Space |
All, Analyze |
808 |
318 |
Minor |
0 % |
Exit Without Argument |
All, Analyze, ChangedBehavior |
54 |
22 |
Minor |
0 % |
False To Array Conversion |
All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze, ChangedBehavior |
162 |
29 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
84 |
38 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE |
47 |
6 |
Minor |
53 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
72 |
55 |
Minor |
43 % |
Possible Missing Subpattern |
All, Analyze, Top10, CI-checks, ChangedBehavior, CE |
6 |
4 |
Minor |
45 % |
No Class In Global |
All, Analyze, CI-checks, ChangedBehavior, CE |
438 |
308 |
Minor |
77 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior |
165 |
52 |
Minor |
0 % |
Only Variable Passed By Reference |
All, Analyze, LintButWontExec, ChangedBehavior |
9 |
5 |
Minor |
0 % |
Scalar Are Not Arrays |
All, Analyze, CompatibilityPHP74, CI-checks, ChangedBehavior, CE |
40 |
5 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, ChangedBehavior, CE |
79 |
39 |
Major |
71 % |
Too Many Native Calls |
All, Analyze, ChangedBehavior |
8 |
5 |
Minor |
49 % |
Unknown Pcre2 Option |
All, Analyze, CompatibilityPHP73, ChangedBehavior |
1 |
1 |
Minor |
17 % |
Use PHP Object API |
Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE |
22 |
13 |
Minor |
27 % |
Use Pathinfo |
Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE |
3 |
3 |
Minor |
11 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, ChangedBehavior, CE |
229 |
74 |
Minor |
0 % |
Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks, ChangedBehavior, CE |
11 |
5 |
Critical |
35 % |
Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks, ChangedBehavior, CE |
926 |
93 |
Major |
28 % |
Adding Zero |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE |
149 |
2 |
Minor |
69 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
25 |
12 |
Major |
56 % |
Alternative Syntax Consistence |
All, Analyze, ChangedBehavior |
1 |
1 |
Major |
21 % |
Comparison Is Always The Same |
All, Analyze, ChangedBehavior |
21 |
11 |
Minor |
0 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4, ChangedBehavior |
302 |
110 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
273 |
77 |
Minor |
77 % |
Buried Assignation |
Analyze, All, ChangedBehavior |
130 |
56 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1, ChangedBehavior |
15 |
10 |
Minor |
56 % |
Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
25 % |
Check All Types |
All, Analyze, ChangedBehavior |
130 |
51 |
Major |
69 % |
Check Division By Zero |
All, Analyze, ChangedBehavior |
24 |
10 |
Minor |
0 % |
Check JSON |
All, Analyze, CI-checks, CE |
117 |
31 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple, ChangedBehavior |
64 |
37 |
Major |
80 % |
Concat Empty String |
All, Analyze, OneFile |
37 |
12 |
Minor |
0 % |
Could Be Else |
All, Analyze, ChangedBehavior |
15 |
13 |
Minor |
49 % |
Could Be A Static Variable |
Analyze, OneFile, All, ClassReview, ChangedBehavior |
5 |
2 |
Major |
23 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, ChangedBehavior, CE |
29 |
16 |
Major |
56 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
18 |
14 |
Minor |
63 % |
Could Use str_repeat() |
All, Analyze, Level 1, Top10, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
14 % |
Dangling Array References |
PHP recommendations, Analyze, ClearPHP, All, Simple, Level 1, Top10, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
46 % |
Don't Change The Blind Var |
All, Analyze, ChangedBehavior |
52 |
35 |
Minor |
73 % |
Don't Mix ++ |
All, Analyze, ChangedBehavior |
19 |
12 |
Minor |
56 % |
Don't Read And Write In One Expression |
All, Analyze, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior, CE |
5 |
3 |
Critical |
38 % |
Double Checks |
All, Analyze, ChangedBehavior |
52 |
19 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple, ChangedBehavior |
8 |
7 |
Minor |
57 % |
Double Object Assignation |
All, Analyze, ClassReview, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Drop Else After Return |
All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE |
103 |
52 |
Minor |
70 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions, ChangedBehavior |
86 |
28 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
91 |
48 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
8 |
6 |
Minor |
51 % |
Empty Json Error |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Empty Instructions |
Dead code, Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
57 % |
Empty Try Catch |
Analyze, All, Level 3 |
13 |
10 |
Minor |
49 % |
Eval() Usage |
Analyze, Appinfo, Performances, OneFile, ClearPHP, All, Simple, Security, PHP recommendations, ChangedBehavior, CE |
16 |
13 |
Major |
39 % |
eval() Without Try |
Analyze, All, Simple, Level 3, Security, CI-checks, ChangedBehavior, CE |
14 |
12 |
Critical |
36 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE |
164 |
74 |
Major |
61 % |
Foreach Reference Is Not Modified |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
24 % |
Forgotten Whitespace |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
16 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, ChangedBehavior, CE |
175 |
41 |
Minor |
52 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
88 |
32 |
Major |
40 % |
Htmlentities Using Default Flag |
All, Analyze, Simple, CI-checks, ChangedBehavior |
108 |
39 |
Minor |
0 % |
Identical Case In Switch |
All, Analyze, ChangedBehavior |
31 |
11 |
Minor |
0 % |
Identical Consecutive Expression |
All, Analyze, ChangedBehavior |
4 |
3 |
Minor |
59 % |
Identical On Both Sides |
All, Analyze, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
19 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
11 |
9 |
Major |
47 % |
Iffectations |
Analyze, All, ChangedBehavior |
75 |
35 |
Minor |
80 % |
Implied If |
Analyze, ClearPHP, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
53 |
52 |
Major |
33 % |
Implode() Arguments Order |
All, Analyze, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
0 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
682 |
86 |
Major |
20 % |
Infinite Recursion |
All, Analyze, ChangedBehavior |
1 |
1 |
Major |
0 % |
Invalid Regex |
All, Analyze, CI-checks, ChangedBehavior, CE |
3 |
1 |
Major |
37 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
36 |
21 |
Minor |
37 % |
Long Arguments |
All, Analyze, ChangedBehavior |
19 |
13 |
Minor |
68 % |
Max Level Of Nesting |
All, Analyze, ChangedBehavior |
88 |
56 |
Minor |
0 % |
Mbstring Unknown Encoding |
All, Analyze, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks, ChangedBehavior, CE |
149 |
73 |
Minor |
0 % |
Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4, ChangedBehavior |
20 |
12 |
Major |
64 % |
Missing Assignation In Branches |
All, Analyze, ChangedBehavior |
258 |
102 |
Minor |
0 % |
Missing Cases In Switch |
All, Analyze, ChangedBehavior |
4 |
4 |
Minor |
36 % |
Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
10 |
5 |
Minor |
45 % |
Modernize Empty With Expression |
All, Analyze, OneFile, Simple, ChangedBehavior |
16 |
10 |
Minor |
63 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, ChangedBehavior, CE |
1 |
1 |
Minor |
29 % |
Multiple Type Variable |
All, Analyze, Level 4, ChangedBehavior |
11 |
9 |
Minor |
58 % |
Multiply By One |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE |
10 |
5 |
Minor |
44 % |
Nested Ifthen |
Analyze, All, RadwellCodes, ChangedBehavior |
335 |
115 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
26 |
11 |
Major |
50 % |
Next Month Trap |
All, Analyze, Top10, CI-checks, ChangedBehavior, CE |
1 |
1 |
Major |
8 % |
Don't Change Incomings |
Analyze, All, ChangedBehavior |
54 |
14 |
Minor |
44 % |
No Direct Usage |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Major |
39 % |
No Hardcoded Hash |
Analyze, Security, All, Simple, ChangedBehavior |
11 |
5 |
Critical |
45 % |
No Hardcoded Ip |
Analyze, ClearPHP, Security, All, Simple, ChangedBehavior |
50 |
49 |
Minor |
25 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
16 |
8 |
Major |
35 % |
No isset() With empty() |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
30 % |
No Need For Else |
All, Analyze, ChangedBehavior |
122 |
59 |
Minor |
74 % |
No Need For Triple Equal |
All, Analyze, ChangedBehavior |
2 |
2 |
Minor |
0 % |
No Null For Index |
All, Analyze, ChangedBehavior |
103 |
21 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
168 |
70 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, ChangedBehavior, CE |
44 |
20 |
Minor |
58 % |
Variable Is Not A Condition |
All, Analyze, ChangedBehavior |
377 |
94 |
Minor |
93 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, ChangedBehavior, CE |
437 |
85 |
Minor |
65 % |
Not Not |
Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE |
7 |
5 |
Minor |
14 % |
Objects Don't Need References |
Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
4 |
4 |
Minor |
40 % |
include_once() Usage |
Analyze, Appinfo, All, ChangedBehavior, CE |
85 |
42 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
10 |
7 |
Major |
56 % |
Only Variable Returned By Reference |
Analyze, All, Simple |
4 |
1 |
Major |
3 % |
Print And Die |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
21 |
9 |
Minor |
32 % |
Printf Number Of Arguments |
All, Analyze, CI-checks, CE |
4 |
2 |
Minor |
41 % |
Queries In Loops |
Analyze, OneFile, All, Simple, Level 1, Top10, ChangedBehavior |
35 |
17 |
Major |
8 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, ChangedBehavior, CE |
2 |
1 |
Major |
50 % |
Repeated Regex |
All, Analyze, Level 1, CI-checks, ChangedBehavior, CE |
123 |
29 |
Minor |
47 % |
Results May Be Missing |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
24 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
8 |
6 |
Major |
46 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
10 |
5 |
Critical |
55 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE |
200 |
90 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector, ChangedBehavior |
2231 |
213 |
Minor |
85 % |
Should Use Explode Args |
All, Analyze, CI-checks, ChangedBehavior, CE |
5 |
5 |
Minor |
0 % |
Static Inclusions |
All, Analyze, ChangedBehavior |
158 |
73 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4, ChangedBehavior |
28 |
13 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE |
15 |
11 |
Major |
54 % |
Suspicious Comparison |
All, Analyze, Level 3, ChangedBehavior |
3 |
3 |
Major |
39 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple, ChangedBehavior |
33 |
16 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE |
21 |
13 |
Major |
69 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE |
34 |
19 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, ChangedBehavior, CE |
17 |
10 |
Major |
50 % |
Unconditional Break In Loop |
All, Analyze, Level 3, CI-checks, CE |
27 |
10 |
Major |
48 % |
Unpreprocessed Values |
Analyze, OneFile, ClearPHP, All, Simple, Performances, ChangedBehavior |
2 |
2 |
Minor |
30 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, ChangedBehavior, CE |
4 |
4 |
Minor |
0 % |
Unused Global |
Analyze, All, Simple, Unused, ChangedBehavior |
49 |
1 |
Minor |
22 % |
Use Constant Instead Of Function |
PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, ChangedBehavior, CE |
31 |
17 |
Minor |
61 % |
Use Positive Condition |
All, Analyze, OneFile, Simple, ChangedBehavior |
157 |
75 |
Minor |
82 % |
Useless Type Casting |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, ChangedBehavior, CE |
41 |
18 |
Minor |
47 % |
Useless Check |
All, Analyze, OneFile, Simple, Level 1, CI-checks, CE |
48 |
12 |
Minor |
35 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2, ChangedBehavior |
6 |
2 |
Minor |
27 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE |
31 |
15 |
Minor |
63 % |
Useless Null Coalesce |
All, Analyze, Typehints, ChangedBehavior |
6 |
4 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, ChangedBehavior, CE |
221 |
72 |
Minor |
81 % |
Useless Switch |
Analyze, All, Simple, ChangedBehavior |
3 |
3 |
Major |
32 % |
Useless Unset |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks, ChangedBehavior, CE |
2 |
2 |
Major |
42 % |
var_dump()... Usage |
Analyze, ClearPHP, Security, All, CI-checks, ChangedBehavior, CE |
5 |
5 |
Critical |
42 % |
While(List() = Each()) |
Analyze, Performances, OneFile, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE |
2 |
1 |
Minor |
14 % |
Wrong Locale |
All, Analyze, Semantics, ChangedBehavior |
1 |
1 |
Major |
0 % |
Wrong Precedence In Expression |
All, Analyze, ChangedBehavior |
3 |
3 |
Minor |
0 % |
preg_replace With Option e |
Analyze, CompatibilityPHP70, Security, CompatibilityPHP71, All, Simple, CompatibilityPHP72, CI-checks, ChangedBehavior, CE |
3 |
1 |
Major |
8 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks, ChangedBehavior, CE |
2 |
2 |
Minor |
33 % |
Should Typecast |
Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE |
166 |
40 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple, ChangedBehavior |
308 |
69 |
Minor |
59 % |
Strings With Strange Space |
All, Analyze, CI-checks, ChangedBehavior, CE |
1 |
1 |
Minor |
21 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, ChangedBehavior, CE |
27 |
11 |
Minor |
0 % |
StandaloneType True False Null |
All, Appcontent, Analyze, ChangedBehavior |
11 |
6 |
Minor |
0 % |
Wrong Type With Default |
All, Analyze, LintButWontExec, ClassReview, ChangedBehavior |
29 |
21 |
Minor |
0 % |
Assigned Twice |
All, Analyze, ChangedBehavior |
516 |
73 |
Minor |
79 % |
Overwritten Literals |
Analyze, All, ChangedBehavior |
628 |
78 |
Major |
79 % |
Recycled Variables |
All, Analyze |
24 |
9 |
Minor |
0 % |
Undefined Variable |
All, Analyze, CI-checks, Undefined, CE |
875 |
119 |
Minor |
77 % |
Non Ascii Variables |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
2 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10, ChangedBehavior |
92 |
33 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
5095 |
287 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused, ChangedBehavior |
241 |
69 |
Minor |
87 % |