# avstudnitz/disable-modules

> Adds a console command to show all modules which can be safely disabled as they have no declared dependencies

`composer require avstudnitz/disable-modules`

Canonical URL: https://packagento.com/avstudnitz/disable-modules

## At a glance

- **Vendor**: avstudnitz (https://packagento.com/avstudnitz.md)
- **Latest version**: 1.0.6 — released 2026-05-27
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/avstudnitz/disable-modules and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require avstudnitz/disable-modules:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Adds a console command to show all modules which can be safely disabled as they have no declared dependencies

## README

AvS_DisableModules
=====================
Adds a shell command `info:dependencies:show-removable` which exports all modules which have no dependencies 

Facts
-----
- version: 1.0.0
- [extension on GitHub](https://github.com/avstudnitz/AvS_DisableModules)
- [direct download link](https://github.com/avstudnitz/AvS_DisableModules/archive/master.tar.gz)
- Composer key: `avstudnitz/disable-modules` (registered at Packagist)

Description
-----------
Call the new command as follows: 

```
$ bin/magento info:dependencies:show-removable
```

You'll get an output as follows:

```
Report successfully processed. File "modules-removable.csv" generated.
```

The file "modules-removable.csv" will contain a list of modules: 

```
"Modules without dependencies:"
" =========================== "

Magento_Weee
Magento_WebapiSecurity
Magento_Version
Magento_Usps
Magento_Ups
Magento_TaxImportExport
Magento_SwatchesLayeredNavigation
Magento_Swagger
Magento_Sitemap
Magento_SendFriend
Magento_SalesInventory
Magento_ProductVideo
Magento_Persistent
Magento_OfflinePayments
Magento_NewRelicReporting
Magento_Multishipping
Magento_LayeredNavigation
Magento_GroupedImportExport
Magento_GoogleOptimizer
Magento_GoogleAdwords
Magento_Fedex
Magento_EncryptionKey
Magento_DownloadableImportExport
Magento_Dhl
Magento_Deploy
Magento_CustomerImportExport
Magento_CurrencySymbol
Magento_ConfigurableImportExport
Magento_CheckoutAgreements
Magento_CatalogWidget
Magento_CatalogRuleConfigurable
Magento_Captcha
Magento_CacheInvalidate
Magento_BundleImportExport
Magento_Braintree
Magento_Authorizenet
Magento_AdvancedPricingImportExport
Magento_AdminNotification
Magento_Marketplace
Magento_BundleSampleData
Magento_SalesRuleSampleData
Magento_SalesSampleData
Magento_CustomerSampleData
Magento_CmsSampleData
Magento_TaxSampleData
Magento_GroupedProductSampleData
Magento_DownloadableSampleData
Magento_WidgetSampleData
Magento_MsrpSampleData
Magento_WishlistSampleData
Magento_ReviewSampleData
Magento_SwatchesSampleData
Magento_OfflineShippingSampleData
AvS_DisableModules
```

No other modules have any dependencies declared to any of those modules, so they can be removed safely (in theory). 
To remove them, add `bin/magento module:disable ` in front of the module name you want to remove, i.e.:

```
bin/magento module:disable Magento_Marketplace
```


Requirements
------------
- PHP >= 5.6.0

Compatibility
-------------
- Magento  >= 2.1.0 (not tested on 2.0.x)

Installation Instructions
-------------------------
1. Install the extension via Composer with the key shown above or copy all the files into the newly created directory 
`app/code/AvS/DisableModules/` in the Magento 2 root.
2. Enable the extension by calling `bin/magento module:enable AvS_DisableModules`.
3. Run `bin/magento setup:upgrade`.

Uninstallation
--------------
1. Uninstall the extension by calling `bin/magento module:uninstall AvS_DisableModules`.
2. Remove all extension files from `app/code/AvS/DisableModules/` or use Composer to remove the extension if you have installed it with Composer


Support
-------
If you have any issues with this extension, open an issue on [GitHub](https://github.com/avstudnitz/AvS_DisableModules/issues).

Contribution
------------
Any contribution is highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

Developer
---------
Andreas von Studnitz, integer_net

[http://www.integer-net.com](http://www.integer-net.com)

[@avstudnitz](https://twitter.com/avstudnitz)

Licence
-------
[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)

Copyright
---------
(c) 2017 Andreas von Studnitz / integer_net GmbH

## Recent Versions

| Version | Released |
|---|---|
| 1.0.6 | 2026-05-27 |
| 1.0.5 | 2020-08-27 |
| 1.0.4 | 2019-01-22 |
| 1.0.3 | 2018-06-21 |
| 1.0.2 | 2018-05-15 |
| 1.0.1 | 2018-04-11 |
| 1.0.0 | 2017-03-20 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ~100.0\|\|~101.0\|\|~102.0\|\|~103.0 |

## Quality

Latest release (1.0.6) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 17 | 1 error, 16 warnings (ruleset: Magento2) — 4 auto-fixable with phpcbf |
| PHPMD | Warning | 4 | 4 rule violations (MissingImport:2, ErrorControlOperator:1, UnusedLocalVariable:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Pass | 0 |  |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 7 | 7 | – | – |
| 2.4.8 | – | 7 | 7 | – |
| 2.4.9 | – | – | 7 | 7 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["avstudnitz/disable-modules"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

avstudnitz is a Magento 2 vendor on Packagento. See https://packagento.com/avstudnitz.md for their full catalogue.

