PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Null Or Boolean Arrays All, Analyze, ChangedBehavior 4 1 Minor 0 %
Arrays/WeakType All, Analyze 6 2 Minor 0 %
Avoid Optional Properties All, Analyze 5 1 Major 84 %
Class Could Be Final All, Analyze, ClassReview 23 23 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 3 2 Minor 92 %
Could Inject Param All, Analyze, ClassReview 2 2 Minor 0 %
Make Global A Property Analyze, All, Simple 4 4 Minor 37 %
Property Could Be Local All, Analyze, ClassReview 8 2 Minor 76 %
Never Used Properties Analyze, All, Simple, Unused 2 1 Minor 71 %
Property Used In One Method Only All, Analyze 7 2 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 99 22 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 51 15 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 11 7 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, Undefined, ChangedBehavior, CE 46 12 Major 61 %
Unfinished Object All, Analyze, ClassReview 3 2 Major 0 %
Unresolved Classes Analyze, All, Stubs 32 11 Major 76 %
Unresolved Instanceof Analyze, Dead code, ClearPHP, All, Simple, Top10 1 1 Major 48 %
Unused Classes Dead code, All, Simple, Analyze, Unused 1 1 Major 67 %
Unused Public Method All, Analyze 12 8 Minor 0 %
Use ::Class Operator All, Analyze, Performances, Simple, CI-checks, CE 55 16 Minor 71 %
Use Instanceof Analyze, All, Simple, CI-checks, CE 1 1 Major 63 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 6 1 Minor 54 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 23 6 Minor 71 %
Missing Include All, Analyze 25 3 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze 2 1 Minor 84 %
Could Make A Function All, Analyze, Suggestions 222 26 Minor 66 %
Empty Function Analyze, All, Simple 7 5 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3 1 1 Major 70 %
Insufficient Typehint All, Analyze, Typechecks 2 2 Major 43 %
Mismatched Typehint All, Analyze, Typechecks 1 1 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 2 1 Minor 92 %
No Boolean As Default All, Analyze 2 1 Minor 84 %
Relay Function Analyze, All 1 1 Major 84 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 740 34 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 37 12 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 3 1 Minor 41 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 156 27 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, IsPHP, IsStub, IsExt, CE 2 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, CE 10 7 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 4 2 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 72 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 1 1 Major 57 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 1 1 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, CE 2 2 Minor 0 %
Don't Pollute Global Space All, Analyze 9 1 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze 1 1 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, CE 1 1 Major 76 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 4 4 Minor 0 %
Avoid Using stdClass All, Analyze, OneFile, Simple, Level 4 8 7 Minor 46 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 6 6 Minor 0 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 1 1 Major 56 %
Array_merge Needs Array Of Arrays All, Analyze 2 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 9 6 Minor 64 %
Check All Types All, Analyze 5 3 Major 69 %
Check JSON All, Analyze, CI-checks, CE 3 3 Major 65 %
Common Alternatives Analyze, All, Simple 1 1 Major 80 %
Could Be Static Analyze, OneFile, All, ClassReview 1 1 Major 23 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 29 4 Major 56 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, CE 2 1 Minor 63 %
Dont Change The Blind Var All, Analyze 1 1 Minor 73 %
Double Assignation Analyze, All 2 2 Major 59 %
Double Instructions Analyze, All, Simple 1 1 Minor 57 %
Empty Instructions Dead code, Analyze, All, Simple 4 4 Minor 57 %
Global Usage Analyze, Appinfo, ClearPHP, All, CE 5 5 Minor 52 %
Implied If Analyze, ClearPHP, All, Simple, CI-checks, Rector, CE 6 1 Major 33 %
Inconsistent Elseif All, Analyze 1 1 Major 73 %
Long Arguments All, Analyze 36 4 Minor 68 %
Modernize Empty With Expression All, Analyze, OneFile, Simple 2 2 Minor 63 %
Multiple Type Variable All, Analyze, Level 4 1 1 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes 2 2 Major 84 %
Variable Is Not A Condition All, Analyze 53 16 Minor 93 %
include_once() Usage Analyze, Appinfo, All, CE 25 3 Minor 73 %
Several Instructions On The Same Line Analyze, All 18 4 Major 56 %
Printf Number Of Arguments All, Analyze, CI-checks, CE 1 1 Minor 41 %
Repeated Regex All, Analyze, Level 1, CI-checks, CE 6 6 Minor 47 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 6 5 Minor 86 %
Preprocessable Analyze, All, Rector 27 11 Minor 85 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 2 2 Major 54 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, CE 1 1 Major 69 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 11 5 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 29 4 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 3 2 Minor 82 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, CE 1 1 Minor 47 %
Useless Global Analyze, OneFile, All, Simple, Level 2 1 1 Minor 27 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 1 1 Minor 81 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, CE 1 1 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 5 5 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 2 1 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 1 1 Minor 0 %
Assigned Twice All, Analyze 12 1 Minor 79 %
Overwritten Literals Analyze, All 14 2 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 16 7 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10 1 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, CE 82 14 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 7 2 Minor 87 %