Skip to main content

PHPMD

Pro Plan Feature

This feature is available exclusively as part of the Pro plan and is not included in the Lite plan. Please refer to our pricing page for more information about our plans and features.

PHPMD (PHP Mess Detector) is a static analysis tool for PHP that detects potential problems in your code such as possible bugs, suboptimal code, overcomplicated expressions, and unused parameters, variables, methods, and classes.

Files

PHPMD will run on files with the following extensions:

  • .php

Features

PHPMD can detect various code quality issues including:

  • Clean Code Rules: Detects code smells and violations of clean code principles
  • Controversial Rules: Identifies potentially problematic code patterns
  • Design Rules: Finds design-related issues and architectural problems
  • Naming Rules: Checks for naming convention violations
  • Unused Code Rules: Detects unused variables, parameters, methods, and classes
  • Size Rules: Identifies overly complex methods and classes