# Dev Dependency Analyzer

Category Severity Time To Fix
🚀 Performance Major 1 minute

Class: Enlightn\Enlightn\Analyzers\Performance\DevDependencyAnalyzer

# Introduction

This analyzer ensures that you do not have any dev dependencies installed in a production environment.

Dev dependencies can slow down your application in production. Dev packages are typically used for debugging and can have quite a significant overhead, especially with package auto discovery enabled.

Some of these packages record queries, events and other activities in memory, which produces both processing and memory overhead.

To run a Composer install on production, it is recommended to use the --no-dev flag to ensure dev dependencies are not installed:

composer install --prefer-dist --no-dev

# References