Report of unused modules

Created on 14 February 2024, 9 months ago
Updated 29 July 2024, 4 months ago

Problem/Motivation

To have a report of all modules installed via Composer but not enabled, meaning not used on the site and therefore susceptible to removal from Composer.

This report should be generated by running a Drush command, and its results should be displayed in the Drupal Status report as a warning when there are unused modules.

It is important not to categorize as unused modules those that are submodules of others that are in use.

✨ Feature request
Status

Active

Version

1.5

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain lpeidro Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @lpeidro
  • πŸ‡ΈπŸ‡°Slovakia tomas.teicher

    Why is the list on /admin/modules page not enough? You can just focus on not-installed modules there.

  • πŸ‡ͺπŸ‡ΈSpain lpeidro Madrid

    Hello @tomas.teicher,

    The need for this report arose from the necessity to automate certain processes, including the detection of modules that are not in use in our projects, without the need to perform this check manually.

    Additionally, some of our projects are multisites, and we use Config Split to manage the configuration of the different sites. Manual checking can be somewhat tedious in these cases because you need to go into each site for this verification.

    The Xray system that generates the module report does so by analyzing the configuration files, making it capable of detecting modules that are not being used on any of the sites. There may be cases where modules are only active on one or several sites in the multisite but not on all.

Production build 0.71.5 2024