PHP Static analysis for public

Label Recipes Issues Files Severity Frequence
Ambiguous Array Index Analyze, All, Simple, Level 2, Semantics, ChangedBehavior 26 6 Minor 10 %
Multiple Index Definition Analyze, OneFile, All, Simple, CI-checks, Rector, CE 1 1 Minor 33 %
Null Or Boolean Arrays All, Analyze 1 1 Minor 0 %
Weak Type With Array All, Analyze, ChangedBehavior 106 13 Minor 0 %
Ambiguous Static All, Analyze, Semantics, ChangedBehavior 46 19 Minor 66 %
Ambiguous Visibilities All, Analyze, Semantics, ChangedBehavior 8 7 Minor 70 %
Avoid Optional Properties All, Analyze, ChangedBehavior 14 6 Major 84 %
Could Be Abstract Class All, Analyze, ClassReview, ChangedBehavior 1 1 Minor 65 %
Class Could Be Final All, Analyze, ClassReview, ChangedBehavior 58 58 Minor 96 %
Method Could Be Static All, Analyze, ClassReview, ChangedBehavior 91 24 Minor 92 %
Assign Default To Properties Analyze, ClearPHP, All, Simple, Level 2, ChangedBehavior 3 2 Minor 71 %
New Object Then Immediate Call All, Analyze, ClassReview 2 2 Minor 0 %
No Public Access Analyze, All, ChangedBehavior 2 2 Minor 61 %
Forgotten Visibility Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 3 3 Minor 42 %
Property Could Be Local All, Analyze, ClassReview, ChangedBehavior 12 7 Minor 76 %
Same Name For Property And Method All, Analyze, ClassReview, Semantics, ChangedBehavior 62 9 Minor 0 %
Never Used Properties Analyze, All, Simple, Unused, ChangedBehavior 3 2 Minor 71 %
Property Used In One Method Only All, Analyze, ChangedBehavior 16 11 Minor 84 %
Scalar Or Object Property All, Analyze 1 1 Minor 32 %
Could Use self Analyze, All, Simple, Suggestions, Level 3, ClassReview, ChangedBehavior 17 2 Minor 63 %
Should Use Local Class Analyze, ClearPHP, All, Simple, ChangedBehavior 128 51 Minor 95 %
Undefined Classes Analyze, All, Stubs, Undefined 679 58 Major 91 %
Undefined Properties Analyze, ClearPHP, All, Simple, CI-checks, CompatibilityPHP82, Undefined, ChangedBehavior, CE 1 1 Major 61 %
Unfinished Object All, Analyze, ClassReview, ChangedBehavior 22 8 Major 0 %
Unresolved Classes Analyze, All, Stubs, ChangedBehavior 11 5 Major 76 %
Unused Classes Dead code, All, Simple, Analyze, Unused, ChangedBehavior 2 2 Major 67 %
Unused Class Constant All, Analyze, ClassReview, Unused, ChangedBehavior 11 1 Minor 0 %
Unused Public Methods All, Analyze, ChangedBehavior 280 32 Minor 0 %
Use Instanceof Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Major 63 %
Useless Constructor Analyze, All, Simple, Level 3, ChangedBehavior 1 1 Minor 41 %
Weak Typing All, Analyze, ChangedBehavior 3 3 Minor 47 %
Wrong Typed Property Default All, Analyze, LintButWontExec, ClassReview, CI-checks, CE 3 3 Minor 0 %
Use const Analyze, Coding Conventions, All, Top10, CI-checks, CE 10 1 Minor 54 %
Constant Used Only Once All, Analyze, ChangedBehavior 2 2 Minor 0 %
Converted Exceptions All, Analyze, ChangedBehavior 1 1 Minor 0 %
Throw Raw Exceptions All, Analyze, Suggestions, ChangedBehavior 17 2 Minor 0 %
Uncaught Exceptions Analyze, All, ChangedBehavior 46 14 Minor 84 %
Useless Try All, Analyze, ChangedBehavior 10 1 Minor 0 %
Missing Include All, Analyze, ChangedBehavior 1 1 Critical 65 %
Use Named Boolean In Argument Definition All, Analyze, ChangedBehavior 28 12 Minor 84 %
Could Make A Function All, Analyze, Suggestions, ChangedBehavior 31 3 Minor 66 %
Don't Collect Void All, Analyze, ChangedBehavior 1 1 Minor 0 %
Empty Function Analyze, All, Simple, ChangedBehavior 2 1 Minor 74 %
Hardcoded Passwords Analyze, OneFile, Security, All, Simple, Level 3, ChangedBehavior 1 1 Major 70 %
Method Is Not An If All, Analyze 24 13 Minor 0 %
Mismatched Default Arguments All, Analyze, Typechecks, ChangedBehavior 16 5 Minor 80 %
Never Called Parameter All, Analyze, Suggestions, Rector, Unused 9 4 Minor 92 %
No Boolean As Default All, Analyze 28 12 Minor 84 %
No Return Used All, Analyze, Suggestions, Level 4, ChangedBehavior 21 8 Minor 69 %
Only Variable Passed By Reference All, Analyze, ChangedBehavior 178 17 Critical 43 %
Retyped Reference All, Analyze, Typehints, ChangedBehavior 1 1 Major 0 %
Undefined Functions Analyze, All, CI-checks, Stubs, Undefined, CE 3 2 Major 68 %
Unused Parameter Analyze, All, Simple, Unused 4 2 Major 90 %
Unused Returned Value All, Analyze, OneFile, Dead code, Simple, Unused 41 9 Minor 41 %
Uses Default Values Analyze, All, Simple, CI-checks, ChangedBehavior, CE 399 28 Minor 98 %
Wrong Argument Type All, Analyze, Typechecks, ChangedBehavior 69 19 Minor 0 %
Wrong Number Of Arguments Analyze, OneFile, All, Simple, CI-checks, Stubs, ChangedBehavior, CE 9 4 Major 81 %
Wrong Type Returned All, Analyze, ClassReview, CI-checks, LintButWontExec, ChangedBehavior, CE 205 42 Minor 0 %
Wrong Type With Call All, Analyze, Typechecks, CI-checks, ChangedBehavior, CE 214 27 Minor 0 %
Forgotten Interface All, Analyze, ChangedBehavior 4 4 Minor 48 %
Multiple Alias Definitions Analyze, All, Simple, CI-checks, ChangedBehavior, CE 13 13 Minor 44 %
Unresolved Use Analyze, ClearPHP, All, Simple, ChangedBehavior 12 8 Major 69 %
Logical To in_array All, Analyze, Level 2, ChangedBehavior 4 3 Minor 67 %
Pre-increment Analyze, Performances, All, Simple, Level 4, CI-checks, ChangedBehavior, CE 21 11 Minor 74 %
array_key_exists() Works On Arrays All, CompatibilityPHP74, Analyze, ChangedBehavior, CE 35 10 Minor 0 %
Use random_int() Analyze, Security, All, CompatibilityPHP71, Simple, Level 2, CI-checks, ChangedBehavior, CE 5 4 Major 59 %
Deprecated PHP Functions Analyze, All, CI-checks, CE 4 1 Major 23 %
Don't Pollute Global Space All, Analyze 28 2 Minor 0 %
Exit Without Argument All, Analyze, ChangedBehavior 1 1 Minor 0 %
False To Array Conversion All, LintButWontExec, CompatibilityPHP81, CompatibilityPHP82, Analyze, ChangedBehavior 6 2 Minor 0 %
Wrong Parameter Type Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 36 9 Major 76 %
Use === null Analyze, OneFile, All, RadwellCodes, Simple, php-cs-fixable, CI-checks, ChangedBehavior, CE 41 15 Minor 53 %
No Class In Global All, Analyze, CI-checks, ChangedBehavior, CE 16 1 Minor 77 %
No Null For Native PHP Functions All, Analyze, CompatibilityPHP81, Deprecated, ChangedBehavior 75 11 Minor 0 %
Should Use Coalesce Analyze, All, Simple, Suggestions, Level 3, CI-checks, ChangedBehavior, CE 9 4 Major 71 %
Too Many Native Calls All, Analyze, ChangedBehavior 1 1 Minor 49 %
Wrong Type For Native PHP Function All, Analyze, CI-checks, ChangedBehavior, CE 35 10 Minor 0 %
Don't Echo Error All, Analyze, Security, Simple, Level 1, CI-checks, ChangedBehavior, CE 1 1 Critical 35 %
Altering Foreach Without Reference Analyze, ClearPHP, All, Simple, Level 1, CI-checks, CE 2 2 Major 56 %
Comparison Is Always The Same All, Analyze, ChangedBehavior 5 4 Minor 0 %
Bail Out Early All, Analyze, OneFile, Simple, Level 4, ChangedBehavior 18 13 Minor 64 %
Strict Comparison With Booleans Analyze, All, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE 11 6 Minor 77 %
Buried Assignation Analyze, All, ChangedBehavior 8 3 Minor 84 %
Cast To Boolean Analyze, OneFile, All, Simple, Level 1, ChangedBehavior 3 2 Minor 56 %
Check All Types All, Analyze, ChangedBehavior 10 5 Major 69 %
Check Division By Zero All, Analyze, ChangedBehavior 8 1 Minor 0 %
Check JSON All, Analyze, CI-checks, CE 7 3 Major 65 %
Common Alternatives Analyze, All, Simple, ChangedBehavior 2 2 Major 80 %
Could Be A Static Variable Analyze, OneFile, All, ClassReview, ChangedBehavior 1 1 Major 23 %
Could Use Short Assignation Analyze, OneFile, Performances, All, Simple, CI-checks, Rector, ChangedBehavior, CE 4 3 Minor 63 %
Don't Change The Blind Var All, Analyze, ChangedBehavior 1 1 Minor 73 %
Drop Else After Return All, Analyze, OneFile, Simple, Suggestions, Level 4, CI-checks, ChangedBehavior, CE 11 6 Minor 70 %
Else If Versus Elseif Analyze, All, Simple, php-cs-fixable, Rector, CI-checks, CE 29 9 Minor 66 %
Exit() Usage Analyze, Appinfo, OneFile, ClearPHP, All, CI-checks, ChangedBehavior, CE 4 4 Major 61 %
Global Usage Analyze, Appinfo, ClearPHP, All, ChangedBehavior, CE 2 2 Minor 52 %
Iffectations Analyze, All, ChangedBehavior 5 1 Minor 80 %
Implode() Arguments Order All, Analyze, CI-checks, ChangedBehavior, CE 1 1 Minor 0 %
Indices Are Int Or String Analyze, OneFile, All, Simple, CI-checks, ChangedBehavior, CE 3 2 Major 20 %
Long Arguments All, Analyze, ChangedBehavior 5 1 Minor 68 %
Max Level Of Nesting All, Analyze, ChangedBehavior 5 5 Minor 0 %
Merge If Then All, Analyze, CI-checks, ChangedBehavior, CE 7 4 Minor 0 %
Mismatched Ternary Alternatives All, Analyze, Suggestions, Level 4, ChangedBehavior 5 1 Major 64 %
Missing Assignation In Branches All, Analyze, ChangedBehavior 16 12 Minor 0 %
Multiple Type Variable All, Analyze, Level 4, ChangedBehavior 2 2 Minor 58 %
Nested Ifthen Analyze, All, RadwellCodes, ChangedBehavior 25 10 Major 84 %
No Choice Analyze, All, Simple, Level 2, Top10, CI-checks, Rector, ChangedBehavior, CE 1 1 Major 42 %
No Direct Usage Analyze, All, Simple, ChangedBehavior 2 1 Major 39 %
No Need For Else All, Analyze, ChangedBehavior 11 6 Minor 74 %
No Null For Index All, Analyze, ChangedBehavior 42 6 Minor 0 %
No Parenthesis For Language Construct Analyze, ClearPHP, All, RadwellCodes, Simple, Suggestions, Level 2, CI-checks, ChangedBehavior, CE 1 1 Minor 62 %
Variable Is Not A Condition All, Analyze, ChangedBehavior 28 8 Minor 93 %
include_once() Usage Analyze, Appinfo, All, ChangedBehavior, CE 9 4 Minor 73 %
Print And Die Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Minor 32 %
Repeated Regex All, Analyze, Level 1, CI-checks, ChangedBehavior, CE 4 2 Minor 47 %
Results May Be Missing Analyze, All, Simple, CI-checks, ChangedBehavior, CE 2 1 Major 24 %
Return True False Analyze, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 5 3 Major 46 %
Should Chain Exception Analyze, All, Simple, CI-checks, ChangedBehavior, CE 1 1 Minor 39 %
Should Use Ternary Operator All, Analyze, OneFile, Simple, CI-checks, ChangedBehavior, CE 16 8 Minor 86 %
Preprocessable Analyze, All, Rector, ChangedBehavior 55 14 Minor 85 %
Static Inclusions All, Analyze, ChangedBehavior 8 4 Minor 0 %
Static Loop Analyze, All, Simple, Level 4, ChangedBehavior 2 2 Minor 67 %
Strpos()-like Comparison Analyze, PHP recommendations, ClearPHP, All, Simple, Level 2, Top10, CI-checks, ChangedBehavior, CE 4 3 Major 54 %
Suspicious Comparison All, Analyze, Level 3, ChangedBehavior 4 1 Major 39 %
Switch To Switch Analyze, All, RadwellCodes, Simple, ChangedBehavior 5 2 Minor 58 %
Switch Without Default Analyze, ClearPHP, All, Simple, CI-checks, ChangedBehavior, CE 2 2 Major 69 %
Timestamp Difference Analyze, All, Simple, Level 3, CI-checks, ChangedBehavior, CE 8 4 Major 49 %
Unchecked Resources Analyze, ClearPHP, All, Simple, Level 2, CI-checks, ChangedBehavior, CE 1 1 Major 50 %
Unpreprocessed Values Analyze, OneFile, ClearPHP, All, Simple, Performances, ChangedBehavior 1 1 Minor 30 %
Unsupported Types With Operators All, Analyze, CompatibilityPHP80, ChangedBehavior, CE 1 1 Minor 0 %
Use Positive Condition All, Analyze, OneFile, Simple, ChangedBehavior 10 6 Minor 82 %
Useless Instructions Analyze, OneFile, ClearPHP, All, Simple, Level 1, CI-checks, ChangedBehavior, CE 2 2 Minor 63 %
Useless Parenthesis Analyze, All, Simple, CI-checks, ChangedBehavior, CE 34 8 Minor 81 %
var_dump()... Usage Analyze, ClearPHP, Security, All, CI-checks, ChangedBehavior, CE 1 1 Critical 42 %
Should Typecast Analyze, OneFile, All, Simple, CI-checks, Rector, ChangedBehavior, CE 5 1 Minor 49 %
Missing Some Returntype All, Typehints, Analyze, CI-checks, ChangedBehavior, CE 13 5 Minor 0 %
StandaloneType True False Null All, Appcontent, Analyze, ChangedBehavior 13 8 Minor 0 %
Wrong Type With Default All, Analyze, LintButWontExec, ClassReview, ChangedBehavior 166 23 Minor 0 %
Assigned Twice All, Analyze, ChangedBehavior 11 5 Minor 79 %
Overwritten Literals Analyze, All, ChangedBehavior 11 5 Major 79 %
Undefined Variable All, Analyze, CI-checks, Undefined, CE 96 9 Minor 77 %
Used Once Variables Analyze, OneFile, All, Simple, Top10, ChangedBehavior 2 2 Minor 74 %
Used Once Variables (In Scope) Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE 473 24 Minor 95 %
Written Only Variables Analyze, OneFile, All, Simple, Unused, ChangedBehavior 1 1 Minor 87 %