php-cleanup

Community

Remove dead PHP, cleanup unused code & deps.

Authoriwritec0de
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Detects and cleans unused PHP code, dead code, and missing dependencies in WordPress projects, helping teams reduce bloat and prevent runtime errors.

Core Features & Use Cases

  • Detect unused PHP code and dead code using Psalm, composer-unused, and PHP-CS-Fixer
  • Identify missing composer dependencies with composer-require-checker
  • Clean up unused imports and stale dependencies in WordPress plugins/themes
  • Real-world use case: prune legacy code to shrink autoload size and boost performance

Quick Start

Run the cleanup workflow on your WordPress PHP project to identify dead code and remove unused dependencies

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: php-cleanup
Download link: https://github.com/iwritec0de/wp-dev/archive/main.zip#php-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.