Null Or Boolean Arrays |
All, Analyze |
2 |
1 |
Minor |
0 % |
String Initialization |
All, CompatibilityPHP71 |
1 |
1 |
Minor |
33 % |
Abstract Static Methods |
Analyze, All, Simple |
1 |
1 |
Minor |
0 % |
Avoid option arrays in constructors |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
Avoid Optional Properties |
All, Analyze |
4 |
3 |
Major |
83 % |
Cant Instantiate Class |
All, Analyze |
1 |
1 |
Critical |
28 % |
Class Could Be Final |
All, Analyze, ClassReview |
18 |
16 |
Minor |
95 % |
Method Could Be Static |
All, Analyze, ClassReview |
5 |
5 |
Minor |
95 % |
Incompatible Signature Methods |
All, Analyze, LintButWontExec |
1 |
1 |
Critical |
50 % |
Locally Unused Property |
Dead code, All, Simple |
1 |
1 |
Minor |
76 % |
Class Without Parent |
All, Analyze, ClassReview |
1 |
1 |
Minor |
0 % |
Non Nullable Getters |
All, Analyze, ClassReview |
7 |
1 |
Minor |
0 % |
Null On New |
CompatibilityPHP53, OneFile, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All, Simple |
1 |
1 |
Major |
0 % |
Never Used Properties |
Analyze, All, Simple |
1 |
1 |
Minor |
72 % |
Property Used In One Method Only |
All, Analyze |
6 |
5 |
Minor |
84 % |
Should Use Local Class |
Analyze, ClearPHP, All, Simple |
7 |
6 |
Minor |
94 % |
Unused Class Constant |
All, Analyze, ClassReview |
3 |
1 |
Minor |
0 % |
Unused Methods |
Dead code, All, Simple |
30 |
7 |
Minor |
95 % |
Used Once Property |
All, Analyze |
1 |
1 |
Minor |
72 % |
Using $this Outside A Class |
Analyze, All, CompatibilityPHP71, Simple, LintButWontExec |
1 |
1 |
Critical |
0 % |
Magic Visibility |
CompatibilityPHP70, All, Simple |
1 |
1 |
Major |
0 % |
Uncaught Exceptions |
Analyze, All |
5 |
4 |
Minor |
81 % |
Missing Include |
All, Analyze |
16 |
1 |
Critical |
61 % |
Mismatched Default Arguments |
All, Analyze, Typechecks |
5 |
3 |
Minor |
33 % |
Mismatched Typehint |
All, Analyze, Typechecks |
1 |
1 |
Major |
5 % |
Multiple Definition Of The Same Argument |
ClearPHP, OneFile, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Major |
0 % |
Never Used Parameter |
All, Analyze, Suggestions |
15 |
9 |
Minor |
47 % |
Relay Function |
Analyze, All |
2 |
1 |
Major |
83 % |
Unused Arguments |
Analyze, All, Simple |
1 |
1 |
Major |
89 % |
Uses Default Values |
Analyze, All, Simple |
34 |
10 |
Minor |
97 % |
Methods Without Return |
All, Analyze |
53 |
15 |
Minor |
0 % |
Forgotten Interface |
All, Analyze |
1 |
1 |
Minor |
52 % |
Interfaces Is Not Implemented |
All, Analyze, ClassReview |
2 |
2 |
Minor |
0 % |
Unused Interfaces |
Dead code, All, Simple, Suggestions, Level 2 |
1 |
1 |
Minor |
25 % |
Useless Interfaces |
Analyze, ClearPHP, All, Simple, ClassReview, Typechecks |
1 |
1 |
Minor |
57 % |
Pre-increment |
Analyze, Performances, All, Simple, Level 4 |
3 |
1 |
Minor |
74 % |
Empty List |
Analyze, CompatibilityPHP70, All |
1 |
1 |
Major |
0 % |
Foreach Don't Change Pointer |
CompatibilityPHP70, All |
1 |
1 |
Major |
0 % |
Simple Global Variable |
CompatibilityPHP70, All |
1 |
1 |
Critical |
0 % |
Hash Algorithms Incompatible With PHP 5.4/5.5 |
CompatibilityPHP54, All, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP55, CompatibilityPHP56, CompatibilityPHP72 |
1 |
1 |
Major |
0 % |
Hash Algorithms Incompatible With PHP 7.1- |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Major |
0 % |
Hash Algorithms Incompatible With PHP 7.4- |
All, CompatibilityPHP74 |
1 |
1 |
Major |
0 % |
Possible Missing Subpattern |
All, Analyze, Top10 |
1 |
1 |
Minor |
40 % |
Nested Ternary Without Parenthesis |
All, Appinfo, CompatibilityPHP74 |
1 |
1 |
Minor |
0 % |
No Class In Global |
All, Analyze |
22 |
17 |
Minor |
78 % |
No List With String |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
1 |
1 |
Major |
0 % |
No Reference For Static Property |
All, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Major |
0 % |
Php 7.4 New Class |
All, CompatibilityPHP74 |
1 |
1 |
Major |
0 % |
PHP 74 New Directives |
All, CompatibilityPHP73 |
1 |
1 |
Minor |
0 % |
Union Typehint |
All, CompatibilityPHP70, Appinfo, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP74 |
1 |
1 |
Minor |
0 % |
Php 8.0 Variable Syntax Tweaks |
All, CompatibilityPHP74, Appinfo |
1 |
1 |
Major |
0 % |
Reserved Keywords In PHP 7 |
CompatibilityPHP70, All |
1 |
1 |
Major |
0 % |
PHP Keywords As Names |
Analyze, All, Simple |
24 |
2 |
Major |
89 % |
Should Use Coalesce |
Analyze, All, Simple, Suggestions, Level 3 |
3 |
2 |
Major |
71 % |
Signature Trailing Comma |
All, CompatibilityPHP71, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP74 |
1 |
1 |
Minor |
0 % |
Throw Was An Expression |
All, CompatibilityPHP72, CompatibilityPHP73, CompatibilityPHP74 |
1 |
1 |
Major |
0 % |
Unicode Escape Partial |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
1 |
1 |
Major |
0 % |
Use Nullable Type |
All, Appinfo, CompatibilityPHP53, CompatibilityPHP70, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
6 |
4 |
Major |
21 % |
Always Anchor Regex |
All, Security |
3 |
2 |
Major |
65 % |
Mkdir Default |
All, Security |
1 |
1 |
Major |
35 % |
No Net For Xml Load |
All, Security |
4 |
3 |
Major |
49 % |
Avoid sleep()/usleep() |
Security, All |
2 |
2 |
Minor |
39 % |
array_merge() And Variadic |
All, Analyze |
1 |
1 |
Minor |
0 % |
Strict Comparison With Booleans |
Analyze, All, Simple, Suggestions, Level 2 |
1 |
1 |
Minor |
76 % |
Break Outside Loop |
Analyze, CompatibilityPHP70, All |
1 |
1 |
Major |
0 % |
Buried Assignation |
Analyze, All |
11 |
7 |
Minor |
82 % |
Common Alternatives |
Analyze, All, Simple |
1 |
1 |
Major |
61 % |
Could Use __DIR__ |
Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable |
1 |
1 |
Major |
56 % |
Echo With Concat |
Performances, Analyze, All, Simple, Suggestions |
1 |
1 |
Minor |
58 % |
Empty Blocks |
Analyze, All, Simple |
1 |
1 |
Minor |
57 % |
Empty Try Catch |
Analyze, All, Level 3 |
1 |
1 |
Minor |
47 % |
Exit() Usage |
Analyze, Appinfo, OneFile, ClearPHP, All |
1 |
1 |
Major |
60 % |
Iffectations |
Analyze, All |
8 |
5 |
Minor |
80 % |
Max Level Of Nesting |
All, Analyze |
4 |
3 |
Minor |
0 % |
mcrypt_create_iv() With Default Values |
CompatibilityPHP70, All |
1 |
1 |
Minor |
0 % |
Mismatched Ternary Alternatives |
All, Analyze, Suggestions, Level 4 |
1 |
1 |
Major |
62 % |
Missing New ? |
All, Analyze |
3 |
2 |
Critical |
5 % |
Nested Ifthen |
Analyze, All, RadwellCodes |
1 |
1 |
Major |
87 % |
Variable Is Not A Condition |
All, Analyze |
9 |
6 |
Minor |
57 % |
@ Operator |
Appinfo, ClearPHP, All, Analyze, Performances |
1 |
1 |
Minor |
66 % |
Preprocessable |
Analyze, All, Rector |
17 |
1 |
Minor |
86 % |
Static Loop |
Analyze, All, Simple, Level 4 |
3 |
3 |
Minor |
65 % |
Switch With Too Many Default |
ClearPHP, All, Simple, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Minor |
0 % |
Switch Without Default |
Analyze, ClearPHP, All, Simple |
1 |
1 |
Major |
68 % |
Timestamp Difference |
Analyze, All, Simple, Level 3 |
1 |
1 |
Major |
50 % |
Unreachable Code |
Dead code, OneFile, ClearPHP, All, Simple, Suggestions, Level 3 |
4 |
1 |
Major |
44 % |
Use Constant |
PHP recommendations, All, Analyze, php-cs-fixable |
1 |
1 |
Minor |
0 % |
Use Positive Condition |
All, Analyze, OneFile, Simple |
2 |
2 |
Minor |
81 % |
Useless Parenthesis |
Analyze, All, Simple |
6 |
4 |
Minor |
81 % |
Variable Global |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
1 |
1 |
Minor |
0 % |
__toString() Throws Exception |
Analyze, OneFile, All, Simple |
1 |
1 |
Major |
3 % |
Malformed Octal |
All, CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56 |
1 |
1 |
Minor |
0 % |
Invalid Octal In String |
All, CompatibilityPHP71, Inventory |
1 |
1 |
Major |
0 % |
Assigned Twice |
All, Analyze |
8 |
2 |
Minor |
78 % |
Overwritten Literals |
Analyze, All |
8 |
2 |
Major |
78 % |
PHP5 Indirect Variable Expression |
CompatibilityPHP53, CompatibilityPHP54, CompatibilityPHP55, CompatibilityPHP56, All |
1 |
1 |
Major |
0 % |
Undefined Variable |
All, Analyze |
4 |
3 |
Minor |
77 % |
Used Once Variables (In Scope) |
Analyze, ClearPHP, OneFile, All, Simple, Level 4 |
8 |
6 |
Minor |
95 % |
Written Only Variables |
Analyze, OneFile, All, Simple |
3 |
3 |
Minor |
78 % |