Ambiguous Array Index |
Analyze, All, Simple, Level 2, Semantics, ChangedBehavior |
8 |
4 |
Minor |
10 % |
Append And Assign Arrays |
Analyze, Internal, All, ChangedBehavior |
38 |
31 |
Minor |
0 % |
Multiple Index Definition |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
2 |
1 |
Minor |
33 % |
Non-constant Index In Array |
Analyze, All, Simple, ChangedBehavior |
2 |
1 |
Minor |
14 % |
Null Or Boolean Arrays |
Analyze, All |
396 |
62 |
Minor |
0 % |
Randomly Sorted Arrays |
Analyze, All, Suggestions, Level 4 |
294 |
60 |
Minor |
41 % |
Too Many Array Dimensions |
Analyze, All |
834 |
66 |
Minor |
0 % |
Weak Type With Array |
Analyze, All, ChangedBehavior |
5291 |
354 |
Minor |
0 % |
Access Protected Structures |
Analyze, All, Simple, IsPHP, IsStub, IsExt |
5 |
4 |
Major |
17 % |
Ambiguous Static |
Analyze, All, Semantics |
357 |
206 |
Minor |
66 % |
Ambiguous Visibilities |
Analyze, All, Semantics, ChangedBehavior |
493 |
269 |
Minor |
70 % |
Avoid option arrays in constructors |
Analyze, All, ClassReview |
15 |
15 |
Minor |
0 % |
Avoid Optional Properties |
Analyze, All |
415 |
134 |
Major |
84 % |
Class, Interface, Enum Or Trait With Identical Names |
Analyze, All |
2 |
2 |
Minor |
19 % |
Clone With Non-Object |
Analyze, All, LintButWontExec |
3 |
3 |
Minor |
33 % |
Could Be Abstract Class |
Analyze, All, ClassReview |
44 |
42 |
Minor |
65 % |
Class Could Be Final |
Analyze, All, ClassReview |
414 |
391 |
Minor |
96 % |
Method Could Be Static |
Analyze, All, ClassReview |
889 |
259 |
Minor |
92 % |
Could Inject Parameter |
Analyze, All, ClassReview, ChangedBehavior |
203 |
109 |
Minor |
0 % |
Cyclic References |
Analyze, All, ClassReview |
10 |
7 |
Minor |
0 % |
Different Argument Counts |
Analyze, All, ClassReview |
19 |
12 |
Minor |
0 % |
No Direct Call To Magic Method |
Analyze, All, Level 2, CI-checks, CE |
19 |
12 |
Major |
43 % |
Don't Send $this In Constructor |
Analyze, All |
9 |
9 |
Minor |
41 % |
Don't Unset Properties |
Analyze, All, Top10, php-cs-fixable, CI-checks, CE |
52 |
24 |
Major |
42 % |
Empty Classes |
Analyze, All, Simple |
38 |
33 |
Minor |
60 % |
Implicit Nullable Type |
Analyze, All, ClassReview |
36 |
10 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
Analyze, All |
46 |
37 |
Critical |
0 % |
Inherited Property Type Must Match |
Analyze, All, LintButWontExec, ClassReview |
23 |
16 |
Minor |
0 % |
Locally Unused Property |
Dead code, All, Simple, Unused |
413 |
134 |
Minor |
76 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
157 |
67 |
Minor |
71 % |
Make Global A Property |
Analyze, All, Simple |
289 |
95 |
Minor |
37 % |
Method Signature Must Be Compatible |
Analyze, All, LintButWontExec |
22 |
14 |
Critical |
53 % |
Mismatch Properties Typehints |
Analyze, All, LintButWontExec, ClassReview |
98 |
35 |
Minor |
0 % |
Multiple Class Declarations |
Analyze, All, Simple, CI-checks, CE |
4 |
2 |
Major |
29 % |
New Object Then Immediate Call |
Analyze, All, ClassReview |
214 |
102 |
Minor |
0 % |
self, parent, static Outside Class |
Analyze, All, LintButWontExec, ChangedBehavior |
1 |
1 |
Major |
8 % |
No Public Access |
Analyze, All |
428 |
123 |
Minor |
61 % |
Non Nullable Getters |
Analyze, All, ClassReview |
1 |
1 |
Minor |
0 % |
Forgotten Visibility |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
688 |
48 |
Minor |
42 % |
Var Keyword |
Analyze, OneFile, ClearPHP, All, Simple, Level 1 |
359 |
42 |
Minor |
4 % |
Parent First |
Analyze, All, Suggestions |
42 |
41 |
Minor |
56 % |
Property Could Be Local |
Analyze, All, ClassReview |
73 |
49 |
Minor |
76 % |
Same Name For Property And Method |
Analyze, All, ClassReview, Semantics |
187 |
34 |
Minor |
0 % |
Never Used Properties |
Analyze, All, Simple, Unused |
232 |
53 |
Minor |
71 % |
Property Used In One Method Only |
Analyze, All |
419 |
149 |
Minor |
84 % |
Scalar Or Object Property |
Analyze, All |
14 |
10 |
Minor |
32 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
315 |
42 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
1247 |
272 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
180 |
14 |
Minor |
50 % |
Too Many Dereferencing |
Analyze, All, ChangedBehavior |
42 |
3 |
Minor |
0 % |
Undefined Classes |
Analyze, All, Stubs, Undefined |
14014 |
730 |
Major |
91 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
1 |
1 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, CE, CompatibilityPHP82, ChangedBehavior, Undefined |
1386 |
195 |
Major |
61 % |
Unfinished Object |
Analyze, All, ClassReview |
263 |
87 |
Major |
0 % |
Unreachable Method |
Analyze, Dead code, All, ClassReview, Unused, ChangedBehavior |
33 |
9 |
Minor |
0 % |
Unresolved Classes |
Analyze, All, Stubs, ChangedBehavior |
10 |
8 |
Major |
76 % |
Unused Classes |
Analyze, Dead code, All, Simple, Unused, ChangedBehavior |
32 |
31 |
Major |
67 % |
Unused Class Constant |
Analyze, All, ClassReview, Unused, ChangedBehavior |
272 |
16 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple, Unused, ChangedBehavior |
1602 |
335 |
Minor |
96 % |
Unused Private Methods |
Dead code, OneFile, All, Simple, Unused, ChangedBehavior |
20 |
10 |
Minor |
50 % |
Unused Private Properties |
Dead code, OneFile, All, Simple, Unused |
3 |
3 |
Minor |
51 % |
Unused Protected Methods |
Dead code, All, Unused, ChangedBehavior |
133 |
57 |
Major |
68 % |
Unused Public Methods |
Analyze, All, ChangedBehavior |
2142 |
379 |
Minor |
0 % |
Use ::Class Operator |
Analyze, Performances, All, Simple, CI-checks, CE, ChangedBehavior |
634 |
225 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
152 |
75 |
Major |
63 % |
Used Once Property |
Analyze, All, ChangedBehavior |
15 |
8 |
Minor |
74 % |
Useless Abstract Class |
Analyze, All, Simple, ChangedBehavior |
9 |
9 |
Minor |
33 % |
Useless Constructor |
Analyze, All, Simple, Level 3, ChangedBehavior |
7 |
7 |
Minor |
41 % |
Useless Method |
Analyze, All |
4 |
2 |
Minor |
0 % |
Weak Typing |
Analyze, All, ChangedBehavior |
77 |
23 |
Minor |
47 % |
Wrong Typed Property Default |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
69 |
42 |
Minor |
0 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
590 |
72 |
Minor |
54 % |
Constant Used Only Once |
Analyze, All |
81 |
29 |
Minor |
0 % |
Multiple Constant Definition |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
149 |
54 |
Minor |
41 % |
Undefined Constants |
stubs |
780 |
48 |
Minor |
71 % |
Unused Constants |
Dead code, All, Simple, Unused, ChangedBehavior |
168 |
12 |
Minor |
39 % |
Could Be A Constant |
All, Dump |
4108 |
470 |
Minor |
0 % |
Catch With Undefined Variable |
Analyze, All, ChangedBehavior, Undefined |
6 |
2 |
Minor |
0 % |
Undefined Caught Exceptions |
Dead code, All, ChangedBehavior |
1 |
1 |
None |
53 % |
Caught Exceptions |
All, Dump, ChangedBehavior |
130 |
33 |
None |
100 % |
Converted Exceptions |
Analyze, All |
1 |
1 |
Minor |
0 % |
Could Drop Variable |
Dead code, All, Suggestions, ChangedBehavior |
86 |
26 |
Minor |
0 % |
Forgotten Thrown |
Analyze, All, ChangedBehavior |
2 |
2 |
Minor |
20 % |
Rethrown Exceptions |
Dead code, All, ChangedBehavior |
1 |
1 |
Minor |
20 % |
Throw Raw Exceptions |
Analyze, All, Suggestions |
211 |
48 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All, ChangedBehavior |
213 |
49 |
Minor |
84 % |
Unthrown Exception |
Analyze, Dead code, ClearPHP, All, Simple, ChangedBehavior |
38 |
38 |
Minor |
45 % |
Useless Try |
Analyze, All, ChangedBehavior |
30 |
14 |
Minor |
0 % |
Missing Include |
Analyze, All |
1162 |
243 |
Critical |
65 % |
Native Alias Functions Usage |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
108 |
16 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
Analyze, All, ChangedBehavior |
663 |
192 |
Minor |
84 % |
Callback Function Needs Return |
Analyze, All, CI-checks, CE |
20 |
14 |
Major |
42 % |
Cancelled Parameter |
Analyze, All, ChangedBehavior |
13 |
11 |
Minor |
0 % |
Could Make A Function |
Analyze, All, Suggestions, ChangedBehavior |
16431 |
1156 |
Minor |
66 % |
Deep Definitions |
Analyze, Appinfo, All, Simple, CE |
148 |
28 |
Major |
13 % |
Don't Collect Void |
Analyze, All, IsPHP, IsStub, IsExt |
15780 |
868 |
Minor |
0 % |
Empty Function |
Analyze, All, Simple |
87 |
36 |
Minor |
74 % |
Hardcoded Passwords |
Analyze, Security, OneFile, All, Simple, Level 3 |
268 |
67 |
Major |
70 % |
Method Is Not An If |
Analyze, All |
241 |
139 |
Minor |
0 % |
Mismatch Parameter Name |
Analyze, All, CompatibilityPHP80, CE, ChangedBehavior |
14 |
13 |
Minor |
0 % |
Mismatched Default Arguments |
Analyze, All, Typechecks |
706 |
133 |
Minor |
80 % |
Mismatched Typehint |
Analyze, All, Typechecks |
602 |
119 |
Major |
66 % |
Modified Typed Parameter |
Analyze, All, ClassReview |
47 |
14 |
Minor |
0 % |
Must Return Methods |
Analyze, All, Simple, Level 2, LintButWontExec, CI-checks, CE, ChangedBehavior |
5 |
4 |
Major |
34 % |
Never Called Parameter |
Analyze, All, Suggestions, Rector, Unused |
336 |
135 |
Minor |
92 % |
No Boolean As Default |
Analyze, All |
812 |
221 |
Minor |
84 % |
No Default For Referenced Parameter |
Analyze, All |
11 |
10 |
Minor |
0 % |
No Referenced Void |
Analyze, All, CompatibilityPHP81, Deprecated |
1 |
1 |
Minor |
0 % |
No Return Used |
Analyze, All, Suggestions, Level 4 |
231 |
112 |
Minor |
69 % |
Only Variable For Reference |
Analyze, All, LintButWontExec |
2 |
1 |
Critical |
20 % |
Redeclared PHP Functions |
Analyze, Appinfo, All, Simple, CI-checks, CE |
114 |
5 |
Minor |
26 % |
Retyped Reference |
Analyze, All, Typehints |
12 |
10 |
Major |
0 % |
Too Many Local Variables |
Analyze, All |
309 |
177 |
Minor |
64 % |
Undefined Functions |
stubs |
28 |
16 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
502 |
207 |
Major |
90 % |
Unused Functions |
Dead code, All, Simple, Unused |
704 |
94 |
Minor |
52 % |
Unused Returned Value |
Analyze, Dead code, OneFile, All, Simple, Unused |
7327 |
809 |
Minor |
41 % |
Use Constant As Arguments |
Analyze, All, Simple, CI-checks, CE |
5 |
5 |
Major |
30 % |
Useless Argument |
Analyze, All |
4 |
4 |
Minor |
0 % |
Useless Referenced Argument |
Analyze, All, ChangedBehavior |
61 |
37 |
Minor |
58 % |
Useless Return |
Analyze, OneFile, All, Simple, Level 4 |
4 |
4 |
Minor |
30 % |
Useless Type Check |
Dead code, OneFile, All |
1 |
1 |
Minor |
0 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, CE, IsPHP, IsStub, IsExt |
46235 |
1193 |
Minor |
98 % |
Using Deprecated Method |
Analyze, All, Attributes |
279 |
63 |
Minor |
0 % |
Wrong Argument Type |
Analyze, All, Typechecks |
34554 |
1148 |
Minor |
0 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, CE, Stubs, IsPHP, IsStub, IsExt |
18121 |
928 |
Major |
81 % |
Wrong Type Returned |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE |
5001 |
551 |
Minor |
0 % |
Wrong Type With Call |
Analyze, All, Typechecks, CI-checks, CE |
38981 |
1217 |
Minor |
0 % |
Forgotten Interface |
Analyze, All, ChangedBehavior |
41 |
41 |
Minor |
48 % |
Interfaces Is Not Implemented |
Analyze, All, LintButWontExec, ClassReview, CI-checks, CE, ChangedBehavior |
2 |
2 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, LintButWontExec, CI-checks, CE, ChangedBehavior, Undefined |
1 |
1 |
Major |
72 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks, ChangedBehavior |
4 |
4 |
Minor |
59 % |
Multiple Alias Definitions |
Analyze, All, Simple, CI-checks, CE, ChangedBehavior |
38 |
38 |
Minor |
44 % |
No array_merge() In Loops |
Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE, ChangedBehavior |
76 |
52 |
Major |
57 % |
Logical To in_array |
Analyze, All, Level 2, ChangedBehavior |
290 |
110 |
Minor |
67 % |
Memoize MagicCall |
Analyze, All, ClassReview, ChangedBehavior |
10 |
7 |
Minor |
0 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE, ChangedBehavior |
482 |
110 |
Minor |
74 % |
strpos() Too Much |
Analyze, All, CI-checks, CE, ChangedBehavior |
22 |
13 |
Minor |
49 % |
array_key_exists() Works On Arrays |
Analyze, All, CompatibilityPHP74, CE, ChangedBehavior |
177 |
70 |
Minor |
0 % |
Assumptions |
Analyze, All, ChangedBehavior |
51 |
37 |
Minor |
0 % |
Avoid get_object_vars() |
All, CompatibilityPHP74, CompatibilityPHP80, ChangedBehavior |
56 |
34 |
Minor |
0 % |
Avoid mb_dectect_encoding() |
Analyze, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Use random_int() |
Analyze, Security, CompatibilityPHP71, All, Simple, Level 2, CI-checks, CE, ChangedBehavior |
43 |
18 |
Major |
59 % |
Clone Constant |
Analyze, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, LintButWontExec, CompatibilityPHP74, CompatibilityPHP80 |
2 |
1 |
Minor |
0 % |
Comparison On Different Types |
All, Dump, ChangedBehavior |
4 |
4 |
Minor |
0 % |
Constant Scalar Expression |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, ChangedBehavior |
1873 |
438 |
Major |
0 % |
Deprecated PHP Functions |
Analyze, All, CI-checks, CE |
3 |
3 |
Major |
23 % |
Don't Pollute Global Space |
Analyze, All |
6040 |
792 |
Minor |
0 % |
Exit Without Argument |
Analyze, All, ChangedBehavior |
291 |
114 |
Minor |
0 % |
False To Array Conversion |
Analyze, All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82 |
1123 |
90 |
Minor |
0 % |
Wrong fopen() Mode |
Analyze, All, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
17 % |
idn_to_ascii() New Default |
All, CompatibilityPHP74, CE |
1 |
1 |
Minor |
2 % |
Include Variables |
All, Dump |
29 |
22 |
Minor |
0 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
57 |
35 |
Major |
76 % |
Is_A() With String |
Analyze, All, Simple, Rector, CI-checks, CE, ChangedBehavior |
1 |
1 |
Minor |
0 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE, ChangedBehavior |
125 |
71 |
Minor |
53 % |
PHP Native Interfaces and Return Type |
Analyze, All, LintButWontExec, CompatibilityPHP81, Deprecated, ChangedBehavior |
7 |
2 |
Minor |
0 % |
List With Keys |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, Appcontent, CompatibilityPHP53, CompatibilityPHP70, All, CE, ChangedBehavior |
9 |
7 |
Major |
34 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
52 |
5 |
Minor |
43 % |
Possible Missing Subpattern |
Analyze, All, Top10, CI-checks, CE, ChangedBehavior |
42 |
30 |
Minor |
45 % |
PHP Native Class Type Compatibility |
Analyze, All, CompatibilityPHP81, ChangedBehavior |
13 |
2 |
Major |
0 % |
No Class In Global |
Analyze, All, CI-checks, CE, ChangedBehavior |
4977 |
761 |
Minor |
77 % |
No Null For Native PHP Functions |
Analyze, All, CompatibilityPHP81, Deprecated, ChangedBehavior |
223 |
64 |
Minor |
0 % |
PHP 7.4 Removed Functions |
All, CompatibilityPHP74, CE |
1 |
1 |
Critical |
0 % |
PHP 80 Named Parameter Variadic |
All, CompatibilityPHP80, CE |
8 |
6 |
Minor |
0 % |
Php 8.0 Only TypeHints |
Appinfo, CompatibilityPHP56, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CompatibilityPHP74, CE, ChangedBehavior |
141 |
51 |
Minor |
0 % |
PHP 8.0 Removed Directives |
All, CompatibilityPHP80, CE, CompatibilityPHP81 |
6 |
5 |
Minor |
0 % |
PHP 8.0 Resources Turned Into Objects |
All, CompatibilityPHP80, CE |
1 |
1 |
Major |
0 % |
PHP 8.1 Removed Directives |
All, CompatibilityPHP81 |
1 |
1 |
Minor |
0 % |
$HTTP_RAW_POST_DATA Usage |
Appinfo, CompatibilityPHP56, All, CE |
9 |
2 |
Major |
3 % |
Scalar Are Not Arrays |
Analyze, All, CompatibilityPHP74, CI-checks, CE, ChangedBehavior |
2404 |
142 |
Minor |
0 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
729 |
189 |
Major |
71 % |
String Int Comparison |
All, CompatibilityPHP80, ChangedBehavior |
68 |
27 |
Minor |
0 % |
Strtr Arguments |
Analyze, All, CI-checks, CE |
2 |
2 |
Major |
7 % |
Too Many Native Calls |
Analyze, All, IsPHP, IsExt |
17 |
15 |
Minor |
49 % |
Typed Property Usage |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, All, CompatibilityPHP73, CE |
1625 |
355 |
Minor |
6 % |
Unknown Pcre2 Option |
Analyze, All, CompatibilityPHP73 |
2 |
2 |
Minor |
17 % |
Use Nullable Type |
Appinfo, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, CompatibilityPHP70, All, CE |
152 |
54 |
Major |
90 % |
Use PHP Object API |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
10 |
3 |
Minor |
27 % |
Avoid Using stdClass |
Analyze, OneFile, All, Simple, Level 4 |
68 |
45 |
Minor |
46 % |
Wrong Type For Native PHP Function |
Analyze, All, CI-checks, CE |
2911 |
567 |
Minor |
0 % |
Always Anchor Regex |
Security, All |
202 |
81 |
Major |
65 % |
Avoid Those Hash Functions |
Security, All |
132 |
76 |
Major |
62 % |
Configure Extract |
Security, All |
1 |
1 |
Minor |
25 % |
Safe Curl Options |
Security, All, ChangedBehavior |
5 |
2 |
Major |
15 % |
Direct Injection |
Security, All, ChangedBehavior |
81 |
50 |
Major |
51 % |
Don't Echo Error |
Analyze, Security, All, Simple, Level 1, CI-checks, CE, ChangedBehavior |
3 |
3 |
Critical |
35 % |
Dynamic Library Loading |
Security, All, ChangedBehavior |
1 |
1 |
Major |
4 % |
Encoded Simple Letters |
Security, All, ChangedBehavior |
112 |
27 |
Minor |
41 % |
Incompatible Types With Incoming Values |
Security, All, ChangedBehavior |
580 |
127 |
Minor |
0 % |
Indirect Injection |
Security, All, ChangedBehavior |
1522 |
312 |
Critical |
42 % |
Insecure Integer Validation |
Security, All, ChangedBehavior |
21 |
9 |
Major |
0 % |
Keep Files Access Restricted |
Security, All, ChangedBehavior |
6 |
2 |
Minor |
0 % |
Mkdir Default |
Security, All, ChangedBehavior |
2 |
2 |
Major |
37 % |
move_uploaded_file Instead Of copy |
Security, All, ChangedBehavior |
1 |
1 |
Major |
3 % |
No ENT_IGNORE |
Security, All, ChangedBehavior |
1 |
1 |
Minor |
0 % |
No Net For Xml Load |
Security, All, ChangedBehavior |
9 |
7 |
Major |
51 % |
Avoid sleep()/usleep() |
Security, All, ChangedBehavior |
4 |
4 |
Minor |
41 % |
No Weak SSL Crypto |
Security, All, ChangedBehavior |
5 |
4 |
Minor |
0 % |
Set Cookie Safe Arguments |
Security, All, ChangedBehavior |
33 |
6 |
Major |
25 % |
Should Use Prepared Statement |
Analyze, Security, All, Simple, CI-checks, CE, ChangedBehavior |
30 |
9 |
Major |
28 % |
Should Use session_regenerateid() |
Security, All, ChangedBehavior |
1 |
1 |
Major |
18 % |
Unserialize Second Arg |
Security, All |
13 |
12 |
Critical |
50 % |
Adding Zero |
Dump |
31 |
13 |
Minor |
69 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
70 |
48 |
Major |
56 % |
Alternative Syntax Consistence |
Analyze, All |
210 |
1 |
Major |
21 % |
Comparison Is Always The Same |
Analyze, All, ChangedBehavior |
295 |
114 |
Minor |
0 % |
Array Access On Literal Array |
Analyze, All, Semantics, ChangedBehavior |
3 |
1 |
Minor |
0 % |
Bail Out Early |
Analyze, OneFile, All, Simple, Level 4 |
944 |
316 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE |
111 |
36 |
Minor |
77 % |
Buried Assignation |
Analyze, All |
223 |
56 |
Minor |
84 % |
Cast To Boolean |
Analyze, OneFile, All, Simple, Level 1 |
55 |
35 |
Minor |
56 % |
Check All Types |
Analyze, All |
250 |
109 |
Major |
69 % |
Check Division By Zero |
Analyze, All, ChangedBehavior |
147 |
61 |
Minor |
0 % |
Check JSON |
Analyze, All, CI-checks, CE |
55 |
38 |
Major |
65 % |
Common Alternatives |
Analyze, All, Simple |
273 |
93 |
Major |
80 % |
Concat Empty String |
Analyze, OneFile, All |
50 |
16 |
Minor |
0 % |
Could Be Else |
Analyze, All |
37 |
28 |
Minor |
49 % |
Could Be Spaceship |
Analyze, All, Suggestions |
1 |
1 |
Minor |
0 % |
Could Be A Static Variable |
Analyze, OneFile, All, ClassReview, ChangedBehavior |
27 |
18 |
Major |
23 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE |
30 |
14 |
Major |
56 % |
Could Use Short Assignation |
Analyze, Performances, OneFile, All, Simple, Rector, CI-checks, CE, ChangedBehavior |
78 |
35 |
Minor |
63 % |
Could Use str_repeat() |
Analyze, All, Level 1, Top10, CI-checks, CE |
3 |
3 |
Minor |
14 % |
Dangling Array References |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 1, Top10, CI-checks, CE |
34 |
27 |
Major |
46 % |
Default Then Discard |
Analyze, All, Readability |
3 |
2 |
Minor |
0 % |
Don't Change The Blind Var |
Analyze, All |
191 |
115 |
Minor |
73 % |
Don't Mix ++ |
Analyze, All |
110 |
36 |
Minor |
56 % |
Don't Read And Write In One Expression |
Analyze, All, CompatibilityPHP73, CompatibilityPHP74, CE |
8 |
4 |
Critical |
38 % |
Don't Reuse Foreach Source |
Analyze, All |
2 |
2 |
Minor |
0 % |
Double Checks |
Analyze, All |
188 |
80 |
Minor |
0 % |
Double Instructions |
Analyze, All, Simple |
32 |
15 |
Minor |
57 % |
Drop Else After Return |
Analyze, OneFile, All, Simple, Suggestions, Level 4, CI-checks, CE |
311 |
116 |
Minor |
70 % |
Echo With Concat |
Analyze, Performances, All, Simple, Suggestions |
532 |
148 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
183 |
81 |
Minor |
66 % |
Empty Blocks |
Analyze, All, Simple, CI-checks, CE |
67 |
22 |
Minor |
51 % |
Empty Json Error |
Analyze, All, ChangedBehavior |
12 |
10 |
Minor |
0 % |
Empty Loop |
Analyze, All, ChangedBehavior |
5 |
2 |
Major |
0 % |
Empty Try Catch |
Analyze, All, Level 3 |
2 |
2 |
Minor |
49 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
348 |
120 |
Major |
61 % |
Switch Fallthrough |
Inventory, Security, All, Stats |
10 |
9 |
Minor |
39 % |
Foreach Reference Is Not Modified |
Analyze, All, Simple, CI-checks, CE |
3 |
2 |
Minor |
24 % |
Overwritten Source And Value |
Analyze, OneFile, All |
1 |
1 |
Minor |
0 % |
Global Usage |
Analyze, Appinfo, ClearPHP, All, CE |
1842 |
272 |
Minor |
52 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, CE |
39 |
18 |
Major |
40 % |
Htmlentities Using Default Flag |
Analyze, All, Simple, CI-checks, ChangedBehavior |
42 |
19 |
Minor |
0 % |
Identical Case In Switch |
Analyze, All, ChangedBehavior |
120 |
23 |
Minor |
0 % |
Identical Conditions |
Analyze, All, Simple, CI-checks, CE |
15 |
5 |
Critical |
28 % |
Identical Consecutive Expression |
Analyze, All |
79 |
28 |
Minor |
59 % |
If With Same Conditions |
Analyze, All, Simple, CI-checks, CE |
59 |
42 |
Major |
47 % |
Iffectations |
Analyze, All |
409 |
39 |
Minor |
80 % |
Implicit Conversion To Int |
Analyze, All, LintButWontExec |
4 |
3 |
Minor |
0 % |
Implied If |
Analyze, ClearPHP, All, Simple, Rector, CI-checks, CE |
26 |
1 |
Major |
33 % |
Implode() Arguments Order |
Analyze, All, CI-checks, CE, ChangedBehavior |
14 |
10 |
Minor |
0 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, CE, ChangedBehavior |
135 |
39 |
Major |
20 % |
Infinite Recursion |
Analyze, All |
18 |
13 |
Major |
0 % |
Invalid Pack Format |
Analyze, All, CI-checks, CE, ChangedBehavior |
4 |
2 |
Major |
0 % |
Invalid Regex |
Analyze, All, CI-checks, CE, ChangedBehavior |
1 |
1 |
Major |
37 % |
Is Actually Zero |
Analyze, All, Level 2, CI-checks, CE, ChangedBehavior |
4 |
3 |
Minor |
18 % |
list() May Omit Variables |
Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE |
36 |
20 |
Minor |
37 % |
Logical Mistakes |
Analyze, All, Simple, Level 1, CI-checks, CE |
9 |
8 |
Critical |
32 % |
Long Arguments |
Analyze, All |
1430 |
321 |
Minor |
68 % |
Max Level Of Nesting |
Analyze, All |
235 |
125 |
Minor |
0 % |
Merge If Then |
Analyze, All, CI-checks, CE, ChangedBehavior |
658 |
236 |
Minor |
0 % |
Mismatched Ternary Alternatives |
Analyze, All, Suggestions, Level 4 |
44 |
27 |
Major |
64 % |
Missing Assignation In Branches |
Analyze, All, ChangedBehavior |
1742 |
388 |
Minor |
0 % |
Missing Cases In Switch |
Analyze, All |
23 |
15 |
Minor |
36 % |
Maybe Missing New |
Analyze, All, ChangedBehavior |
582 |
1 |
Critical |
57 % |
Mixed Concat And Interpolation |
Analyze, Coding Conventions, All |
74 |
30 |
Minor |
45 % |
Modernize Empty With Expression |
Analyze, OneFile, All, Simple |
1334 |
197 |
Minor |
63 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, Rector, CI-checks, CE |
28 |
5 |
Minor |
29 % |
Multiple Type Cases In Switch |
All, CompatibilityPHP80 |
1 |
1 |
Minor |
0 % |
Multiple Type Variable |
Analyze, All, Level 4 |
116 |
61 |
Minor |
58 % |
Multiply By One |
Dump, Dum p |
9 |
5 |
Minor |
44 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
1206 |
291 |
Major |
84 % |
Nested Ternary |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
26 |
16 |
Major |
50 % |
Next Month Trap |
Analyze, All, Top10, CI-checks, CE |
2 |
2 |
Major |
8 % |
Don't Change Incomings |
Analyze, All |
163 |
49 |
Minor |
44 % |
No Choice |
Analyze, All, Simple, Level 2, Top10, Rector, CI-checks, CE, ChangedBehavior |
14 |
11 |
Major |
42 % |
No Direct Usage |
Analyze, All, Simple |
6 |
4 |
Major |
39 % |
No Hardcoded Hash |
Analyze, Security, All, Simple |
60 |
15 |
Critical |
45 % |
No Hardcoded Ip |
Analyze, Security, ClearPHP, All, Simple |
1 |
1 |
Minor |
25 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Major |
35 % |
No isset() With empty() |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
13 |
13 |
Minor |
30 % |
No Max On Empty Array |
All, CompatibilityPHP80, ChangedBehavior |
56 |
37 |
Minor |
0 % |
No Need For Else |
Analyze, All |
354 |
127 |
Minor |
74 % |
No Need For Triple Equal |
Analyze, All |
32 |
21 |
Minor |
0 % |
No Null For Index |
Analyze, All, ChangedBehavior |
27 |
13 |
Minor |
0 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE, ChangedBehavior |
189 |
61 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, CompatibilityPHP71, All, Simple, Suggestions, Level 2, Top10, CI-checks, CE |
338 |
38 |
Minor |
58 % |
No Valid Cast |
Analyze, All |
2 |
2 |
Minor |
0 % |
Variable Is Not A Condition |
Analyze, All |
4881 |
565 |
Minor |
93 % |
Non Integer Nor String As Index |
Analyze, All, ChangedBehavior |
88 |
24 |
Minor |
0 % |
@ Operator |
Analyze, Appinfo, Performances, ClearPHP, All, CI-checks, CE |
382 |
60 |
Minor |
65 % |
Not Not |
Analyze, OneFile, All, Simple, CI-checks, CE |
2 |
1 |
Minor |
14 % |
Objects Don't Need References |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
74 |
3 |
Minor |
40 % |
include_once() Usage |
Analyze, Appinfo, All, CE |
882 |
260 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All, ChangedBehavior |
609 |
196 |
Major |
56 % |
Only First Byte |
Analyze, All, ChangedBehavior |
9 |
5 |
Minor |
0 % |
Overwritten Foreach Var |
Analyze, OneFile, All |
6 |
6 |
Major |
0 % |
PHP7 Dirname |
CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP53, All, Suggestions, php-cs-fixable |
12 |
10 |
Minor |
44 % |
Phpinfo |
Security, OneFile, All, Simple |
1 |
1 |
Major |
16 % |
Print And Die |
Analyze, All, Simple, CI-checks, CE |
8 |
8 |
Minor |
32 % |
Printf Number Of Arguments |
Analyze, All, CI-checks, CE |
5 |
3 |
Minor |
41 % |
Random Without Try |
Security, All |
24 |
6 |
Critical |
30 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE, ChangedBehavior |
117 |
65 |
Major |
50 % |
Repeated Regex |
Analyze, All, Level 1, CI-checks, CE |
291 |
110 |
Minor |
47 % |
Results May Be Missing |
Analyze, All, Simple, CI-checks, CE |
4 |
3 |
Major |
24 % |
Return True False |
Analyze, All, Simple, Level 1, CI-checks, CE |
48 |
28 |
Major |
46 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, CE |
51 |
44 |
Critical |
55 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks, CE |
1 |
1 |
Minor |
39 % |
Should Use Ternary Operator |
Analyze, OneFile, All, Simple, CI-checks, CE |
1152 |
318 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
3340 |
469 |
Minor |
85 % |
Should Use Explode Args |
Analyze, All, CI-checks, CE |
1 |
1 |
Minor |
0 % |
Sprintf Format Compilation |
Analyze, All |
2 |
1 |
Minor |
0 % |
Static Inclusions |
Analyze, All |
1234 |
263 |
Minor |
0 % |
Static Loop |
Analyze, All, Simple, Level 4 |
195 |
138 |
Minor |
67 % |
Strpos()-like Comparison |
Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE |
31 |
23 |
Major |
54 % |
Suspicious Comparison |
Analyze, All, Level 3 |
16 |
8 |
Major |
39 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
94 |
57 |
Minor |
58 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
171 |
101 |
Major |
69 % |
Test Then Cast |
Analyze, All |
21 |
16 |
Major |
34 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, CE |
106 |
42 |
Major |
49 % |
Unchecked Resources |
Analyze, ClearPHP, All, Simple, Level 2, CI-checks, CE |
17 |
13 |
Major |
50 % |
Unconditional Break In Loop |
Analyze, All, Level 3, CI-checks, CE |
46 |
37 |
Major |
48 % |
Unpreprocessed Values |
Analyze, Performances, OneFile, ClearPHP, All, Simple |
4 |
3 |
Minor |
30 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3, Unused, ChangedBehavior |
264 |
109 |
Major |
61 % |
Unset In Foreach |
Analyze, Dead code, OneFile, All, Simple |
1 |
1 |
Major |
15 % |
Unsupported Operand Types |
Analyze, PHP recommendations, All |
1 |
1 |
Minor |
0 % |
Unsupported Types With Operators |
Analyze, All, CompatibilityPHP80, CE |
501 |
192 |
Minor |
0 % |
Unused Global |
Analyze, All, Simple, Unused |
33 |
1 |
Minor |
22 % |
Unused Label |
Dead code, All, Simple, Unused, ChangedBehavior |
1 |
1 |
Minor |
1 % |
Use Constant Instead Of Function |
Analyze, PHP recommendations, All, php-cs-fixable, CI-checks, CE |
30 |
14 |
Minor |
61 % |
Use Positive Condition |
Analyze, OneFile, All, Simple |
489 |
209 |
Minor |
82 % |
Use Same Types For Comparisons |
Analyze, All |
19 |
12 |
Minor |
0 % |
Use Variable Created Inside Loop |
Dead code, All |
281 |
114 |
Minor |
0 % |
Useless Type Casting |
Analyze, PHP recommendations, OneFile, All, RadwellCodes, Simple, Level 4, CI-checks, CE |
239 |
89 |
Minor |
47 % |
Useless Check |
Analyze, OneFile, All, Simple, Level 1, CI-checks, CE |
10 |
7 |
Minor |
35 % |
Useless Global |
Analyze, OneFile, All, Simple, Level 2 |
44 |
23 |
Minor |
27 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE |
45 |
27 |
Minor |
63 % |
Useless Null Coalesce |
Analyze, All, Typehints |
2 |
2 |
Minor |
0 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
971 |
200 |
Minor |
81 % |
Useless Switch |
Analyze, All, Simple |
12 |
10 |
Major |
32 % |
Useless Unset |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks, CE |
25 |
16 |
Major |
42 % |
Wrong Locale |
Analyze, All, Semantics |
1 |
1 |
Major |
0 % |
Wrong Precedence In Expression |
Analyze, All, ChangedBehavior |
4 |
4 |
Minor |
0 % |
No Real Comparison |
Analyze, PHP recommendations, All, Simple, Level 2, Top10, CI-checks, CE |
3 |
2 |
Major |
26 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks, CE |
12 |
10 |
Minor |
33 % |
Should Typecast |
Analyze, OneFile, All, Simple, Rector, CI-checks, CE |
86 |
19 |
Minor |
49 % |
String May Hold A Variable |
Analyze, All, Simple |
276 |
79 |
Minor |
59 % |
Strings With Strange Space |
Analyze, All, CI-checks, CE |
14 |
2 |
Minor |
21 % |
Missing Some Returntype |
Analyze, All, Typehints, CI-checks, CE |
319 |
120 |
Minor |
0 % |
StandaloneType True False Null |
Analyze, Appcontent, All, ChangedBehavior |
116 |
44 |
Minor |
0 % |
Wrong Type With Default |
Analyze, All, LintButWontExec, ClassReview |
3358 |
441 |
Minor |
0 % |
Assigned Twice |
Analyze, All |
2836 |
285 |
Minor |
79 % |
Lost References |
Analyze, All, Simple |
1 |
1 |
Major |
14 % |
Overwritten Literals |
Analyze, All |
3711 |
287 |
Major |
79 % |
Recycled Variables |
Analyze, All |
62 |
15 |
Minor |
0 % |
Undefined Variable |
Analyze, All, CI-checks, CE, Undefined |
6608 |
290 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
248 |
63 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, OneFile, ClearPHP, All, Simple, Level 4, CE |
2065 |
398 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple, Unused |
419 |
118 |
Minor |
87 % |