Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
11 |
4 |
Minor |
10 % |
Append And Assign Arrays |
Analyze, Internal, All, ChangedBehavior |
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, ChangedBehavior |
344 |
86 |
Minor |
0 % |
Abstract Or Implements |
Analyze, All, LintButWontExec, ChangedBehavior |
24 |
24 |
Major |
24 % |
Accessing Private |
Analyze, All, Simple |
10 |
6 |
Major |
17 % |
Access Protected Structures |
Analyze, All, Simple, IsPHP, IsStub, IsExt |
4 |
2 |
Major |
17 % |
Ambiguous Static |
Analyze, All, Semantics |
320 |
213 |
Minor |
66 % |
Ambiguous Visibilities |
Analyze, All, Semantics, ChangedBehavior |
653 |
312 |
Minor |
70 % |
Avoid option arrays in constructors |
Analyze, All, ClassReview |
6 |
6 |
Minor |
0 % |
Avoid Optional Properties |
Analyze, All |
62 |
33 |
Major |
84 % |
Const Visibility Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All |
302 |
112 |
Minor |
24 % |
Could Be Abstract Class |
Analyze, All, ClassReview |
11 |
11 |
Minor |
65 % |
Class Could Be Final |
Analyze, All, ClassReview |
723 |
723 |
Minor |
96 % |
Method Could Be Static |
Analyze, All, ClassReview |
1016 |
417 |
Minor |
92 % |
Could Inject Parameter |
Analyze, All, ClassReview, ChangedBehavior |
48 |
30 |
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 |
6 |
6 |
Minor |
60 % |
Hidden Nullable Typehint |
Analyze, All, ClassReview |
165 |
64 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
Analyze, All |
7 |
7 |
Critical |
0 % |
Inherited Property Type Must Match |
Analyze, All, LintButWontExec, ClassReview |
104 |
64 |
Minor |
0 % |
Locally Unused Property |
Dead code, All, Simple, Unused |
205 |
118 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
33 |
25 |
Minor |
71 % |
Make Global A Property |
Analyze, All, Simple |
193 |
89 |
Minor |
37 % |
Method Signature Must Be Compatible |
Analyze, All, LintButWontExec |
6 |
6 |
Critical |
53 % |
Mismatch Properties Typehints |
Analyze, All, LintButWontExec, ClassReview |
39 |
17 |
Minor |
0 % |
Multiple Identical Trait Or Interface |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
2 |
2 |
Minor |
0 % |
New Object Then Immediate Call |
Analyze, All, ClassReview |
68 |
45 |
Minor |
0 % |
No Public Access |
Analyze, All |
60 |
44 |
Minor |
61 % |
Parent First |
Analyze, All, Suggestions |
4 |
4 |
Minor |
56 % |
Property Could Be Local |
Analyze, All, ClassReview |
262 |
128 |
Minor |
76 % |
Same Name For Property And Method |
Analyze, All, ClassReview, Semantics |
48 |
18 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused |
38 |
20 |
Minor |
71 % |
Property Used In One Method Only |
Analyze, All |
180 |
114 |
Minor |
84 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
35 |
1 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
1077 |
377 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2 |
2 |
Minor |
50 % |
Too Many Dereferencing |
Analyze, All, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Too Many Finds |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
7 % |
Too Many Injections |
Analyze, All, Dismell, ChangedBehavior |
27 |
27 |
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 |
3858 |
585 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined |
7 |
5 |
Major |
62 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
1 |
1 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined |
641 |
123 |
Major |
61 % |
Undefined ::class |
Analyze, All, CI-checks, CE, ChangedBehavior, Undefined |
11 |
8 |
Major |
36 % |
Unfinished Object |
Analyze, All, ClassReview |
60 |
38 |
Major |
0 % |
Unreachable Method |
Analyze, Dead code, All, ClassReview, Unused, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Unresolved Catch |
Dead code, ClearPHP, All, ChangedBehavior |
3 |
2 |
Major |
52 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
110 |
46 |
Major |
76 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior |
23 |
19 |
Major |
48 % |
Unused Classes |
Analyze, Dead code, All, Simple, Unused, ChangedBehavior |
44 |
44 |
Major |
67 % |
Unused Class Constant |
Analyze, All, ClassReview, Unused, ChangedBehavior |
20 |
11 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple, Unused, ChangedBehavior |
1358 |
520 |
Minor |
96 % |
Unused Private Methods |
Dead code, OneFile, All, Simple, Unused, ChangedBehavior |
17 |
13 |
Minor |
50 % |
Unused Private Properties |
Dead code, OneFile, All, Simple, Unused |
11 |
7 |
Minor |
51 % |
Unused Protected Methods |
Dead code, All, Unused, ChangedBehavior |
89 |
56 |
Major |
68 % |
Unused Public Methods |
Analyze, All, ChangedBehavior |
2131 |
676 |
Minor |
0 % |
Use ::Class Operator |
Analyze, Performances, All, Simple, CI-checks, CE, ChangedBehavior |
102 |
34 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
33 |
22 |
Major |
63 % |
Used Once Property |
Analyze, All, ChangedBehavior |
32 |
23 |
Minor |
74 % |
Useless Abstract Class |
Analyze, All, Simple, ChangedBehavior |
9 |
9 |
Minor |
33 % |
Useless Method |
Analyze, All |
1 |
1 |
Minor |
0 % |
Weak Typing |
Analyze, All, ChangedBehavior |
7 |
7 |
Minor |
47 % |
Wrong Typed Property Default |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
20 |
19 |
Minor |
0 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
12 |
3 |
Minor |
54 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
2 |
2 |
Minor |
41 % |
Undefined Constants |
stubs |
124 |
61 |
Minor |
71 % |
Unused Constants |
Dead code, All, Simple, Unused, ChangedBehavior |
2 |
1 |
Minor |
39 % |
Could Be A Constant |
All, Dump |
207 |
93 |
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 |
60 |
35 |
None |
100 % |
Converted Exceptions |
Analyze, All |
3 |
2 |
Minor |
0 % |
Could Drop Variable |
Dead code, All, Suggestions, ChangedBehavior |
32 |
20 |
Minor |
0 % |
Forgotten Thrown |
Analyze, All, ChangedBehavior |
13 |
8 |
Minor |
20 % |
Multiple Exceptions Catch() |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
1 |
1 |
Major |
10 % |
Rethrown Exceptions |
Dead code, All, ChangedBehavior |
2 |
2 |
Minor |
20 % |
Throw Raw Exceptions |
Analyze, All, Suggestions |
46 |
23 |
Minor |
0 % |
Try Without Catch |
All, Dump, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
56 |
28 |
Minor |
84 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior |
10 |
10 |
Minor |
45 % |
Useless Catch |
Analyze, All, CI-checks, CE, ChangedBehavior |
12 |
10 |
Minor |
44 % |
Useless Try |
Analyze, All, ChangedBehavior |
29 |
20 |
Minor |
0 % |
Missing Include |
Analyze, All |
33 |
21 |
Critical |
65 % |
Use Named Boolean In Argument Definition |
Analyze, All, ChangedBehavior |
95 |
60 |
Minor |
84 % |
Callback Function Needs Return |
Analyze, All, CI-checks, CE |
8 |
6 |
Major |
42 % |
Could Make A Function |
Analyze, All, Suggestions, ChangedBehavior |
2181 |
384 |
Minor |
66 % |
Deep Definitions |
Analyze, Appinfo, All, Simple, CE |
1 |
1 |
Major |
13 % |
Don't Collect Void |
Analyze, All, IsPHP, IsStub, IsExt |
96 |
47 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
18 |
16 |
Minor |
74 % |
Hardcoded Passwords |
Analyze, Security, OneFile, All, Simple, Level 3 |
96 |
20 |
Major |
70 % |
Method Is Not An If |
Analyze, All |
86 |
50 |
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, ChangedBehavior |
1 |
1 |
Major |
34 % |
Never Called Parameter |
Analyze, All, Suggestions, Rector, Unused |
56 |
47 |
Minor |
92 % |
No Boolean As Default |
Analyze, All |
97 |
59 |
Minor |
84 % |
No Default For Referenced Parameter |
Analyze, All |
1 |
1 |
Minor |
0 % |
No Return Used |
Analyze, All, Suggestions, Level 4 |
32 |
18 |
Minor |
69 % |
Only Variable Passed By Reference |
Analyze, All, IsPHP, IsStub, IsExt |
1783 |
380 |
Critical |
43 % |
Redeclared PHP Functions |
Analyze, Appinfo, All, Simple, CI-checks, CE |
1 |
1 |
Minor |
26 % |
Relay Function |
Analyze, All |
168 |
86 |
Major |
84 % |
Too Many Local Variables |
Analyze, All |
6 |
4 |
Minor |
64 % |
Undefined Functions |
stubs |
4804 |
545 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
69 |
51 |
Major |
90 % |
Unused Functions |
Dead code, All, Simple, Unused |
3 |
2 |
Minor |
52 % |
Unused Returned Value |
Analyze, Dead code, OneFile, All, Simple, Unused |
189 |
59 |
Minor |
41 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
2213 |
467 |
Minor |
98 % |
Using Deprecated Method |
Analyze, All, Attributes |
25 |
9 |
Minor |
0 % |
Wrong Argument Type |
Analyze, All, Typechecks |
295 |
89 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt |
121 |
70 |
Major |
81 % |
Wrong Type Returned |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
1307 |
413 |
Minor |
0 % |
Wrong Type With Call |
Analyze, All, Typechecks, CI-checks, CE |
1390 |
258 |
Minor |
0 % |
Already Parents Interface |
Analyze, All, Suggestions, Level 3, ChangedBehavior |
2 |
2 |
Minor |
26 % |
Forgotten Interface |
Analyze, All, ChangedBehavior |
90 |
90 |
Minor |
48 % |
Empty Interfaces |
Analyze, All, Simple, ChangedBehavior |
1 |
1 |
Minor |
41 % |
Interfaces Is Not Implemented |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, ChangedBehavior |
146 |
146 |
Minor |
0 % |
Repeated Interface |
Analyze, All, LintButWontExec, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
112 |
65 |
Major |
72 % |
Unused Interfaces |
Dead code, All, Simple, Suggestions, Level 2, Unused, ChangedBehavior |
2 |
2 |
Minor |
26 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior |
16 |
16 |
Minor |
59 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
23 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
16 |
16 |
Minor |
44 % |
No Keyword In Namespace |
CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior |
9 |
9 |
Minor |
0 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
197 |
112 |
Major |
69 % |
Unused Use |
Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused, ChangedBehavior |
156 |
116 |
Major |
60 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE, ChangedBehavior |
18 |
15 |
Major |
57 % |
Logical To in_array |
Analyze, All, Level 2, ChangedBehavior |
12 |
10 |
Minor |
67 % |
Memoize MagicCall |
Analyze, All, ClassReview, ChangedBehavior |
32 |
18 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE, ChangedBehavior |
4 |
4 |
Minor |
74 % |
strpos() Too Much |
Analyze, All, CI-checks, CE, ChangedBehavior |
38 |
27 |
Minor |
49 % |
array_key_exists() Works On Arrays |
Analyze, All, CompatibilityPHP74, CE, ChangedBehavior |
77 |
40 |
Minor |
0 % |
Assumptions |
Analyze, All, ChangedBehavior |
23 |
20 |
Minor |
0 % |
Avoid get_object_vars() |
All, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Use random_int() |
Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
59 % |
Constant Scalar Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, ChangedBehavior |
355 |
170 |
Major |
0 % |
Don't Pollute Global Space |
Analyze, All |
341 |
213 |
Minor |
0 % |
Exit Without Argument |
Analyze, All, ChangedBehavior |
15 |
14 |
Minor |
0 % |
False To Array Conversion |
Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 |
15 |
5 |
Minor |
0 % |
Include Variables |
All, Dump |
8 |
6 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
14 |
11 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE, ChangedBehavior |
62 |
36 |
Minor |
53 % |
List Short Syntax |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Internal, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
1 |
1 |
Major |
17 % |
Possible Missing Subpattern |
Analyze, All, Top10, CI-checks, CE, ChangedBehavior |
2 |
2 |
Minor |
45 % |
PHP Native Class Type Compatibility |
Analyze, All, CompatibilityPHP81, ChangedBehavior |
2 |
1 |
Major |
0 % |
No Class In Global |
Analyze, All, CI-checks, CE, ChangedBehavior |
255 |
211 |
Minor |
77 % |
No Null For Native PHP Functions |
Analyze, All, CompatibilityPHP81, Deprecated, ChangedBehavior |
48 |
26 |
Minor |
0 % |
Only Variable Passed By Reference |
Analyze, All, LintButWontExec, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Php 8.0 Only TypeHints |
Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior |
26 |
15 |
Minor |
0 % |
Scalar Are Not Arrays |
Analyze, All, CompatibilityPHP74, CI-checks, CE, ChangedBehavior |
22 |
7 |
Minor |
0 % |
Too Many Native Calls |
Analyze, All, IsPHP, IsExt |
3 |
2 |
Minor |
49 % |
Typed Property Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE |
1202 |
490 |
Minor |
6 % |
Use Nullable Type |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE |
27 |
16 |
Major |
90 % |
Wrong Type For Native PHP Function |
Analyze, All, CI-checks, CE |
47 |
29 |
Minor |
0 % |
Always Anchor Regex |
Security, All |
16 |
13 |
Major |
65 % |
Avoid Those Hash Functions |
Security, All |
9 |
7 |
Major |
62 % |
Configure Extract |
Security, All |
1 |
1 |
Minor |
25 % |
Direct Injection |
Security, All, ChangedBehavior |
6 |
6 |
Major |
51 % |
Don't Echo Error |
Analyze, Security, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
1 |
1 |
Critical |
35 % |
filter_input() As A Source |
Security, All, ChangedBehavior |
4 |
3 |
Minor |
7 % |
Filter Not Raw |
Security, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Incompatible Types With Incoming Values |
Security, All, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Indirect Injection |
Security, All, ChangedBehavior |
8 |
4 |
Critical |
42 % |
No Net For Xml Load |
Security, All, ChangedBehavior |
2 |
2 |
Major |
51 % |
Avoid sleep()/usleep() |
Security, All, ChangedBehavior |
2 |
2 |
Minor |
41 % |
Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks, CE, ChangedBehavior |
24 |
15 |
Major |
28 % |
Unserialize Second Arg |
Security, All |
4 |
4 |
Critical |
50 % |
Adding Zero |
Dump |
2 |
2 |
Minor |
69 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
12 |
11 |
Major |
56 % |
Alternative Syntax Consistence |
Analyze, All |
5 |
1 |
Major |
21 % |
Comparison Is Always The Same |
Analyze, All, ChangedBehavior |
57 |
36 |
Minor |
0 % |
Bail Out Early |
Analyze, OneFile, All, Simple, Level 4 |
209 |
135 |
Minor |
64 % |
Buried Assignation |
Analyze, All |
1 |
1 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
8 |
4 |
Minor |
56 % |
Check All Types |
Analyze, All |
21 |
7 |
Major |
69 % |
Check Division By Zero |
Analyze, All, ChangedBehavior |
10 |
8 |
Minor |
0 % |
Check JSON |
Analyze, All, CI-checks, CE |
17 |
14 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple |
14 |
6 |
Major |
80 % |
Could Be Else |
Analyze, All |
10 |
9 |
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, ChangedBehavior |
2 |
2 |
Minor |
63 % |
Don't Change The Blind Var |
Analyze, All |
24 |
14 |
Minor |
73 % |
Double Assignation |
Analyze, All |
13 |
12 |
Major |
59 % |
Double Checks |
Analyze, All |
11 |
8 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple |
9 |
6 |
Minor |
57 % |
Drop Else After Return |
Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE |
8 |
5 |
Minor |
70 % |
Echo With Concat |
Analyze, Performances, All, Simple, Suggestions |
41 |
18 |
Minor |
60 % |
Empty Instructions |
Analyze, Dead code, All, Simple |
1 |
1 |
Minor |
57 % |
Empty Try Catch |
Analyze, All, Level 3 |
2 |
2 |
Minor |
49 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
44 |
19 |
Major |
61 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, CE |
216 |
94 |
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, ChangedBehavior |
106 |
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, ChangedBehavior |
16 |
8 |
Major |
20 % |
Infinite Recursion |
Analyze, All |
1 |
1 |
Major |
0 % |
Invalid Regex |
Analyze, All, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
37 % |
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 |
195 |
88 |
Minor |
68 % |
Max Level Of Nesting |
Analyze, All |
9 |
8 |
Minor |
0 % |
Merge If Then |
Analyze, All, CI-checks, CE, ChangedBehavior |
39 |
28 |
Minor |
0 % |
Mismatched Ternary Alternatives |
Analyze, All, Suggestions, Level 4 |
11 |
7 |
Major |
64 % |
Missing Assignation In Branches |
Analyze, All, ChangedBehavior |
82 |
46 |
Minor |
0 % |
Missing Cases In Switch |
Analyze, All |
6 |
5 |
Minor |
36 % |
Maybe Missing New |
Analyze, All, ChangedBehavior |
1 |
1 |
Critical |
57 % |
Mixed Concat And Interpolation |
Analyze, Coding Conventions, All |
1 |
1 |
Minor |
45 % |
Modernize Empty With Expression |
Analyze, OneFile, All, Simple |
45 |
32 |
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 |
65 |
34 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
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 |
11 |
6 |
Major |
42 % |
No Empty Regex |
Analyze, All, CI-checks, CE |
1 |
1 |
Critical |
22 % |
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 |
9 |
6 |
Minor |
74 % |
No Null For Index |
Analyze, All, ChangedBehavior |
17 |
6 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE, ChangedBehavior |
52 |
49 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE |
9 |
9 |
Minor |
58 % |
Variable Is Not A Condition |
Analyze, All |
424 |
172 |
Minor |
93 % |
Non Integer Nor String As Index |
Analyze, All, ChangedBehavior |
3 |
2 |
Minor |
0 % |
@ Operator |
Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE |
5 |
3 |
Minor |
65 % |
include_once() Usage |
Analyze, Appinfo, All, CE |
28 |
16 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
5 |
5 |
Major |
56 % |
PHP7 Dirname |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable |
13 |
5 |
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 |
37 |
20 |
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 |
42 |
29 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
370 |
151 |
Minor |
85 % |
Static Inclusions |
Analyze, All |
37 |
22 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4 |
2 |
2 |
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 |
2 |
2 |
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 |
18 |
14 |
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 |
1 |
1 |
Minor |
30 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior |
40 |
32 |
Major |
61 % |
Unsupported Types With Operators |
Analyze, All, CompatibilityPHP80, CE |
28 |
20 |
Minor |
0 % |
Use Positive Condition |
Analyze, OneFile, All, Simple |
37 |
24 |
Minor |
82 % |
Use Same Types For Comparisons |
Analyze, All |
5 |
2 |
Minor |
0 % |
Use Variable Created Inside Loop |
Dead code, All |
15 |
13 |
Minor |
0 % |
Useless Type Casting |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
11 |
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 |
24 |
11 |
Minor |
63 % |
Useless Null Coalesce |
Analyze, All, Typehints |
3 |
1 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
186 |
87 |
Minor |
81 % |
var_dump()... Usage |
Analyze, Security, ClearPHP, All, CI-checks, CE |
1 |
1 |
Critical |
42 % |
Dependant Trait |
Analyze, All, Level 3, ChangedBehavior |
2 |
2 |
Minor |
28 % |
Undefined Trait |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
2 |
2 |
Critical |
15 % |
Should Typecast |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
24 |
14 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple |
12 |
7 |
Minor |
59 % |
Missing Some Returntype |
Analyze, All, Typehints, CI-checks, CE |
66 |
43 |
Minor |
0 % |
StandaloneType True False Null |
Analyze, Appcontent, All, ChangedBehavior |
27 |
16 |
Minor |
0 % |
Wrong Type With Default |
Analyze, All, LintButWontExec, ClassReview |
489 |
171 |
Minor |
0 % |
Assigned Twice |
Analyze, All |
163 |
47 |
Minor |
79 % |
Overwritten Literals |
Analyze, All |
194 |
47 |
Major |
79 % |
Recycled Variables |
Analyze, All |
8 |
4 |
Minor |
0 % |
Undefined Variable |
Analyze, All, CI-checks, CE, Undefined |
702 |
96 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
5 |
5 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE |
250 |
109 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused |
16 |
10 |
Minor |
87 % |