Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
36 |
13 |
Minor |
10 % |
Append And Assign Arrays |
Analyze, Internal, All, ChangedBehavior |
55 |
46 |
Minor |
0 % |
Multiple Index Definition |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
9 |
9 |
Minor |
33 % |
No Spread For Hash |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Null Or Boolean Arrays |
Analyze, All |
419 |
100 |
Minor |
0 % |
Randomly Sorted Arrays |
Analyze, All, Suggestions, Level 4 |
1384 |
105 |
Minor |
41 % |
Too Many Array Dimensions |
Analyze, All |
117 |
24 |
Minor |
0 % |
Weak Type With Array |
Analyze, All, ChangedBehavior |
7407 |
1215 |
Minor |
0 % |
Missing Attribute Attribute |
Analyze, PHP recommendations, All, Attributes, ChangedBehavior |
62 |
61 |
Minor |
0 % |
Nested Attributes |
Appinfo, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior |
6 |
3 |
None |
0 % |
Abstract Or Implements |
Analyze, All, LintButWontExec, ChangedBehavior |
108 |
103 |
Major |
24 % |
Accessing Private |
Analyze, All, Simple |
201 |
84 |
Major |
17 % |
Access Protected Structures |
Analyze, All, Simple, IsPHP, IsStub, IsExt |
98 |
30 |
Major |
17 % |
Ambiguous Static |
Analyze, All, Semantics |
4037 |
2403 |
Minor |
66 % |
Ambiguous Visibilities |
Analyze, All, Semantics, ChangedBehavior |
4349 |
2263 |
Minor |
70 % |
Anonymous Classes |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE |
260 |
145 |
Major |
16 % |
Avoid option arrays in constructors |
Analyze, All, ClassReview |
21 |
21 |
Minor |
0 % |
Avoid Optional Properties |
Analyze, All |
989 |
474 |
Major |
84 % |
Cant Instantiate Non Class |
Analyze, All, ClassReview |
2 |
1 |
Minor |
0 % |
Check After Null Safe Operator |
Analyze, All, Suggestions, ChangedBehavior |
243 |
95 |
Major |
0 % |
Check On __Call Usage |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
0 % |
Clone With Non-Object |
Analyze, All, LintButWontExec |
27 |
19 |
Minor |
33 % |
Const Visibility Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All |
1829 |
637 |
Minor |
24 % |
Could Be Abstract Class |
Analyze, All, ClassReview |
117 |
111 |
Minor |
65 % |
Class Could Be Final |
Analyze, All, ClassReview |
5348 |
4493 |
Minor |
96 % |
Method Could Be Static |
Analyze, All, ClassReview |
3039 |
1816 |
Minor |
92 % |
Could Inject Parameter |
Analyze, All, ClassReview, ChangedBehavior |
2672 |
1257 |
Minor |
0 % |
Cyclic References |
Analyze, All, ClassReview |
12 |
10 |
Minor |
0 % |
Dependant Abstract Classes |
Analyze, All, ClassReview |
73 |
73 |
Minor |
0 % |
Different Argument Counts |
Analyze, All, ClassReview |
96 |
81 |
Minor |
0 % |
No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks, CE |
106 |
56 |
Major |
43 % |
Don't Send $this In Constructor |
Analyze, All |
15 |
15 |
Minor |
41 % |
Don't Unset Properties |
Analyze, All, Top10, php-cs-fixable, CI-checks, CE |
54 |
44 |
Major |
42 % |
Empty Classes |
Analyze, All, Simple |
501 |
422 |
Minor |
60 % |
Implicit Nullable Type |
Analyze, All, ClassReview |
168 |
113 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
Analyze, All |
634 |
550 |
Critical |
0 % |
Inherited Property Type Must Match |
Analyze, All, LintButWontExec, ClassReview |
45 |
37 |
Minor |
0 % |
Instantiating Abstract Class |
Analyze, All, Simple |
43 |
15 |
Major |
13 % |
Locally Unused Property |
Dead code, All, Simple, Unused |
1168 |
485 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
198 |
132 |
Minor |
71 % |
Method Signature Must Be Compatible |
Analyze, All, LintButWontExec |
1744 |
1149 |
Critical |
53 % |
Mismatch Properties Typehints |
Analyze, All, LintButWontExec, ClassReview |
264 |
127 |
Minor |
0 % |
Missing Abstract Method |
Analyze, All, ClassReview |
12 |
5 |
Minor |
0 % |
Multiple Class Declarations |
Analyze, All, Simple, CI-checks, CE |
42 |
37 |
Major |
29 % |
Multiple Identical Trait Or Interface |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
71 |
69 |
Minor |
0 % |
New Object Then Immediate Call |
Analyze, All, ClassReview |
5114 |
1211 |
Minor |
0 % |
No Null With Null Safe Operator |
Analyze, All, ClassReview, ChangedBehavior |
235 |
123 |
Minor |
0 % |
Class Without Parent |
Analyze, All, ClassReview, CI-checks, CE, ChangedBehavior |
13 |
9 |
Minor |
0 % |
No Public Access |
Analyze, All |
267 |
114 |
Minor |
61 % |
No Readonly Assignation In Global |
Analyze, All, ClassReview, ChangedBehavior |
2589 |
58 |
Minor |
0 % |
Non Nullable Getters |
Analyze, All, ClassReview |
133 |
111 |
Minor |
0 % |
Non Static Methods Called In A Static |
Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
1 |
1 |
Minor |
20 % |
Parent First |
Analyze, All, Suggestions |
264 |
264 |
Minor |
56 % |
Parent Is Not Static |
Analyze, All, ClassReview |
5 |
4 |
Major |
0 % |
Property Could Be Local |
Analyze, All, ClassReview |
2122 |
977 |
Minor |
76 % |
Same Name For Property And Method |
Analyze, All, ClassReview, Semantics |
434 |
133 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused |
873 |
346 |
Minor |
71 % |
Property Used In One Method Only |
Analyze, All |
1447 |
783 |
Minor |
84 % |
Parent, Static Or Self Outside Class |
Analyze, All, Simple, ChangedBehavior |
614 |
1 |
Major |
21 % |
Scalar Or Object Property |
Analyze, All |
29 |
25 |
Minor |
32 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
80 |
36 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
3995 |
1824 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
492 |
109 |
Minor |
50 % |
$this Belongs To Classes Or Traits |
Analyze, All, Simple, LintButWontExec, ChangedBehavior |
52 |
15 |
Major |
32 % |
$this Is Not For Static Methods |
Analyze, All |
2 |
2 |
Major |
6 % |
Throw In Destruct |
Analyze, PHP recommendations, All, Simple, CI-checks, CE |
5 |
5 |
Major |
1 % |
Too Many Dereferencing |
Analyze, All, ChangedBehavior |
225 |
134 |
Minor |
0 % |
Too Many Injections |
Analyze, All, Dismell, ChangedBehavior |
8 |
8 |
Minor |
19 % |
Wrong Access Style to Property |
Analyze, All, Level 2, ClassReview, CI-checks, CE |
18 |
4 |
Critical |
37 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
14067 |
1973 |
Major |
91 % |
Undefined Class Constants |
Analyze, All, LintButWontExec, CI-checks, CE, Stubs, ChangedBehavior, Undefined |
614 |
126 |
Major |
62 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
15 |
13 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined |
4769 |
361 |
Major |
61 % |
Undefined static:: Or self:: |
Analyze, All, Simple, ChangedBehavior, Undefined |
1355 |
253 |
Minor |
35 % |
Undefined ::class |
Analyze, All, CI-checks, CE, ChangedBehavior, Undefined |
680 |
195 |
Major |
36 % |
Unfinished Object |
Analyze, All, ClassReview |
1941 |
859 |
Major |
0 % |
Unreachable Method |
Analyze, Dead code, All, ClassReview, Unused, ChangedBehavior |
74 |
20 |
Minor |
0 % |
Unresolved Catch |
Dead code, ClearPHP, All, ChangedBehavior |
118 |
67 |
Major |
52 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
1228 |
362 |
Major |
76 % |
Unresolved Instanceof |
Analyze, Dead code, ClearPHP, All, Simple, Top10, ChangedBehavior |
236 |
63 |
Major |
48 % |
Unused Classes |
Analyze, Dead code, All, Simple, Unused, ChangedBehavior |
144 |
132 |
Major |
67 % |
Unused Class Constant |
Analyze, All, ClassReview, Unused, ChangedBehavior |
286 |
45 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple, Unused, ChangedBehavior |
24181 |
3868 |
Minor |
96 % |
Unused Private Methods |
Dead code, OneFile, All, Simple, Unused, ChangedBehavior |
79 |
36 |
Minor |
50 % |
Unused Private Properties |
Dead code, OneFile, All, Simple, Unused |
271 |
121 |
Minor |
51 % |
Unused Protected Methods |
Dead code, All, Unused, ChangedBehavior |
1990 |
1168 |
Major |
68 % |
Unused Public Methods |
Analyze, All, ChangedBehavior |
25569 |
4382 |
Minor |
0 % |
Use ::Class Operator |
Analyze, Performances, All, Simple, CI-checks, CE, ChangedBehavior |
10030 |
1049 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
166 |
99 |
Major |
63 % |
Used Once Property |
Analyze, All, ChangedBehavior |
366 |
242 |
Minor |
74 % |
Useless Abstract Class |
Analyze, All, Simple, ChangedBehavior |
43 |
42 |
Minor |
33 % |
Useless Assignation Of Promoted Property |
Analyze, All, ClassReview, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Useless Constructor |
Analyze, All, Simple, Level 3, ChangedBehavior |
98 |
70 |
Minor |
41 % |
Useless Method |
Analyze, All |
24 |
14 |
Minor |
0 % |
Weak Typing |
Analyze, All, ChangedBehavior |
115 |
89 |
Minor |
47 % |
Illegal Name For Method |
Analyze, OneFile, All, Simple |
2 |
2 |
Major |
20 % |
Wrong Typed Property Default |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
356 |
281 |
Minor |
0 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
6 |
3 |
Minor |
54 % |
Constant Used Only Once |
Analyze, All |
339 |
201 |
Minor |
0 % |
Undefined Constants |
stubs |
14 |
3 |
Minor |
71 % |
Unused Constants |
Dead code, All, Simple, Unused, ChangedBehavior |
3 |
2 |
Minor |
39 % |
Could Be A Constant |
All, Dump |
1292 |
521 |
Minor |
0 % |
Unused Enumeration Case |
Analyze, Dead code, All, Unused |
39 |
1 |
Minor |
0 % |
Can't Throw Throwable |
Analyze, All, LintButWontExec, ChangedBehavior |
278 |
278 |
Minor |
14 % |
Catch With Undefined Variable |
Analyze, All, ChangedBehavior, Undefined |
88 |
61 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All, ChangedBehavior |
144 |
49 |
None |
53 % |
Caught Exceptions |
All, Dump, ChangedBehavior |
1321 |
625 |
None |
100 % |
Converted Exceptions |
Analyze, All |
297 |
205 |
Minor |
0 % |
Could Drop Variable |
Dead code, All, Suggestions, ChangedBehavior |
192 |
97 |
Minor |
0 % |
Forgotten Thrown |
Analyze, All, ChangedBehavior |
331 |
128 |
Minor |
20 % |
Multiple Exceptions Catch() |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
34 |
18 |
Major |
10 % |
Overwritten Exceptions |
Analyze, All, Simple, Suggestions, Level 4, CI-checks, CE, ChangedBehavior |
17 |
9 |
Minor |
22 % |
Rethrown Exceptions |
Dead code, All, ChangedBehavior |
15 |
9 |
Minor |
20 % |
Throw Functioncall |
Analyze, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
11 |
6 |
Major |
4 % |
Throw Raw Exceptions |
Analyze, All, Suggestions |
1054 |
495 |
Minor |
0 % |
Try Without Catch |
All, Dump, ChangedBehavior |
276 |
173 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
1944 |
939 |
Minor |
84 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior |
83 |
72 |
Minor |
45 % |
Useless Try |
Analyze, All, ChangedBehavior |
658 |
344 |
Minor |
0 % |
Missing Include |
Analyze, All |
47 |
25 |
Critical |
65 % |
Native Alias Functions Usage |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
4 |
4 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
Analyze, All, ChangedBehavior |
1395 |
800 |
Minor |
84 % |
Callback Function Needs Return |
Analyze, All, CI-checks, CE |
25 |
14 |
Major |
42 % |
Can't Call Generator |
Analyze, All |
160 |
70 |
Minor |
0 % |
Cancelled Parameter |
Analyze, All, ChangedBehavior |
7 |
7 |
Minor |
0 % |
Cannot Use Static For Closure |
Analyze, All, ChangedBehavior |
2 |
2 |
Major |
0 % |
Could Make A Function |
Analyze, All, Suggestions, ChangedBehavior |
5595 |
1470 |
Minor |
66 % |
Deep Definitions |
Analyze, Appinfo, All, Simple, CE |
1 |
1 |
Major |
13 % |
Don't Collect Void |
Analyze, All, IsPHP, IsStub, IsExt |
217 |
85 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
2767 |
1226 |
Minor |
74 % |
Fn Argument Variable Confusion |
Analyze, All, Semantics |
72 |
53 |
Minor |
0 % |
Hardcoded Passwords |
Analyze, Security, OneFile, All, Simple, Level 3 |
605 |
228 |
Major |
70 % |
Insufficient Typehint |
Analyze, All, Typechecks |
536 |
172 |
Major |
43 % |
Method Is Not An If |
Analyze, All |
295 |
250 |
Minor |
0 % |
Mismatch Parameter Name |
Analyze, All, CompatibilityPHP80, CE, ChangedBehavior |
140 |
103 |
Minor |
0 % |
Mismatch Type And Default |
Analyze, All, LintButWontExec, Typechecks, ChangedBehavior |
30 |
24 |
Critical |
8 % |
Mismatched Default Arguments |
Analyze, All, Typechecks |
237 |
175 |
Minor |
80 % |
Mismatched Typehint |
Analyze, All, Typechecks |
5345 |
1607 |
Major |
66 % |
Modified Typed Parameter |
Analyze, All, ClassReview |
281 |
207 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE, ChangedBehavior |
1212 |
496 |
Major |
34 % |
Never Called Parameter |
Analyze, All, Suggestions, Rector, Unused |
671 |
528 |
Minor |
92 % |
No Boolean As Default |
Analyze, All |
773 |
502 |
Minor |
84 % |
No Default For Referenced Parameter |
Analyze, All |
67 |
41 |
Minor |
0 % |
No Referenced Void |
Analyze, All, CompatibilityPHP81, Deprecated |
2 |
2 |
Minor |
0 % |
No Return Used |
Analyze, All, Suggestions, Level 4 |
431 |
222 |
Minor |
69 % |
Only Variable Passed By Reference |
Analyze, All, IsPHP, IsStub, IsExt |
19821 |
2935 |
Critical |
43 % |
Retyped Reference |
Analyze, All, Typehints |
7 |
4 |
Major |
0 % |
Should Use Existing Constants |
Analyze, All, Simple |
18 |
9 |
Minor |
32 % |
Should Yield With Key |
Analyze, All, Top10, CI-checks, CE |
7 |
3 |
Major |
0 % |
Too Many Local Variables |
Analyze, All |
118 |
95 |
Minor |
64 % |
Type Must Be Returned |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior |
1049 |
422 |
Major |
22 % |
Class-typed References |
Analyze, All, CI-checks, CE |
11 |
10 |
Minor |
37 % |
Unbinding Closures |
All, CompatibilityPHP74, CE |
3 |
1 |
Minor |
0 % |
Undefined Functions |
stubs |
47 |
17 |
Major |
68 % |
Unknown Parameter Name |
Analyze, All, CI-checks, CE |
1543 |
311 |
Minor |
0 % |
Unused Parameter |
Analyze, All, Simple, Unused |
2533 |
642 |
Major |
90 % |
Unused Functions |
Dead code, All, Simple, Unused |
6 |
6 |
Minor |
52 % |
Unused Inherited Variable In Closure |
Analyze, Dead code, All, CI-checks, CE, Unused |
7 |
6 |
Major |
23 % |
Unused Returned Value |
Analyze, Dead code, OneFile, All, Simple, Unused |
7244 |
1272 |
Minor |
41 % |
Use Constant As Arguments |
Analyze, All, Simple, CI-checks, CE |
70 |
46 |
Major |
30 % |
Useless Argument |
Analyze, All |
43 |
37 |
Minor |
0 % |
Useless Referenced Argument |
Analyze, All, ChangedBehavior |
73 |
52 |
Minor |
58 % |
Useless Return |
Analyze, OneFile, All, Simple, Level 4 |
6 |
6 |
Minor |
30 % |
Useless Type Check |
Dead code, OneFile, All |
8 |
8 |
Minor |
0 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
28863 |
3468 |
Minor |
98 % |
Methods Without Return |
Analyze, All |
1162 |
489 |
Minor |
95 % |
Wrong Argument Type |
Analyze, All, Typechecks |
928 |
243 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt |
1114 |
463 |
Major |
81 % |
Wrong Optional Parameter |
Analyze, All, Simple, Level 1, CompatibilityPHP80, CI-checks, CE, ChangedBehavior |
3 |
3 |
Minor |
32 % |
Wrong Type Returned |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
7684 |
2669 |
Minor |
0 % |
Wrong Type With Call |
Analyze, All, Typechecks, CI-checks, CE |
21042 |
2754 |
Minor |
0 % |
Already Parents Interface |
Analyze, All, Suggestions, Level 3, ChangedBehavior |
69 |
67 |
Minor |
26 % |
Can't Implement Traversable |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior |
19 |
18 |
Minor |
0 % |
Forgotten Interface |
Analyze, All, ChangedBehavior |
837 |
813 |
Minor |
48 % |
Empty Interfaces |
Analyze, All, Simple, ChangedBehavior |
112 |
103 |
Minor |
41 % |
Interfaces Is Not Implemented |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, ChangedBehavior |
495 |
473 |
Minor |
0 % |
Interfaces Don't Ensure Properties |
Analyze, All, ClassReview, ChangedBehavior |
6 |
3 |
Minor |
0 % |
Repeated Interface |
Analyze, All, LintButWontExec, ChangedBehavior |
72 |
69 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
1269 |
355 |
Major |
72 % |
Unused Interfaces |
Dead code, All, Simple, Suggestions, Level 2, Unused, ChangedBehavior |
5 |
5 |
Minor |
26 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior |
71 |
71 |
Minor |
59 % |
Hidden Use Expression |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
24 |
9 |
Minor |
23 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
9684 |
4285 |
Minor |
44 % |
Should Make Alias |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
818 |
71 |
Minor |
46 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, ChangedBehavior |
3119 |
1911 |
Major |
69 % |
Unused Use |
Dead code, ClearPHP, All, Simple, php-cs-fixable, Unused, ChangedBehavior |
757 |
409 |
Major |
60 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE, ChangedBehavior |
42 |
34 |
Major |
57 % |
Logical To in_array |
Analyze, All, Level 2, ChangedBehavior |
175 |
120 |
Minor |
67 % |
Memoize MagicCall |
Analyze, All, ClassReview, ChangedBehavior |
33 |
31 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE, ChangedBehavior |
46 |
36 |
Minor |
74 % |
array_key_exists() Works On Arrays |
Analyze, All, CompatibilityPHP74, CE, ChangedBehavior |
132 |
80 |
Minor |
0 % |
Assumptions |
Analyze, All, ChangedBehavior |
815 |
382 |
Minor |
0 % |
Avoid get_object_vars() |
All, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior |
22 |
12 |
Minor |
0 % |
Avoid mb_dectect_encoding() |
Analyze, All, ChangedBehavior |
18 |
14 |
Minor |
0 % |
Use random_int() |
Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE, ChangedBehavior |
153 |
67 |
Major |
59 % |
Comparison On Different Types |
All, Dump, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Concat And Addition |
Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, Top10, CompatibilityPHP80, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Constant Scalar Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, ChangedBehavior |
2880 |
1472 |
Major |
0 % |
Don't Pollute Global Space |
Analyze, All |
165 |
106 |
Minor |
0 % |
Enum Usage |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80 |
44 |
43 |
None |
0 % |
Exit Without Argument |
Analyze, All, ChangedBehavior |
13 |
2 |
Minor |
0 % |
False To Array Conversion |
Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 |
544 |
93 |
Minor |
0 % |
Wrong fopen() Mode |
Analyze, All, CI-checks, CE, ChangedBehavior |
2 |
1 |
Major |
17 % |
Hash Algorithms |
Analyze, All, Level 4 |
35 |
27 |
Major |
0 % |
Include Variables |
All, Dump |
65 |
39 |
Minor |
0 % |
Incompilable Files |
Analyze, Appinfo, ClearPHP, All, Simple, CE |
2 |
2 |
Critical |
24 % |
Numeric Literal Separator |
Appinfo, All, CompatibilityPHP73, CE, ChangedBehavior |
9 |
5 |
None |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
185 |
94 |
Major |
76 % |
Is_A() With String |
Analyze, All, Simple, Rector, CI-checks, CE, ChangedBehavior |
6 |
6 |
Minor |
0 % |
PHP Native Interfaces and Return Type |
Analyze, All, LintButWontExec, CompatibilityPHP81, Deprecated, ChangedBehavior |
16 |
15 |
Minor |
0 % |
List Short Syntax |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Internal, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
536 |
272 |
Major |
17 % |
List With Keys |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
58 |
48 |
Major |
34 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
16 |
13 |
Minor |
43 % |
Possible Missing Subpattern |
Analyze, All, Top10, CI-checks, CE, ChangedBehavior |
29 |
28 |
Minor |
45 % |
Named Parameter Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74 |
1224 |
436 |
Minor |
0 % |
PHP Native Class Type Compatibility |
Analyze, All, CompatibilityPHP81, ChangedBehavior |
1270 |
159 |
Major |
0 % |
Never Typehint Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior |
80 |
22 |
None |
0 % |
New Initializers |
Appinfo, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80 |
20 |
13 |
Minor |
0 % |
Do Not Cast To Int |
Analyze, PHP recommendations, All, ChangedBehavior |
15 |
13 |
Minor |
0 % |
No Class In Global |
Analyze, All, CI-checks, CE, ChangedBehavior |
146 |
104 |
Minor |
77 % |
No Null For Native PHP Functions |
Analyze, All, CompatibilityPHP81, Deprecated, ChangedBehavior |
445 |
222 |
Minor |
0 % |
No Reference For Ternary |
Analyze, All, CI-checks, CE |
4 |
4 |
Major |
14 % |
Only Variable Passed By Reference |
Analyze, All, LintButWontExec, ChangedBehavior |
7 |
1 |
Minor |
0 % |
PHP 8.0 Typehints |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior |
2012 |
802 |
Minor |
0 % |
PHP 8.1 Typehints |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior |
80 |
22 |
Minor |
0 % |
mb_strrpos() Third Argument |
All, CompatibilityPHP74, CE, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Php7 Relaxed Keyword |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, CE |
451 |
131 |
Major |
28 % |
PHP 80 Named Parameter Variadic |
All, CompatibilityPHP80, CE |
9 |
5 |
Minor |
0 % |
Php 8.0 Only TypeHints |
Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior |
2351 |
949 |
Minor |
0 % |
Union Typehint |
Appinfo, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE |
1910 |
663 |
Minor |
0 % |
Php 8.0 Variable Syntax Tweaks |
Appinfo, All, CompatibilityPHP74, CE |
1 |
1 |
Major |
0 % |
PHP 8.1 New Types |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP81, ChangedBehavior |
80 |
22 |
Minor |
0 % |
PHP 8.2 New Types |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP81, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Scalar Are Not Arrays |
Analyze, All, CompatibilityPHP74, CI-checks, CE, ChangedBehavior |
519 |
90 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
38 |
34 |
Major |
71 % |
Signature Trailing Comma |
CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE |
375 |
358 |
Minor |
0 % |
String Int Comparison |
All, CompatibilityPHP80, ChangedBehavior |
155 |
113 |
Minor |
0 % |
Throw Was An Expression |
CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior, OneLiners |
78 |
44 |
Major |
0 % |
Too Many Native Calls |
Analyze, All, IsPHP, IsExt |
62 |
46 |
Minor |
49 % |
Trailing Comma In Calls |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CE |
124 |
44 |
Minor |
1 % |
Typed Property Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE |
7574 |
2788 |
Minor |
6 % |
Use Enum Case In Constant Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CompatibilityPHP80, CompatibilityPHP81 |
15 |
10 |
Minor |
0 % |
Uses PHP 8 Match() |
All, CompatibilityPHP74, CE |
163 |
125 |
None |
0 % |
Use Nullable Type |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE |
6757 |
2208 |
Major |
90 % |
Use PHP Object API |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
27 |
4 |
Minor |
27 % |
Use Pathinfo |
Analyze, All, Simple, Level 3, CI-checks, CE |
1 |
1 |
Minor |
11 % |
Should Use SetCookie() |
Analyze, All |
1 |
1 |
Major |
6 % |
Avoid Using stdClass |
Analyze, OneFile, All, Simple, Level 4 |
984 |
305 |
Minor |
46 % |
Wrong Attribute Configuration |
Analyze, All |
176 |
90 |
Minor |
0 % |
Wrong Type For Native PHP Function |
Analyze, All, CI-checks, CE |
1769 |
697 |
Minor |
0 % |
Always Anchor Regex |
Security, All |
105 |
74 |
Major |
65 % |
Avoid Those Hash Functions |
Security, All |
43 |
29 |
Major |
62 % |
Safe Curl Options |
Security, All, ChangedBehavior |
1 |
1 |
Major |
15 % |
Direct Injection |
Security, All, ChangedBehavior |
19 |
14 |
Major |
51 % |
Don't Echo Error |
Analyze, Security, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
5 |
5 |
Critical |
35 % |
Encoded Simple Letters |
Security, All, ChangedBehavior |
139 |
35 |
Minor |
41 % |
Incompatible Types With Incoming Values |
Security, All, ChangedBehavior |
2 |
1 |
Minor |
0 % |
Indirect Injection |
Security, All, ChangedBehavior |
30 |
13 |
Critical |
42 % |
Keep Files Access Restricted |
Security, All, ChangedBehavior |
38 |
26 |
Minor |
0 % |
Mkdir Default |
Security, All, ChangedBehavior |
59 |
15 |
Major |
37 % |
No Net For Xml Load |
Security, All, ChangedBehavior |
50 |
21 |
Major |
51 % |
Avoid sleep()/usleep() |
Security, All, ChangedBehavior |
214 |
77 |
Minor |
41 % |
No Weak SSL Crypto |
Security, All, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Set Cookie Safe Arguments |
Security, All, ChangedBehavior |
3 |
3 |
Major |
25 % |
Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks, CE, ChangedBehavior |
2 |
1 |
Major |
28 % |
Unserialize Second Arg |
Security, All |
144 |
99 |
Critical |
50 % |
Adding Zero |
Dump |
5 |
5 |
Minor |
69 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
89 |
72 |
Major |
56 % |
Comparison Is Always The Same |
Analyze, All, ChangedBehavior |
1051 |
526 |
Minor |
0 % |
Array Access On Literal Array |
Analyze, All, Semantics, ChangedBehavior |
5 |
5 |
Minor |
0 % |
Array_Fill() With Objects |
Analyze, All |
3 |
2 |
Minor |
0 % |
Assign And Compare |
Analyze, All, CI-checks, CE |
15 |
14 |
Minor |
18 % |
Same Variable Foreach |
Analyze, All, CI-checks, CE |
11 |
11 |
Minor |
16 % |
Bail Out Early |
Analyze, OneFile, All, Simple, Level 4 |
754 |
503 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE |
194 |
141 |
Minor |
77 % |
Buried Assignation |
Analyze, All |
3005 |
1032 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
24 |
14 |
Minor |
56 % |
Casting Ternary |
Analyze, OneFile, All, CI-checks, CE |
7 |
6 |
Major |
0 % |
Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple |
63 |
31 |
Minor |
25 % |
Check All Types |
Analyze, All |
201 |
123 |
Major |
69 % |
Check Division By Zero |
Analyze, All, ChangedBehavior |
58 |
26 |
Minor |
0 % |
Check JSON |
Analyze, All, CI-checks, CE |
401 |
191 |
Major |
65 % |
Coalesce And Concat |
Analyze, All, CI-checks, CE |
9 |
8 |
Minor |
0 % |
Coalesce And Ternary Operators Order |
Analyze, All, ChangedBehavior |
9 |
3 |
Minor |
0 % |
Common Alternatives |
Analyze, All, Simple |
72 |
64 |
Major |
80 % |
Concat Empty String |
Analyze, OneFile, All |
4 |
2 |
Minor |
0 % |
Could Be Else |
Analyze, All |
18 |
17 |
Minor |
49 % |
Could Be Spaceship |
Analyze, All, Suggestions |
1 |
1 |
Minor |
0 % |
Could Use Short Assignation |
Analyze, Performances, OneFile, All, Simple, Rector, CI-checks, CE, ChangedBehavior |
28 |
21 |
Minor |
63 % |
Could Use Yield From |
Analyze, Performances, All, ChangedBehavior |
11 |
10 |
Minor |
0 % |
Count() Is Not Negative |
Analyze, All, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Dangling Array References |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE |
13 |
11 |
Major |
46 % |
Default Then Discard |
Analyze, All, Readability |
34 |
25 |
Minor |
0 % |
__DIR__ Then Slash |
Analyze, All, Level 3, CI-checks, CE, ChangedBehavior |
2 |
2 |
Major |
14 % |
Don't Change The Blind Var |
Analyze, All |
251 |
173 |
Minor |
73 % |
Don't Mix ++ |
Analyze, All |
140 |
94 |
Minor |
56 % |
Don't Read And Write In One Expression |
Analyze, All, CompatibilityPHP73, CompatibilityPHP74, CE |
51 |
34 |
Critical |
38 % |
Don't Reuse Foreach Source |
Analyze, All |
8 |
8 |
Minor |
0 % |
Double Assignation |
Analyze, All |
103 |
63 |
Major |
59 % |
Double Checks |
Analyze, All |
172 |
80 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple |
159 |
94 |
Minor |
57 % |
Double Object Assignation |
Analyze, All, ClassReview, ChangedBehavior |
18 |
12 |
Minor |
0 % |
Drop Else After Return |
Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE |
29 |
29 |
Minor |
70 % |
Echo With Concat |
Analyze, Performances, All, Simple, Suggestions |
56 |
21 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
14 |
13 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, CE |
54 |
38 |
Minor |
51 % |
Empty Json Error |
Analyze, All, ChangedBehavior |
7 |
6 |
Minor |
0 % |
Empty Instructions |
Analyze, Dead code, All, Simple |
1 |
1 |
Minor |
57 % |
Empty Loop |
Analyze, All, ChangedBehavior |
34 |
22 |
Major |
0 % |
Empty Try Catch |
Analyze, All, Level 3 |
210 |
135 |
Minor |
49 % |
Eval() Usage |
Analyze, Appinfo, Security, Performances, PHP recommendations, OneFile, ClearPHP, All, Simple, CE |
83 |
29 |
Major |
39 % |
eval() Without Try |
Analyze, Security, All, Simple, Level 3, CI-checks, CE, ChangedBehavior |
82 |
29 |
Critical |
36 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
43 |
19 |
Major |
61 % |
Switch Fallthrough |
Inventory, Security, All, Stats |
12 |
11 |
Minor |
39 % |
Foreach Reference Is Not Modified |
Analyze, All, Simple, CI-checks, CE |
9 |
6 |
Minor |
24 % |
Overwritten Source And Value |
Analyze, OneFile, All |
18 |
17 |
Minor |
0 % |
Forgotten Whitespace |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
16 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, CE |
14 |
3 |
Minor |
52 % |
Htmlentities Using Default Flag |
Analyze, All, Simple, CI-checks, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Identical Case In Switch |
Analyze, All, ChangedBehavior |
98 |
21 |
Minor |
0 % |
Identical Conditions |
Analyze, All, Simple, CI-checks, CE |
12 |
8 |
Critical |
28 % |
Identical Consecutive Expression |
Analyze, All |
233 |
91 |
Minor |
59 % |
Identical On Both Sides |
Analyze, All, CI-checks, CE |
1 |
1 |
Major |
19 % |
Identical Variables In Foreach |
Analyze, OneFile, All |
22 |
22 |
Minor |
0 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, CE |
7 |
7 |
Major |
47 % |
Iffectations |
Analyze, All |
1727 |
669 |
Minor |
80 % |
Implicit Conversion To Int |
Analyze, All, LintButWontExec |
17 |
11 |
Minor |
0 % |
Implied If |
Analyze, ClearPHP, All, Simple, Rector, CI-checks, CE |
15 |
6 |
Major |
33 % |
Implode() Arguments Order |
Analyze, All, CI-checks, CE, ChangedBehavior |
30 |
22 |
Minor |
0 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
341 |
102 |
Major |
20 % |
Infinite Recursion |
Analyze, All |
35 |
32 |
Major |
0 % |
Invalid Cast |
Analyze, All, LintButWontExec, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Invalid Date Scanning Format |
Analyze, All |
9 |
4 |
Major |
0 % |
Invalid Regex |
Analyze, All, CI-checks, CE, ChangedBehavior |
7 |
5 |
Major |
37 % |
Is Actually Zero |
Analyze, All, Level 2, CI-checks, CE, ChangedBehavior |
5 |
3 |
Minor |
18 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
24 |
2 |
Minor |
37 % |
Logical Mistakes |
Analyze, All, Simple, Level 1, CI-checks, CE |
4 |
4 |
Critical |
32 % |
Long Arguments |
Analyze, All |
1693 |
611 |
Minor |
68 % |
Max Level Of Nesting |
Analyze, All |
157 |
132 |
Minor |
0 % |
Mbstring Unknown Encoding |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
0 % |
Merge If Then |
Analyze, All, CI-checks, CE, ChangedBehavior |
154 |
123 |
Minor |
0 % |
Mismatched Ternary Alternatives |
Analyze, All, Suggestions, Level 4 |
67 |
48 |
Major |
64 % |
Missing Assignation In Branches |
Analyze, All, ChangedBehavior |
839 |
419 |
Minor |
0 % |
Missing Cases In Switch |
Analyze, All |
15 |
7 |
Minor |
36 % |
Maybe Missing New |
Analyze, All, ChangedBehavior |
11 |
2 |
Critical |
57 % |
Missing Parenthesis |
Analyze, All, Simple, Level 5, CI-checks, CE, ChangedBehavior |
5 |
3 |
Major |
16 % |
Misused Yield |
Analyze, All, ChangedBehavior |
11 |
11 |
Minor |
0 % |
Mixed Concat And Interpolation |
Analyze, Coding Conventions, All |
8 |
5 |
Minor |
45 % |
Modernize Empty With Expression |
Analyze, OneFile, All, Simple |
27 |
16 |
Minor |
63 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, Rector, CI-checks, CE |
2 |
2 |
Minor |
29 % |
Multiple Type Variable |
Analyze, All, Level 4 |
51 |
37 |
Minor |
58 % |
Multiply By One |
Dump, Dum p |
4 |
4 |
Minor |
44 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
352 |
181 |
Major |
84 % |
Nested Match |
Analyze, All, ChangedBehavior, Readability |
2 |
2 |
Minor |
0 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
117 |
71 |
Major |
50 % |
Don't Change Incomings |
Analyze, All |
225 |
41 |
Minor |
44 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior |
606 |
315 |
Major |
42 % |
No Direct Usage |
Analyze, All, Simple |
29 |
22 |
Major |
39 % |
No Empty Regex |
Analyze, All, CI-checks, CE |
1 |
1 |
Critical |
22 % |
No get_class() With Null |
Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All |
1 |
1 |
Major |
0 % |
No Hardcoded Hash |
Analyze, Security, All, Simple |
128 |
30 |
Critical |
45 % |
No Hardcoded Ip |
Analyze, Security, ClearPHP, All, Simple |
333 |
30 |
Minor |
25 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
9 |
5 |
Major |
35 % |
No Hardcoded Port |
Analyze, Security, ClearPHP, All, Simple |
1 |
1 |
Minor |
12 % |
No isset() With empty() |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
2 |
2 |
Minor |
30 % |
No Max On Empty Array |
All, CompatibilityPHP80, ChangedBehavior |
46 |
25 |
Minor |
0 % |
No Need For Else |
Analyze, All |
47 |
43 |
Minor |
74 % |
No Need For Triple Equal |
Analyze, All |
412 |
282 |
Minor |
0 % |
No Null For Index |
Analyze, All, ChangedBehavior |
144 |
50 |
Minor |
0 % |
No Object As Index |
Analyze, All |
1 |
1 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE, ChangedBehavior |
5 |
4 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE |
22 |
19 |
Minor |
58 % |
No Valid Cast |
Analyze, All |
8 |
5 |
Minor |
0 % |
Variable Is Not A Condition |
Analyze, All |
2374 |
881 |
Minor |
93 % |
Non Integer Nor String As Index |
Analyze, All, ChangedBehavior |
304 |
89 |
Minor |
0 % |
@ Operator |
Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE |
398 |
176 |
Minor |
65 % |
Objects Don't Need References |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
4 |
3 |
Minor |
40 % |
include_once() Usage |
Analyze, Appinfo, All, CE |
118 |
60 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
30 |
26 |
Major |
56 % |
Only First Byte |
Analyze, All, ChangedBehavior |
3 |
3 |
Minor |
0 % |
Only Variable Returned By Reference |
Analyze, All, Simple |
6 |
2 |
Major |
3 % |
Overwritten Foreach Var |
Analyze, OneFile, All |
16 |
14 |
Major |
0 % |
PHP7 Dirname |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable |
546 |
156 |
Minor |
44 % |
Phpinfo |
Security, OneFile, All, Simple |
3 |
3 |
Major |
16 % |
Print And Die |
Analyze, All, Simple, CI-checks, CE |
10 |
2 |
Minor |
32 % |
Printf Number Of Arguments |
Analyze, All, CI-checks, CE |
16 |
13 |
Minor |
41 % |
Random Without Try |
Security, All |
70 |
49 |
Critical |
30 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE, ChangedBehavior |
24 |
14 |
Major |
50 % |
Repeated Regex |
Analyze, All, Level 1, CI-checks, CE |
201 |
119 |
Minor |
47 % |
Results May Be Missing |
Analyze, All, Simple, CI-checks, CE |
10 |
4 |
Major |
24 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks, CE |
4 |
4 |
Major |
46 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, CE |
20 |
19 |
Critical |
55 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks, CE |
21 |
19 |
Minor |
39 % |
Should Use Ternary Operator |
Analyze, OneFile, All, Simple, CI-checks, CE |
308 |
214 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
2166 |
761 |
Minor |
85 % |
Should Use Explode Args |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
0 % |
Static Inclusions |
Analyze, All |
157 |
103 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4 |
140 |
77 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
13 |
10 |
Major |
54 % |
Suspicious Comparison |
Analyze, All, Level 3 |
39 |
30 |
Major |
39 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
32 |
30 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
98 |
78 |
Major |
69 % |
Ternary In Concat |
Analyze, All, Simple, Level 3, CI-checks, CE |
7 |
6 |
Critical |
8 % |
Test Then Cast |
Analyze, All |
10 |
6 |
Major |
34 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, CE |
211 |
83 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE |
53 |
36 |
Major |
50 % |
Unconditional Break In Loop |
Analyze, All, Level 3, CI-checks, CE |
62 |
51 |
Major |
48 % |
Unpreprocessed Values |
Analyze, Performances, OneFile, ClearPHP, All, Simple |
26 |
19 |
Minor |
30 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior |
376 |
234 |
Major |
61 % |
Unset In Foreach |
Analyze, Dead code, OneFile, All, Simple |
3 |
3 |
Major |
15 % |
Unsupported Operand Types |
Analyze, PHP recommendations, All |
2 |
1 |
Minor |
0 % |
Unsupported Types With Operators |
Analyze, All, CompatibilityPHP80, CE |
905 |
424 |
Minor |
0 % |
Unused Label |
Dead code, All, Simple, Unused, ChangedBehavior |
11 |
5 |
Minor |
1 % |
Use Constant Instead Of Function |
Analyze, PHP recommendations, All, php-cs-fixable, CI-checks, CE |
6 |
5 |
Minor |
61 % |
Avoid get_class() |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
32 % |
Use Positive Condition |
Analyze, OneFile, All, Simple |
186 |
138 |
Minor |
82 % |
Use Same Types For Comparisons |
Analyze, All |
15 |
9 |
Minor |
0 % |
Use Variable Created Inside Loop |
Dead code, All |
187 |
96 |
Minor |
0 % |
Useless Type Casting |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
61 |
42 |
Minor |
47 % |
Useless Check |
Analyze, OneFile, All, Simple, Level 1, CI-checks, CE |
2 |
1 |
Minor |
35 % |
Useless Coalesce |
Analyze, All, ChangedBehavior |
147 |
119 |
Minor |
0 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2 |
1 |
1 |
Minor |
27 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE |
976 |
504 |
Minor |
63 % |
Useless Null Coalesce |
Analyze, All, Typehints |
213 |
129 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
1744 |
295 |
Minor |
81 % |
Useless Short Ternary |
Analyze, All, ChangedBehavior |
110 |
95 |
Minor |
0 % |
Useless Switch |
Analyze, All, Simple |
1 |
1 |
Major |
32 % |
Useless Unset |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks, CE |
5 |
4 |
Major |
42 % |
var_dump()... Usage |
Analyze, Security, ClearPHP, All, CI-checks, CE |
5 |
5 |
Critical |
42 % |
Wrong Locale |
Analyze, All, Semantics |
5 |
5 |
Major |
0 % |
Wrong Precedence In Expression |
Analyze, All, ChangedBehavior |
38 |
32 |
Minor |
0 % |
Wrong Range Check |
Analyze, All |
1 |
1 |
Major |
11 % |
Already Parents Trait |
Analyze, All |
1 |
1 |
Minor |
0 % |
Cannot Call Static Trait Method Directly |
Analyze, All, CompatibilityPHP81, CompatibilityPHP82 |
13 |
5 |
Minor |
0 % |
Dependant Trait |
Analyze, All, Level 3, ChangedBehavior |
78 |
78 |
Minor |
28 % |
Empty Traits |
Analyze, Dead code, All, Simple, ChangedBehavior |
12 |
8 |
Minor |
12 % |
Method Collision Traits |
Analyze, All, LintButWontExec, ChangedBehavior |
48 |
46 |
Critical |
5 % |
No Private Abstract Method In Trait |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Trait Is Not A Type |
Analyze, All, ClassReview, Typehints |
4 |
3 |
Minor |
0 % |
Trait Not Found |
Analyze, All, LintButWontExec, ChangedBehavior |
38 |
38 |
Minor |
0 % |
Undefined Insteadof |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
1 |
1 |
Major |
0 % |
Undefined Trait |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
16 |
15 |
Critical |
15 % |
Hexadecimal In String |
Inventory, CompatibilityPHP70, CompatibilityPHP71, All |
15 |
10 |
0 |
0 % |
No Real Comparison |
Analyze, PHP recommendations, All, Simple, Level 2, Top10, CI-checks, CE |
11 |
9 |
Major |
26 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks, CE |
3 |
1 |
Minor |
33 % |
Silently Cast Integer |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Minor |
4 % |
String May Hold A Variable |
Analyze, All, Simple |
664 |
167 |
Minor |
59 % |
Strings With Strange Space |
Analyze, All, CI-checks, CE |
6029 |
143 |
Minor |
21 % |
Missing Some Returntype |
Analyze, All, Typehints, CI-checks, CE |
507 |
398 |
Minor |
0 % |
StandaloneType True False Null |
Analyze, Appcontent, All, ChangedBehavior |
7040 |
2240 |
Minor |
0 % |
Wrong Type With Default |
Analyze, All, LintButWontExec, ClassReview |
1342 |
409 |
Minor |
0 % |
Assigned Twice |
Analyze, All |
813 |
222 |
Minor |
79 % |
Lost References |
Analyze, All, Simple |
1 |
1 |
Major |
14 % |
Overwritten Literals |
Analyze, All |
998 |
227 |
Major |
79 % |
Recycled Variables |
Analyze, All |
1340 |
232 |
Minor |
0 % |
Static Variable Initialisation |
All, CompatibilityPHP81, CompatibilityPHP82, ChangedBehavior |
7 |
2 |
Minor |
0 % |
Undefined Constant Name |
Analyze, All, Undefined |
3 |
3 |
Minor |
0 % |
Undefined Variable |
Analyze, All, CI-checks, CE, Undefined |
595 |
185 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
19 |
14 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE |
3194 |
1127 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused |
905 |
273 |
Minor |
87 % |