Append And Assign Arrays |
Analyze, Internal, All |
2 |
2 |
Minor |
0 % |
Null Or Boolean Arrays |
Analyze, All |
30 |
8 |
Minor |
0 % |
Randomly Sorted Arrays |
Analyze, All, Suggestions, Level 4 |
4 |
3 |
Minor |
41 % |
Too Many Array Dimensions |
Analyze, All |
24 |
6 |
Minor |
0 % |
Weak Type With Array |
Analyze, All |
344 |
85 |
Minor |
0 % |
Abstract Or Implements |
Analyze, All, LintButWontExec, ChangedBehavior |
74 |
74 |
Major |
24 % |
Accessing Private |
Analyze, All, Simple |
8 |
4 |
Major |
17 % |
Access Protected Structures |
Analyze, All, Simple, IsPHP, IsStub, IsExt |
4 |
2 |
Major |
17 % |
Ambiguous Static |
Analyze, All, Semantics |
323 |
210 |
Minor |
66 % |
Ambiguous Visibilities |
Analyze, All, Semantics |
606 |
285 |
Minor |
70 % |
Avoid option arrays in constructors |
Analyze, All, ClassReview |
6 |
6 |
Minor |
0 % |
Avoid Optional Properties |
Analyze, All |
59 |
32 |
Major |
84 % |
Could Be Abstract Class |
Analyze, All, ClassReview |
11 |
11 |
Minor |
65 % |
Class Could Be Final |
Analyze, All, ClassReview |
653 |
653 |
Minor |
96 % |
Method Could Be Static |
Analyze, All, ClassReview |
987 |
392 |
Minor |
92 % |
Could Inject Parameter |
Analyze, All, ClassReview, ChangedBehavior |
46 |
28 |
Minor |
0 % |
Cyclic References |
Analyze, All, ClassReview |
1 |
1 |
Minor |
0 % |
Dependant Abstract Classes |
Analyze, All, ClassReview |
1 |
1 |
Minor |
0 % |
Different Argument Counts |
Analyze, All, ClassReview |
2 |
2 |
Minor |
0 % |
No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks, CE |
8 |
6 |
Major |
43 % |
Don't Send $this In Constructor |
Analyze, All |
24 |
24 |
Minor |
41 % |
Don't Unset Properties |
Analyze, All, Top10, php-cs-fixable, CI-checks, CE |
3 |
1 |
Major |
42 % |
Empty Classes |
Analyze, All, Simple |
7 |
7 |
Minor |
60 % |
Hidden Nullable Typehint |
Analyze, All, ClassReview |
170 |
66 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
Analyze, All |
5 |
5 |
Critical |
0 % |
Locally Unused Property |
Dead code, All, Simple, Unused |
203 |
114 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
30 |
22 |
Minor |
71 % |
Make Global A Property |
Analyze, All, Simple |
175 |
83 |
Minor |
37 % |
Method Signature Must Be Compatible |
Analyze, All, LintButWontExec |
2 |
2 |
Critical |
53 % |
New Object Then Immediate Call |
Analyze, All, ClassReview |
71 |
47 |
Minor |
0 % |
No Public Access |
Analyze, All |
56 |
41 |
Minor |
61 % |
Parent First |
Analyze, All, Suggestions |
4 |
4 |
Minor |
56 % |
Property Could Be Local |
Analyze, All, ClassReview |
207 |
100 |
Minor |
76 % |
Same Name For Property And Method |
Analyze, All, ClassReview, Semantics |
44 |
16 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused |
38 |
21 |
Minor |
71 % |
Property Used In One Method Only |
Analyze, All |
172 |
109 |
Minor |
84 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
42 |
5 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
1049 |
360 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
1 |
1 |
Minor |
50 % |
Too Many Dereferencing |
Analyze, All |
2 |
2 |
Minor |
0 % |
Too Many Finds |
Analyze, All |
1 |
1 |
Minor |
7 % |
Too Many Injections |
Analyze, All, Dismell |
26 |
26 |
Minor |
19 % |
Wrong Access Style to Property |
Analyze, All, Level 2, ClassReview, CI-checks, CE |
18 |
7 |
Critical |
37 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
265 |
110 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined |
6 |
4 |
Major |
62 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
1 |
1 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined |
635 |
127 |
Major |
61 % |
Undefined ::class |
Analyze, All, CI-checks, CE, Undefined |
9 |
6 |
Major |
36 % |
Unfinished Object |
Analyze, All, ClassReview |
67 |
44 |
Major |
0 % |
Unreachable Method |
Analyze, Dead code, All, ClassReview, Unused |
2 |
2 |
Minor |
0 % |
Unresolved Catch |
Dead code, ClearPHP, All |
3 |
2 |
Major |
52 % |
Unresolved Classes |
Analyze, All, Stubs |
98 |
42 |
Major |
76 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10 |
19 |
17 |
Major |
48 % |
Unused Classes |
Analyze, Dead code, All, Simple, Unused |
18 |
18 |
Major |
67 % |
Unused Class Constant |
Analyze, All, ClassReview, Unused |
35 |
14 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple, Unused |
1285 |
484 |
Minor |
96 % |
Unused Private Methods |
Dead code, OneFile, All, Simple, Unused |
18 |
14 |
Minor |
50 % |
Unused Private Properties |
Dead code, OneFile, All, Simple, Unused |
5 |
5 |
Minor |
51 % |
Unused Protected Methods |
Dead code, All, Unused |
46 |
37 |
Major |
68 % |
Unused Public Methods |
Analyze, All, ChangedBehavior |
1194 |
481 |
Minor |
0 % |
Use ::Class Operator |
Analyze, Performances, All, Simple, CI-checks, CE |
100 |
34 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, CE |
33 |
22 |
Major |
63 % |
Used Once Property |
Analyze, All |
24 |
21 |
Minor |
74 % |
Useless Abstract Class |
Analyze, All, Simple |
9 |
9 |
Minor |
33 % |
Useless Method |
Analyze, All |
1 |
1 |
Minor |
0 % |
Weak Typing |
Analyze, All |
7 |
7 |
Minor |
47 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
12 |
3 |
Minor |
54 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Minor |
41 % |
Undefined Constants |
stubs |
113 |
58 |
Minor |
71 % |
Unused Constants |
Dead code, All, Simple, Unused |
2 |
1 |
Minor |
39 % |
Could Be A Constant |
All, Dump |
203 |
96 |
Minor |
0 % |
Catch With Undefined Variable |
Analyze, All, ChangedBehavior, Undefined |
9 |
1 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All, ChangedBehavior |
5 |
4 |
None |
53 % |
Caught Exceptions |
All, Dump, ChangedBehavior |
56 |
33 |
None |
100 % |
Converted Exceptions |
Analyze, All |
3 |
2 |
Minor |
0 % |
Could Drop Variable |
Dead code, All, Suggestions |
29 |
18 |
Minor |
0 % |
Forgotten Thrown |
Analyze, All |
12 |
7 |
Minor |
20 % |
Rethrown Exceptions |
Dead code, All |
2 |
2 |
Minor |
20 % |
Throw Raw Exceptions |
Analyze, All, Suggestions |
44 |
21 |
Minor |
0 % |
Try Without Catch |
All, Dump |
1 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All |
53 |
25 |
Minor |
84 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple |
9 |
9 |
Minor |
45 % |
Useless Catch |
Analyze, All, CI-checks, CE |
11 |
9 |
Minor |
44 % |
Useless Try |
Analyze, All, ChangedBehavior |
26 |
19 |
Minor |
0 % |
Missing Include |
Analyze, All |
36 |
21 |
Critical |
65 % |
Use Named Boolean In Argument Definition |
Analyze, All |
95 |
59 |
Minor |
84 % |
Callback Function Needs Return |
Analyze, All, CI-checks, CE |
8 |
6 |
Major |
42 % |
Could Make A Function |
Analyze, All, Suggestions |
2113 |
368 |
Minor |
66 % |
Deep Definitions |
Analyze, Appinfo, All, Simple, CE |
1 |
1 |
Major |
13 % |
Don't Collect Void |
Analyze, All, IsPHP, IsStub, IsExt |
100 |
50 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
18 |
16 |
Minor |
74 % |
Hardcoded Passwords |
Analyze, Security, OneFile, All, Simple, Level 3 |
95 |
20 |
Major |
70 % |
Method Is Not An If |
Analyze, All |
79 |
48 |
Minor |
0 % |
Mismatched Default Arguments |
Analyze, All, Typechecks |
39 |
19 |
Minor |
80 % |
Mismatched Typehint |
Analyze, All, Typechecks |
2 |
1 |
Major |
66 % |
Modified Typed Parameter |
Analyze, All, ClassReview |
9 |
5 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE |
1 |
1 |
Major |
34 % |
Never Called Parameter |
Analyze, All, Suggestions, Rector, Unused |
55 |
43 |
Minor |
92 % |
No Boolean As Default |
Analyze, All |
98 |
59 |
Minor |
84 % |
No Default For Referenced Parameter |
Analyze, All |
1 |
1 |
Minor |
0 % |
No Return Used |
Analyze, All, Suggestions, Level 4 |
20 |
7 |
Minor |
69 % |
Only Variable Passed By Reference |
Analyze, All, IsPHP, IsStub, IsExt |
1720 |
361 |
Critical |
43 % |
Redeclared PHP Functions |
Analyze, Appinfo, All, Simple, CI-checks, CE |
1 |
1 |
Minor |
26 % |
Relay Function |
Analyze, All |
153 |
80 |
Major |
84 % |
Too Many Local Variables |
Analyze, All |
4 |
4 |
Minor |
64 % |
Undefined Functions |
stubs |
4448 |
518 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
89 |
61 |
Major |
90 % |
Unused Functions |
Dead code, All, Simple, Unused |
2 |
1 |
Minor |
52 % |
Unused Returned Value |
Analyze, Dead code, OneFile, All, Simple, Unused |
190 |
58 |
Minor |
41 % |
Use Constant As Arguments |
Analyze, All, Simple, CI-checks, CE |
5 |
4 |
Major |
30 % |
Useless Argument |
Analyze, All |
309 |
150 |
Minor |
0 % |
Useless Referenced Argument |
Analyze, All |
1 |
1 |
Minor |
58 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2180 |
475 |
Minor |
98 % |
Using Deprecated Method |
Analyze, All, Attributes |
19 |
6 |
Minor |
0 % |
Wrong Argument Type |
Analyze, All, Typechecks |
302 |
103 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt |
116 |
65 |
Major |
81 % |
Wrong Type Returned |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
1221 |
378 |
Minor |
0 % |
Wrong Type With Call |
Analyze, All, Typechecks, CI-checks, CE |
1355 |
267 |
Minor |
0 % |
Forgotten Interface |
Analyze, All, ChangedBehavior |
86 |
86 |
Minor |
48 % |
Interfaces Is Not Implemented |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, IsPHP, IsStub, IsExt |
126 |
126 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, LintButWontExec, CI-checks, CE, IsPHP, IsStub, IsExt, Undefined |
115 |
66 |
Major |
72 % |
Unused Interfaces |
Dead code, All, Simple, Suggestions, Level 2, Unused |
2 |
2 |
Minor |
26 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
15 |
15 |
Minor |
59 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, CE |
1 |
1 |
Minor |
23 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, CE |
6 |
6 |
Minor |
44 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks, CE |
2 |
2 |
Minor |
46 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt |
182 |
107 |
Major |
69 % |
Unused Use |
Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused |
161 |
118 |
Major |
60 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
16 |
13 |
Major |
57 % |
Logical To in_array |
Analyze, All, Level 2 |
11 |
9 |
Minor |
67 % |
Memoize MagicCall |
Analyze, All, ClassReview |
31 |
18 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE |
6 |
5 |
Minor |
74 % |
strpos() Too Much |
Analyze, All, CI-checks, CE |
35 |
24 |
Minor |
49 % |
array_key_exists() Works On Arrays |
Analyze, All, CompatibilityPHP74, CE |
72 |
37 |
Minor |
0 % |
Assumptions |
Analyze, All |
21 |
19 |
Minor |
0 % |
Avoid get_object_vars() |
All, CompatibilityPHP74, CompatibilityPHP80 |
3 |
3 |
Minor |
0 % |
Use random_int() |
Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE |
1 |
1 |
Major |
59 % |
Constant Scalar Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All |
344 |
168 |
Major |
0 % |
Don't Pollute Global Space |
Analyze, All |
352 |
217 |
Minor |
0 % |
False To Array Conversion |
Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 |
14 |
6 |
Minor |
0 % |
Incompilable Files |
Analyze, Appinfo, ClearPHP, All, Simple, CE |
1 |
1 |
Critical |
24 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE |
14 |
11 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE |
61 |
35 |
Minor |
53 % |
Possible Missing Subpattern |
Analyze, All, Top10, CI-checks, CE |
2 |
2 |
Minor |
45 % |
PHP Native Class Type Compatibility |
Analyze, All, CompatibilityPHP81 |
2 |
1 |
Major |
0 % |
No Class In Global |
Analyze, All, CI-checks, CE |
258 |
215 |
Minor |
77 % |
No Null For Native PHP Functions |
Analyze, All, CompatibilityPHP81, Deprecated |
58 |
32 |
Minor |
0 % |
Only Variable Passed By Reference |
Analyze, All, LintButWontExec |
7 |
6 |
Minor |
0 % |
Php 8.0 Only TypeHints |
Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE |
1 |
1 |
Minor |
0 % |
Scalar Are Not Arrays |
Analyze, All, CompatibilityPHP74, CI-checks, CE |
22 |
7 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
19 |
11 |
Major |
71 % |
Use Nullable Type |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE |
10 |
6 |
Major |
90 % |
Wrong Type For Native PHP Function |
Analyze, All, CI-checks, CE |
141 |
78 |
Minor |
0 % |
Always Anchor Regex |
Security, All |
15 |
12 |
Major |
65 % |
Avoid Those Hash Functions |
Security, All |
10 |
7 |
Major |
62 % |
Configure Extract |
Security, All |
1 |
1 |
Minor |
25 % |
Direct Injection |
Security, All |
4 |
4 |
Major |
51 % |
Don't Echo Error |
Analyze, Security, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
Critical |
35 % |
filter_input() As A Source |
Security, All |
85 |
33 |
Minor |
7 % |
Filter Not Raw |
Security, All, ChangedBehavior |
76 |
29 |
Minor |
0 % |
Incompatible Types With Incoming Values |
Security, All, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Indirect Injection |
Security, All |
8 |
4 |
Critical |
42 % |
No Net For Xml Load |
Security, All |
1 |
1 |
Major |
51 % |
Avoid sleep()/usleep() |
Security, All |
2 |
2 |
Minor |
41 % |
Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks, CE |
30 |
15 |
Major |
28 % |
Unserialize Second Arg |
Security, All |
4 |
4 |
Critical |
50 % |
Adding Zero |
Dump |
3 |
3 |
Minor |
69 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
13 |
12 |
Major |
56 % |
Alternative Syntax Consistence |
Analyze, All |
4 |
1 |
Major |
21 % |
Comparison Is Always The Same |
Analyze, All, ChangedBehavior |
54 |
33 |
Minor |
0 % |
Array_merge Needs Array Of Arrays |
Analyze, All |
44 |
33 |
Minor |
0 % |
Bail Out Early |
Analyze, OneFile, All, Simple, Level 4 |
196 |
127 |
Minor |
64 % |
Buried Assignation |
Analyze, All |
1 |
1 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
15 |
5 |
Minor |
56 % |
Check All Types |
Analyze, All |
21 |
7 |
Major |
69 % |
Check Division By Zero |
Analyze, All, ChangedBehavior |
11 |
9 |
Minor |
0 % |
Check JSON |
Analyze, All, CI-checks, CE |
18 |
15 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple |
14 |
6 |
Major |
80 % |
Could Be Else |
Analyze, All |
11 |
10 |
Minor |
49 % |
Could Be A Static Variable |
Analyze, OneFile, All, ClassReview, ChangedBehavior |
6 |
6 |
Major |
23 % |
Could Use Short Assignation |
Analyze, Performances, OneFile, All, Simple, Rector, CI-checks, CE |
2 |
2 |
Minor |
63 % |
Don't Change The Blind Var |
Analyze, All |
24 |
14 |
Minor |
73 % |
Double Assignation |
Analyze, All |
15 |
13 |
Major |
59 % |
Double Checks |
Analyze, All |
11 |
8 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple |
8 |
5 |
Minor |
57 % |
Drop Else After Return |
Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE |
9 |
5 |
Minor |
70 % |
Echo With Concat |
Analyze, Performances, All, Simple, Suggestions |
47 |
23 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
7 |
5 |
Minor |
66 % |
Empty Instructions |
Analyze, Dead code, All, Simple |
1 |
1 |
Minor |
57 % |
Empty Try Catch |
Analyze, All, Level 3 |
1 |
1 |
Minor |
49 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
36 |
19 |
Major |
61 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, CE |
197 |
87 |
Minor |
52 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, CE |
1 |
1 |
Major |
40 % |
Htmlentities Using Default Flag |
Analyze, All, Simple, CI-checks, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Identical Case In Switch |
Analyze, All |
82 |
9 |
Minor |
0 % |
Identical Consecutive Expression |
Analyze, All |
2 |
2 |
Minor |
59 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, CE |
11 |
8 |
Major |
47 % |
Implode() Arguments Order |
Analyze, All, CI-checks, CE, ChangedBehavior |
4 |
4 |
Minor |
0 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, CE |
16 |
8 |
Major |
20 % |
Infinite Recursion |
Analyze, All |
1 |
1 |
Major |
0 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
1 |
1 |
Minor |
37 % |
Logical Mistakes |
Analyze, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
Critical |
32 % |
Long Arguments |
Analyze, All |
205 |
98 |
Minor |
68 % |
Max Level Of Nesting |
Analyze, All |
9 |
8 |
Minor |
0 % |
Merge If Then |
Analyze, All, CI-checks, CE, ChangedBehavior |
38 |
27 |
Minor |
0 % |
Mismatched Ternary Alternatives |
Analyze, All, Suggestions, Level 4 |
11 |
7 |
Major |
64 % |
Missing Assignation In Command |
Analyze, All |
84 |
47 |
Minor |
0 % |
Missing Cases In Switch |
Analyze, All |
6 |
5 |
Minor |
36 % |
Maybe Missing New |
Analyze, All |
1 |
1 |
Critical |
57 % |
Mixed Concat And Interpolation |
Analyze, Coding Conventions, All |
1 |
1 |
Minor |
45 % |
Modernize Empty With Expression |
Analyze, OneFile, All, Simple |
49 |
35 |
Minor |
63 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, Rector, CI-checks, CE |
1 |
1 |
Minor |
29 % |
Multiple Type Cases In Switch |
All, CompatibilityPHP80 |
1 |
1 |
Minor |
0 % |
Multiple Type Variable |
Analyze, All, Level 4 |
10 |
8 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
63 |
32 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
2 |
2 |
Major |
50 % |
Don't Change Incomings |
Analyze, All |
11 |
3 |
Minor |
44 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
42 % |
No isset() With empty() |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
7 |
5 |
Minor |
30 % |
No Max On Empty Array |
All, CompatibilityPHP80, ChangedBehavior |
4 |
4 |
Minor |
0 % |
No Need For Else |
Analyze, All |
10 |
6 |
Minor |
74 % |
No Need For Triple Equal |
Analyze, All |
1 |
1 |
Minor |
0 % |
No Null For Index |
Analyze, All |
13 |
5 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE |
47 |
44 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE |
10 |
10 |
Minor |
58 % |
Variable Is Not A Condition |
Analyze, All |
402 |
171 |
Minor |
93 % |
Non Integer Nor String As Index |
Analyze, All |
1 |
1 |
Minor |
0 % |
@ Operator |
Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE |
10 |
7 |
Minor |
65 % |
include_once() Usage |
Analyze, Appinfo, All, CE |
31 |
16 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
14 |
11 |
Major |
56 % |
PHP7 Dirname |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable |
14 |
6 |
Minor |
44 % |
Print And Die |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Minor |
32 % |
Random Without Try |
Security, All |
1 |
1 |
Critical |
30 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE, ChangedBehavior |
45 |
25 |
Major |
50 % |
Repeated Regex |
Analyze, All, Level 1, CI-checks, CE |
4 |
1 |
Minor |
47 % |
Results May Be Missing |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Major |
24 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
Major |
46 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, CE |
4 |
3 |
Critical |
55 % |
Should Use Ternary Operator |
Analyze, OneFile, All, Simple, CI-checks, CE |
43 |
29 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
361 |
155 |
Minor |
85 % |
Static Loop |
Analyze, All, Simple, Level 4 |
1 |
1 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
3 |
3 |
Major |
54 % |
Suspicious Comparison |
Analyze, All, Level 3 |
1 |
1 |
Major |
39 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
1 |
1 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
33 |
29 |
Major |
69 % |
Test Then Cast |
Analyze, All |
9 |
5 |
Major |
34 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, CE |
15 |
13 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE |
3 |
1 |
Major |
50 % |
Unconditional Break In Loop |
Analyze, All, Level 3, CI-checks, CE |
4 |
3 |
Major |
48 % |
Unpreprocessed Values |
Analyze, Performances, OneFile, ClearPHP, All, Simple |
2 |
2 |
Minor |
30 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior |
37 |
29 |
Major |
61 % |
Unsupported Types With Operators |
Analyze, All, CompatibilityPHP80, CE |
29 |
20 |
Minor |
0 % |
Unused Global |
Analyze, All, Simple, Unused |
1 |
1 |
Minor |
22 % |
Use Positive Condition |
Analyze, OneFile, All, Simple |
37 |
25 |
Minor |
82 % |
Use Same Types For Comparisons |
Analyze, All |
4 |
1 |
Minor |
0 % |
Use Variable Created Inside Loop |
Dead code, All |
16 |
14 |
Minor |
0 % |
Useless Type Casting |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
12 |
11 |
Minor |
47 % |
Useless Check |
Analyze, OneFile, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
Minor |
35 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2 |
11 |
8 |
Minor |
27 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE |
14 |
6 |
Minor |
63 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
152 |
82 |
Minor |
81 % |
var_dump()... Usage |
Analyze, Security, ClearPHP, All, CI-checks, CE |
1 |
1 |
Critical |
42 % |
Dependant Trait |
Analyze, All, Level 3 |
2 |
2 |
Minor |
28 % |
Undefined Trait |
Analyze, All, LintButWontExec, CI-checks, CE, IsPHP, IsStub, IsExt, Undefined |
2 |
2 |
Critical |
15 % |
Should Typecast |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
23 |
12 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple |
12 |
7 |
Minor |
59 % |
Missing Some Returntype |
Analyze, All, Typehints, CI-checks, CE |
25 |
19 |
Minor |
0 % |
StandaloneType True False Null |
Analyze, Appcontent, All |
1 |
1 |
Minor |
0 % |
Wrong Type With Default |
Analyze, All, LintButWontExec, ClassReview |
483 |
166 |
Minor |
0 % |
Assigned Twice |
Analyze, All |
154 |
46 |
Minor |
79 % |
Overwritten Literals |
Analyze, All |
182 |
46 |
Major |
79 % |
Recycled Variables |
Analyze, All |
8 |
4 |
Minor |
0 % |
Undefined Variable |
Analyze, All, CI-checks, CE, Undefined |
636 |
94 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
12 |
11 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE |
286 |
122 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused |
21 |
14 |
Minor |
87 % |