This ruleset focuses on performances issues : anything that slows the code’s execution.
Total : 60 analysis
Eval() Usage
For Using Functioncall
@ Operator
Nested Loops
While(List() = Each())
Unpreprocessed Values
Avoid array_unique()
Echo With Concat
Slow Functions
No array_merge() In Loops
Could Use Short Assignation
Pre-increment
Avoid Substr() One
Global Inside Loop
Joining file()
Simplify Regex
Make One Call With Array
No Count With 0
Use ::Class Operator
time() Vs strtotime()
Getting Last Element
Avoid array_push()
Should Use Function
Fetch One Row Format
Avoid glob() Usage
Avoid Large Array Assignation
Should Use array_column()
Avoid Concat In Loop
Use pathinfo() Arguments
Simple Switch And Match
Substring First
Use PHP7 Encapsed Strings
Slice Arrays First
Double array_flip()
Processing Collector
Do In Base
Cache Variable Outside Loop
Use The Blind Var
Closure Could Be A Callback
fputcsv() In Loops
Isset() On The Whole Array
array_key_exists() Speedup
Autoappend
Make Magic Concrete
Regex On Arrays
Always Use Function With array_key_exists()
No mb_substr In Loop
Optimize Explode()
scope-resolution-operator
Static Call May Be Truly Static
Simplify Foreach
Too Many Extractions
Skip Empty Array
Ellipsis Merge
Pre-Calculate Use
Substr() In Loops
Should Cache Local
Recalled Condition
Could Use Yield From
Count() To Array Append
Short name
Performances
Available in
Entreprise Edition, Exakat Cloud
Reports
GETTING STARTED
USER GUIDE
REFERENCE GUIDE
ADMINISTRATOR GUIDE
OTHERS