2.3.36. Performances¶

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

2.3.36.1. Specs¶

Short name

Performances

Available in

Entreprise Edition, Exakat Cloud

Reports

Exakat

Navigation

  • Introduction
  • Release Note

GETTING STARTED

  • Standard installation
  • Docker installation
  • Tutorials

USER GUIDE

  • Overview
  • PHP Version
  • Library & Framework Support
  • Configuration
  • Scoping analysis
  • Rule
  • Report
  • Cobbler

REFERENCE GUIDE

  • 1. Rules
  • 2. Rulesets
  • 3. Reports
  • 4. Cobblers
  • 5. Real Code Cases

ADMINISTRATOR GUIDE

  • Installation
  • Upgrading
  • Configuration
  • Commands

OTHERS

  • Frequently Asked Questions
  • Glossary
  • Annex

Related Topics

  • Documentation overview
    • 2. Rulesets
      • Previous: 2.3.35. PHP recommendations
      • Next: 2.3.37. Preferences
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 9.0.4 & Alabaster 1.0.0 | Page source