PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Append And Assign Arrays All, Internal, Analyze 1 1 Minor 0 %
Weak Type With Array All, Analyze 24 15 Minor 0 %
Ambiguous Visibilities All, Analyze, Semantics 1 1 Minor 70 %
Avoid Optional Properties All, Analyze 4 3 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview 5 5 Minor 65 %
Class Could Be Final All, Analyze, ClassReview 50 49 Minor 96 %
Method Could Be Static All, Analyze, ClassReview 15 9 Minor 92 %
Could Inject Param All, Analyze, ClassReview 6 4 Minor 0 %
Cyclic References All, Analyze, ClassReview 3 1 Minor 0 %
No Direct Call To Magic Method Analyze, All, Level 2, CI-checks, CE 3 3 Major 43 %
Hidden Nullable Typehint All, Analyze, ClassReview 1 1 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze 6 6 Critical 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2 2 2 Minor 71 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec 13 13 Critical 53 %
Non Nullable Getters All, Analyze, ClassReview 6 4 Minor 0 %
Property Could Be Local All, Analyze, ClassReview 22 12 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics 13 7 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused 2 2 Minor 71 %
Property Used In One Method Only All, Analyze 37 25 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple 16 10 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined, IsPHP, IsStub, IsExt 8 6 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 2 1 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 3 1 Major 61 %
Unfinished Object All, Analyze, ClassReview 38 28 Major 0 %
Unresolved Classes Analyze, All, Stubs 3 3 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused 3 3 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused 1 1 Minor 0 %
Unused Public Method All, Analyze 51 26 Minor 0 %
Used Once Property All, Analyze 12 11 Minor 74 %
Useless Constructor Analyze, All, Simple, Level 3 4 4 Minor 41 %
Undefined Constants Analyze, All, Simple, CompatibilityPHP72, CI-checks, Stubs, Undefined, IsPHP, IsStub, IsExt, CE 5 1 Minor 71 %
Unused Enumeration Case All, Analyze, Dead code, Unused 1 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions 18 11 Minor 0 %
Uncaught Exceptions Analyze, All 25 16 Minor 84 %
Unthrown Exception Analyze, Dead code, ClearPHP, All, Simple 4 4 Minor 45 %
Native Alias Functions Usage Analyze, ClearPHP, OneFile, All, Simple, Level 1, CI-checks, CE 9 7 Minor 20 %
Use Named Boolean In Argument Definition All, Analyze 11 11 Minor 84 %
Empty Function Analyze, All, Simple 56 29 Minor 74 %
Method Is Not An If All, Analyze 5 4 Minor 0 %
Mismatch Parameter Name All, Analyze, CompatibilityPHP80, CE 3 3 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks 1 1 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks 5 4 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 2 2 Minor 92 %
No Boolean As Default All, Analyze 6 6 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4 1 1 Minor 69 %
Relay Function Analyze, All 1 1 Major 84 %
Unknown Parameter Name All, Analyze, CI-checks, CE 4 2 Minor 0 %
Unused Parameter Analyze, All, Simple, Unused 2 1 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 1 1 Minor 41 %
Useless Argument All, Analyze 5 4 Minor 0 %
Uses Default Values Analyze, All, Simple, CI-checks, IsPHP, IsStub, IsExt, CE 71 15 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks 6 1 Minor 0 %
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 50 18 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, CE 31 17 Minor 0 %
Forgotten Interface All, Analyze 4 4 Minor 48 %
Empty Interfaces Analyze, All, Simple 5 5 Minor 41 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, IsPHP, IsStub, IsExt, CE 1 1 Major 72 %
Useless Interfaces Analyze, ClearPHP, All, Simple, ClassReview, Typechecks 8 8 Minor 59 %
Unresolved Use Analyze, ClearPHP, All, Simple, IsPHP, IsStub, IsExt 5 5 Major 69 %
No array_merge() In Loops Analyze, Performances, ClearPHP, All, Simple, Level 2, Top10, CI-checks, CE 5 3 Major 57 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, CE 2 2 Minor 74 %
Assumptions All, Analyze 8 7 Minor 0 %
PHP Native Class Type Compatibility All, Analyze, CompatibilityPHP81 4 1 Major 0 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated 4 3 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, CE 1 1 Major 71 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, CE 12 6 Minor 0 %
Comparison Is Always The Same All, Analyze 11 6 Minor 0 %
Array_merge Needs Array Of Arrays All, Analyze 1 1 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4 7 3 Minor 64 %
Buried Assignation Analyze, All 3 2 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1 2 2 Minor 56 %
Check All Types All, Analyze 6 4 Major 69 %
Check Division By Zero All, Analyze 4 2 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 2 1 Major 65 %
Coalesce And Concat All, Analyze, CI-checks, CE 1 1 Minor 0 %
Common Alternatives Analyze, All, Simple 1 1 Major 80 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, CE 4 3 Major 56 %
Double Checks All, Analyze 3 1 Minor 0 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, CE 4 3 Minor 70 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions 1 1 Minor 60 %
Empty Blocks Analyze, All, Simple, CI-checks, CE 2 2 Minor 51 %
Inconsistent Elseif All, Analyze 1 1 Major 73 %
Max Level Of Nesting All, Analyze 3 2 Minor 0 %
Merge If Then All, Analyze, CI-checks, CE 5 2 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4 3 3 Major 64 %
Missing Assignation In Command All, Analyze 5 5 Minor 0 %
Maybe Missing New All, Analyze 5 1 Critical 57 %
Nested Ifthen Analyze, All, RadwellCodes 8 3 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, CE 4 4 Major 42 %
No Need For Else All, Analyze 4 3 Minor 74 %
No Need For Triple Equal All, Analyze 17 5 Minor 0 %
No Null For Index All, Analyze 6 6 Minor 0 %
Variable Is Not A Condition All, Analyze 4 4 Minor 93 %
Non Integer Nor String As Index All, Analyze 3 2 Minor 0 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, CE 2 2 Minor 86 %
Preprocessable Analyze, All, Rector 5 4 Minor 85 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, CE 3 2 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, CE 5 4 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple 3 3 Minor 82 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, CE 5 5 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, CE 1 1 Minor 81 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, CE 1 1 Minor 49 %
String May Hold A Variable Analyze, All, Simple 1 1 Minor 59 %
Strings With Strange Space All, Analyze, CI-checks, CE 1 1 Minor 21 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, CE 3 2 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze 66 24 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview 4 4 Minor 0 %
Overwritten Literals Analyze, All 2 1 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 6 4 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 56 31 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused 1 1 Minor 87 %