PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics, ChangedBehavior 1 1 Minor 10 %
Null Or Boolean Arrays All, Analyze 1 1 Minor 0 %
Too Many Array Dimensions All, Analyze 3 1 Minor 0 %
Weak Type With Array All, Analyze, ChangedBehavior 62 8 Minor 0 %
Ambiguous Static All, Analyze, Semantics, ChangedBehavior 15 11 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics, ChangedBehavior 14 11 Minor 70 %
Avoid Optional Properties All, Analyze, ChangedBehavior 4 3 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview, ChangedBehavior 8 8 Minor 96 %
Method Could Be Static All, Analyze, ClassReview, ChangedBehavior 130 16 Minor 92 %
Could Inject Parameter All, Analyze, ClassReview, ChangedBehavior 20 10 Minor 0 %
Implicit Nullable Type All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 0 %
Incompatible Signature Methods With Covariance All, Analyze, ChangedBehavior 3 3 Critical 0 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2, ChangedBehavior 1 1 Minor 71 %
Make Global A Property Analyze, All, Simple, ChangedBehavior 3 2 Minor 37 %
Method Signature Must Be Compatible All, Analyze, LintButWontExec, ChangedBehavior 3 3 Critical 53 %
Mismatch Properties Typehints All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 2 2 Minor 0 %
New Object Then Immediate Call All, Analyze, ClassReview 6 6 Minor 0 %
Non Nullable Getters All, Analyze, ClassReview, ChangedBehavior 3 3 Minor 0 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Minor 42 %
Parent First All, Analyze, Suggestions, ChangedBehavior 3 3 Minor 56 %
Property Could Be Local All, Analyze, ClassReview, ChangedBehavior 8 4 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics, ChangedBehavior 4 2 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused, ChangedBehavior 2 1 Minor 71 %
Property Used In One Method Only All, Analyze, ChangedBehavior 8 6 Minor 84 %
Should Use Local Class Analyze, ClearPHP, All, Simple, ChangedBehavior 142 22 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined 394 42 Major 91 %
Undefined Class Constants Analyze, All, CI-checks, Stubs, LintButWontExec, Undefined, ChangedBehavior, CE 2 1 Major 62 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 47 9 Major 61 %
Unfinished Object All, Analyze, ClassReview, ChangedBehavior 1 1 Major 0 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 27 11 Major 76 %
Unused Public Methods All, Analyze, ChangedBehavior 75 23 Minor 0 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 5 5 Minor 0 %
Constant Used Only Once All, Analyze, ChangedBehavior 16 6 Minor 0 %
Uncaught Exceptions Analyze, All, ChangedBehavior 9 2 Minor 84 %
Useless Try All, Analyze, ChangedBehavior 3 3 Minor 0 %
Use Named Boolean In Argument Definition All, Analyze, ChangedBehavior 32 17 Minor 84 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3, ChangedBehavior 2 2 Major 70 %
Method Is Not An If All, Analyze 10 8 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks, ChangedBehavior 9 5 Minor 80 %
Mismatched Typehint All, Analyze, Typechecks, ChangedBehavior 12 8 Major 66 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 23 16 Minor 92 %
No Boolean As Default All, Analyze 30 15 Minor 84 %
No Default For Referenced Parameter All, Analyze, ChangedBehavior 3 3 Minor 0 %
No Return Used All, Analyze, Suggestions, Level 4, ChangedBehavior 11 7 Minor 69 %
Class-typed References All, Analyze, CI-checks, CE 1 1 Minor 37 %
Unused Parameter Analyze, All, Simple, Unused 7 4 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 31 13 Minor 41 %
Useless Referenced Argument All, Analyze, ChangedBehavior 6 3 Minor 58 %
Uses Default Values Analyze, All, Simple, CI-checks, ChangedBehavior, CE 65 18 Minor 98 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE 2 2 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE 28 15 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE 52 18 Minor 0 %
Undefined Interfaces Analyze, All, CI-checks, LintButWontExec, Undefined, ChangedBehavior, CE 6 5 Major 72 %
Hidden Use Expression Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Minor 23 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, ChangedBehavior, CE 5 5 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 64 32 Major 69 %
Use With Fully Qualified Name Analyze, Coding Conventions, PHP recommendations, All, Simple, ChangedBehavior 3 2 Minor 18 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 1 1 Minor 74 %
strpos() Too Much All, Analyze, CI-checks, ChangedBehavior, CE 1 1 Minor 49 %
Assumptions All, Analyze, ChangedBehavior 6 4 Minor 0 %
Scalar Are Not Arrays All, Analyze, CompatibilityPHP74, CI-checks, ChangedBehavior, CE 1 1 Minor 0 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, ChangedBehavior, CE 4 3 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, ChangedBehavior, CE 1 1 Critical 35 %
Should Use Prepared Statement Analyze, Security, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Major 28 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 4 2 Major 56 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4, ChangedBehavior 11 8 Minor 64 %
Buried Assignation Analyze, All, ChangedBehavior 6 4 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1, ChangedBehavior 3 2 Minor 56 %
Could Be A Static Variable Analyze, OneFile, All, ClassReview, ChangedBehavior 1 1 Major 23 %
Could Use __DIR__ Analyze, All, Simple, Suggestions, Level 3, php-cs-fixable, CI-checks, ChangedBehavior, CE 4 2 Major 56 %
Don't Change The Blind Var All, Analyze, ChangedBehavior 5 4 Minor 73 %
Echo With Concat Performances, Analyze, All, Simple, Suggestions, ChangedBehavior 1 1 Minor 60 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 2 2 Minor 66 %
Empty Blocks Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Minor 51 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE 1 1 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, ChangedBehavior, CE 3 2 Minor 52 %
Iffectations Analyze, All, ChangedBehavior 4 3 Minor 80 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Major 20 %
Max Level Of Nesting All, Analyze, ChangedBehavior 3 3 Minor 0 %
Merge If Then All, Analyze, CI-checks, ChangedBehavior, CE 10 6 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4, ChangedBehavior 1 1 Major 64 %
Missing Assignation In Branches All, Analyze, ChangedBehavior 5 4 Minor 0 %
Multiple Type Variable All, Analyze, Level 4, ChangedBehavior 2 2 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes, ChangedBehavior 8 5 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 2 2 Major 42 %
No isset() With empty() All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, ChangedBehavior, CE 5 1 Minor 30 %
No Null For Index All, Analyze, ChangedBehavior 2 1 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE 4 4 Minor 62 %
Avoid Substr() One Analyze, Performances, All, CompatibilityPHP71, Simple, Level 2, Suggestions, Top10, CI-checks, ChangedBehavior, CE 1 1 Minor 58 %
Variable Is Not A Condition All, Analyze, ChangedBehavior 28 14 Minor 93 %
Non Integer Nor String As Index All, Analyze, ChangedBehavior 1 1 Minor 0 %
@ Operator Appinfo, ClearPHP, All, Analyze, Performances, CI-checks, ChangedBehavior, CE 1 1 Minor 65 %
Print And Die Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Minor 32 %
Return True False Analyze, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 1 1 Major 46 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE 4 4 Minor 86 %
Preprocessable Analyze, All, Rector, ChangedBehavior 13 6 Minor 85 %
Static Loop Analyze, All, Simple, Level 4, ChangedBehavior 2 1 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE 1 1 Major 54 %
Switch To Switch Analyze, All, RadwellCodes, Simple, ChangedBehavior 1 1 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE 3 2 Major 69 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE 1 1 Major 49 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, ChangedBehavior, CE 4 3 Minor 0 %
Use Constant Instead Of Function PHP recommendations, All, Analyze, php-cs-fixable, CI-checks, ChangedBehavior, CE 4 2 Minor 61 %
Use Positive Condition All, Analyze, OneFile, Simple, ChangedBehavior 3 2 Minor 82 %
Use Same Types For Comparisons All, Analyze 1 1 Minor 0 %
Useless Type Casting All, PHP recommendations, Analyze, OneFile, RadwellCodes, Simple, Level 4, CI-checks, ChangedBehavior, CE 8 2 Minor 47 %
Useless Coalesce All, Analyze, ChangedBehavior 1 1 Minor 0 %
Useless Global Analyze, OneFile, All, Simple, Level 2, ChangedBehavior 1 1 Minor 27 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 3 3 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, ChangedBehavior, CE 9 7 Minor 81 %
Useless Switch Analyze, All, Simple, ChangedBehavior 1 1 Major 32 %
Dependant Trait Analyze, All, Level 3, ChangedBehavior 1 1 Minor 28 %
Undefined Trait Analyze, All, LintButWontExec, CI-checks, Undefined, ChangedBehavior, CE 12 12 Critical 15 %
One Variable String Analyze, All, RadwellCodes, Simple, CI-checks, ChangedBehavior, CE 9 2 Minor 33 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE 5 2 Minor 49 %
String May Hold A Variable Analyze, All, Simple, ChangedBehavior 1 1 Minor 59 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, ChangedBehavior, CE 3 2 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze, ChangedBehavior 46 22 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 70 23 Minor 0 %
Assigned Twice All, Analyze, ChangedBehavior 6 3 Minor 79 %
Overwritten Literals Analyze, All, ChangedBehavior 11 4 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 6 3 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10, ChangedBehavior 1 1 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE 237 24 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused, ChangedBehavior 1 1 Minor 87 %