Null Or Boolean Arrays |
All, Analyze, ChangedBehavior |
8 |
1 |
Minor |
0 % |
Arrays/WeakType |
All, Analyze |
78 |
5 |
Minor |
0 % |
Ambiguous Visibilities |
All, Analyze, Semantics |
8 |
2 |
Minor |
70 % |
Avoid Optional Properties |
All, Analyze |
7 |
3 |
Major |
84 % |
Class Could Be Final |
All, Analyze, ClassReview |
8 |
8 |
Minor |
96 % |
Method Could Be Static |
All, Analyze, ClassReview |
17 |
5 |
Minor |
92 % |
Could Inject Param |
All, Analyze, ClassReview |
2 |
1 |
Minor |
0 % |
Incompatible Signature Methods With Covariance |
All, Analyze |
1 |
1 |
Critical |
0 % |
Assign Default To Properties |
Analyze, ClearPHP, All, Simple, Level 2 |
2 |
1 |
Minor |
71 % |
Method Signature Must Be Compatible |
All, Analyze, LintButWontExec |
1 |
1 |
Critical |
53 % |
No Public Access |
Analyze, All |
44 |
4 |
Minor |
61 % |
Property Could Be Local |
All, Analyze, ClassReview |
4 |
1 |
Minor |
76 % |
Never Used Properties |
Analyze, All, Simple, Unused |
7 |
3 |
Minor |
71 % |
Property Used In One Method Only |
All, Analyze |
25 |
4 |
Minor |
84 % |
Could Use self |
Analyze, All, Simple, Suggestions, Level 3, ClassReview |
1 |
1 |
Minor |
63 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
30 |
6 |
Minor |
95 % |
Static Methods Called From Object |
Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE |
11 |
1 |
Minor |
50 % |
Undefined Classes |
Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt |
30 |
7 |
Major |
91 % |
Undefined Parent |
Analyze, All, Simple, Undefined |
1 |
1 |
Minor |
45 % |
Undefined Properties |
Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE |
7 |
3 |
Major |
61 % |
Unfinished Object |
All, Analyze, ClassReview |
9 |
4 |
Major |
0 % |
Unresolved Classes |
Analyze, All, Stubs |
3 |
2 |
Major |
76 % |
Unused Class Constant |
All, Analyze, ClassReview, Unused |
3 |
3 |
Minor |
0 % |
Unused Public Method |
All, Analyze |
33 |
5 |
Minor |
0 % |
Use ::Class Operator |
All, Analyze, Performances, Simple, CI-checks, CE |
9 |
3 |
Minor |
71 % |
Use Instanceof |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Major |
63 % |
Used Once Property |
All, Analyze |
3 |
2 |
Minor |
74 % |
Use const |
Analyze, Coding Conventions, All, Top10, CI-checks, CE |
6 |
1 |
Minor |
54 % |
Catch With Undefined Variable |
All, Analyze, Undefined |
2 |
2 |
Minor |
0 % |
Throw Raw Exceptions |
All, Analyze, Suggestions |
5 |
1 |
Minor |
0 % |
Uncaught Exceptions |
Analyze, All |
6 |
2 |
Minor |
84 % |
Missing Include |
All, Analyze |
31 |
17 |
Critical |
65 % |
Native Alias Functions Usage |
Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE |
5 |
1 |
Minor |
20 % |
Use Named Boolean In Argument Definition |
All, Analyze |
13 |
4 |
Minor |
84 % |
Callback Function Needs Return |
All, Analyze, CI-checks, CE |
5 |
2 |
Major |
42 % |
Cancelled Parameter |
All, Analyze |
1 |
1 |
Minor |
0 % |
Could Make A Function |
All, Analyze, Suggestions |
149 |
71 |
Minor |
66 % |
Hardcoded Passwords |
Analyze, OneFile, Security, All, Simple, Level 3 |
111 |
65 |
Major |
70 % |
Mismatched Default Arguments |
All, Analyze, Typechecks |
6 |
1 |
Minor |
80 % |
Never Called Parameter |
All, Analyze, Suggestions, Rector, Unused |
12 |
3 |
Minor |
92 % |
No Boolean As Default |
All, Analyze |
14 |
4 |
Minor |
84 % |
No Return Used |
All, Analyze, Suggestions, Level 4 |
5 |
3 |
Minor |
69 % |
Retyped Reference |
All, Analyze, Typehints |
1 |
1 |
Major |
0 % |
Too Many Local Variables |
All, Analyze |
2 |
2 |
Minor |
64 % |
Undefined Functions |
Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE |
7 |
2 |
Major |
68 % |
Unused Parameter |
Analyze, All, Simple, Unused |
8 |
3 |
Major |
90 % |
Useless Referenced Argument |
All, Analyze |
2 |
1 |
Minor |
58 % |
Uses Default Values |
Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE |
758 |
81 |
Minor |
98 % |
Wrong Number Of Arguments |
Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE |
1 |
1 |
Major |
81 % |
Wrong Type Returned |
All, Analyze, ClassReview, CI-checks, LintButWontExec, CE |
53 |
5 |
Minor |
0 % |
Undefined Interfaces |
Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE |
2 |
1 |
Major |
72 % |
Unresolved Use |
Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt |
3 |
1 |
Major |
69 % |
Logical To in_array |
All, Analyze, Level 2 |
4 |
2 |
Minor |
67 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4, CI-checks, CE |
12 |
6 |
Minor |
74 % |
strpos() Too Much |
All, Analyze, CI-checks, CE |
4 |
1 |
Minor |
49 % |
array_key_exists() Works On Arrays |
All, CompatibilityPHP74, Analyze, CE |
6 |
3 |
Minor |
0 % |
Use random_int() |
Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, CE |
3 |
2 |
Major |
59 % |
Deprecated PHP Functions |
Analyze, All, CI-checks, CE |
4 |
2 |
Major |
23 % |
Don't Pollute Global Space |
All, Analyze |
32 |
9 |
Minor |
0 % |
False To Array Conversion |
All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze |
212 |
38 |
Minor |
0 % |
Incompilable Files |
Analyze, Appinfo, ClearPHP, All, Simple, CE |
2 |
2 |
Critical |
24 % |
Wrong Parameter Type |
Analyze, OneFile, All, Simple, CI-checks, CE |
6 |
3 |
Major |
76 % |
Use === null |
Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, CE |
13 |
4 |
Minor |
53 % |
Logical Should Use Symbolic Operators |
Analyze, OneFile, ClearPHP, All, Simple, Suggestions, Level 2, Top10, php-cs-fixable, CI-checks, CE |
66 |
3 |
Minor |
43 % |
Possible Missing Subpattern |
All, Analyze, Top10, CI-checks, CE |
2 |
2 |
Minor |
45 % |
No Class In Global |
All, Analyze, CI-checks, CE |
11 |
9 |
Minor |
77 % |
No Null For Native PHP Functions |
All, Analyze, CompatibilityPHP81, Deprecated |
20 |
2 |
Minor |
0 % |
Use PHP Object API |
Analyze, ClearPHP, All, Simple, CI-checks, CE |
50 |
36 |
Minor |
27 % |
Avoid Using stdClass |
All, Analyze, OneFile, Simple, Level 4 |
2 |
2 |
Minor |
46 % |
Wrong Type For Native PHP Function |
All, Analyze, CI-checks, CE |
90 |
25 |
Minor |
0 % |
Don't Echo Error |
All, Analyze, Security, Simple, Level 1, CI-checks, CE |
2 |
2 |
Critical |
35 % |
Altering Foreach Without Reference |
Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE |
1 |
1 |
Major |
56 % |
Bail Out Early |
All, Analyze, OneFile, Simple, Level 4 |
10 |
5 |
Minor |
64 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2, CI-checks, CE |
10 |
2 |
Minor |
77 % |
Buried Assignation |
Analyze, All |
12 |
3 |
Minor |
84 % |
Catch Overwrite Variable |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Minor |
25 % |
Check Division By Zero |
All, Analyze |
1 |
1 |
Minor |
0 % |
Common Alternatives |
Analyze, All, Simple |
13 |
5 |
Major |
80 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE |
12 |
12 |
Major |
56 % |
Could Use Short Assignation |
Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE |
3 |
2 |
Minor |
63 % |
Dont Change The Blind Var |
All, Analyze |
5 |
2 |
Minor |
73 % |
Dont Mix ++ |
All, Analyze |
3 |
1 |
Minor |
56 % |
Double Assignation |
Analyze, All |
1 |
1 |
Major |
59 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions |
27 |
21 |
Minor |
60 % |
Else If Versus Elseif |
Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE |
7 |
1 |
Minor |
66 % |
Empty Instructions |
Dead code, Analyze, All, Simple |
51 |
45 |
Minor |
57 % |
Empty Try Catch |
Analyze, All, Level 3 |
1 |
1 |
Minor |
49 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, CE |
10 |
9 |
Major |
61 % |
Forgotten Whitespace |
Analyze, All, CI-checks, CE |
30 |
22 |
Minor |
16 % |
Htmlentities Calls |
Analyze, All, Simple, CI-checks, CE |
14 |
2 |
Major |
40 % |
Htmlentities Using Default Flag |
All, Analyze, Simple, CI-checks, ChangedBehavior |
14 |
2 |
Minor |
0 % |
Iffectations |
Analyze, All |
6 |
1 |
Minor |
80 % |
Inconsistent Elseif |
All, Analyze |
5 |
2 |
Major |
73 % |
Indices Are Int Or String |
Analyze, OneFile, All, Simple, CI-checks, CE |
24 |
7 |
Major |
20 % |
Invalid Regex |
All, Analyze, CI-checks, CE |
1 |
1 |
Major |
37 % |
Max Level Of Nesting |
All, Analyze |
4 |
2 |
Minor |
0 % |
Merge If Then |
All, Analyze, CI-checks, CE |
14 |
3 |
Minor |
0 % |
Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4 |
1 |
1 |
Major |
64 % |
Mixed Concat And Interpolation |
All, Coding Conventions, Analyze |
2 |
2 |
Minor |
45 % |
Modernize Empty With Expression |
All, Analyze, OneFile, Simple |
4 |
1 |
Minor |
63 % |
Multiples Identical Case |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, Rector, CE |
1 |
1 |
Minor |
29 % |
Multiple Type Variable |
All, Analyze, Level 4 |
1 |
1 |
Minor |
58 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
19 |
5 |
Major |
84 % |
Don't Change Incomings |
Analyze, All |
17 |
17 |
Minor |
44 % |
No Hardcoded Path |
Analyze, ClearPHP, All, Simple |
12 |
12 |
Major |
35 % |
No Need For Else |
All, Analyze |
1 |
1 |
Minor |
74 % |
No Parenthesis For Language Construct |
Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, CE |
16 |
2 |
Minor |
62 % |
Avoid Substr() One |
Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, CE |
8 |
2 |
Minor |
58 % |
Variable Is Not A Condition |
All, Analyze |
36 |
7 |
Minor |
93 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, CE |
17 |
3 |
Minor |
65 % |
Objects Don't Need References |
Analyze, ClearPHP, OneFile, All, Simple, Level 2, Top10, CI-checks, CE |
3 |
1 |
Minor |
40 % |
include_once() Usage |
Analyze, Appinfo, All, CE |
2 |
2 |
Minor |
73 % |
Several Instructions On The Same Line |
Analyze, All |
7 |
2 |
Major |
56 % |
Print And Die |
Analyze, All, Simple, CI-checks, CE |
1 |
1 |
Minor |
32 % |
Queries In Loops |
Analyze, OneFile, All, Simple, Level 1, Top10 |
2 |
2 |
Major |
8 % |
Repeated print() |
Analyze, All, Simple, Suggestions, Level 3, Top10, CI-checks, CE |
5 |
3 |
Major |
50 % |
Repeated Regex |
All, Analyze, Level 1, CI-checks, CE |
6 |
2 |
Minor |
47 % |
Same Conditions In Condition |
Analyze, All, Simple, CI-checks, CE |
2 |
2 |
Critical |
55 % |
Should Chain Exception |
Analyze, All, Simple, CI-checks, CE |
2 |
1 |
Minor |
39 % |
Should Use Ternary Operator |
All, Analyze, OneFile, Simple, CI-checks, CE |
30 |
7 |
Minor |
86 % |
Preprocessable |
Analyze, All, Rector |
90 |
6 |
Minor |
85 % |
Switch To Switch |
Analyze, All, RadwellCodes, Simple |
2 |
1 |
Minor |
58 % |
Test Then Cast |
All, Analyze |
3 |
2 |
Major |
34 % |
Timestamp Difference |
Analyze, All, Simple, Level 3, CI-checks, CE |
1 |
1 |
Major |
49 % |
Unsupported Types With Operators |
All, Analyze, CompatibilityPHP80, CE |
6 |
3 |
Minor |
0 % |
Use Constant Instead Of Function |
PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE |
12 |
12 |
Minor |
61 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
27 |
18 |
Minor |
82 % |
Use Same Types For Comparisons |
All, Analyze |
5 |
2 |
Minor |
0 % |
Useless Type Casting |
All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE |
3 |
2 |
Minor |
47 % |
Useless Instructions |
Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE |
2 |
1 |
Minor |
63 % |
Useless Parenthesis |
Analyze, All, Simple, CI-checks, CE |
22 |
4 |
Minor |
81 % |
Useless Unset |
Analyze, OneFile, ClearPHP, All, Simple, Level 2, CI-checks, CE |
1 |
1 |
Major |
42 % |
var_dump()... Usage |
Analyze, ClearPHP, Security, All, CI-checks, CE |
1 |
1 |
Critical |
42 % |
Undefined Trait |
Analyze, All, LintButWontExec, CI-checks, Undefined, IsPHP, IsStub, IsExt, CE |
1 |
1 |
Critical |
15 % |
One Variable String |
Analyze, All, RadwellCodes, Simple, CI-checks, CE |
18 |
15 |
Minor |
33 % |
Strings With Strange Space |
All, Analyze, CI-checks, CE |
19 |
2 |
Minor |
21 % |
Missing Some Returntype |
All, Typehints, Analyze, CI-checks, CE |
3 |
2 |
Minor |
0 % |
Assigned Twice |
All, Analyze |
55 |
4 |
Minor |
79 % |
Overwritten Literals |
Analyze, All |
66 |
4 |
Major |
79 % |
Recycled Variables |
All, Analyze |
20 |
7 |
Minor |
0 % |
Undefined Variable |
All, Analyze, CI-checks, Undefined, CE |
916 |
60 |
Minor |
77 % |
Used Once Variables |
Analyze, OneFile, All, Simple, Top10 |
5 |
4 |
Minor |
74 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE |
97 |
42 |
Minor |
95 % |