Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

module_weight_analyst

3 sites No security coverage
View on drupal.org

The Module Weight Analyst provides a visual diagnostic suite to audit and optimize Drupal's module load order. It prevents execution conflicts and ensures system stability.

This module solves the common "black box" problem of module execution order. In Drupal, a module's "weight" determines when its hooks and services are processed. If security or routing modules fire in the wrong sequence, it can lead to silent failures or performance bottlenecks. This tool transforms weight management from a guessing game into a data-driven process, empowering site builders to resolve complex dependency conflicts through a modern, interactive dashboard.

Features

  • Integrity Dashboard: A centralized command center featuring a visual "Health Score" based on recursive dependency sequence validation.
  • Dependency Auditing: Automatically flags "Early-load" risks where child modules are configured to execute before their parent dependencies.
  • Conflict Prevention Logic: Built-in safeguards that prevent saving configurations known to cause circular dependencies or service container breaks.
  • Strategic Filtering: Advanced UI controls to isolate modules by Origin (Core, Contrib, Custom), Execution Phase, or Conflict Status.

Installation

Install as you would any contributed Drupal module. See Installing Drupal Modules.

composer require drupal/module_weight_analyst

Enable the module using Drush:

drush en module_weight_analyst

Post-Installation

After installation, access the Analyst suite to begin auditing your site's execution stack:

  1. Navigate to Configuration » Development » Module Weight Analyst.
  2. Review the Sequence Integrity card for any modules flagged with conflicts.
  3. Modify weight values directly in the interactive table. Lower numbers (negative) run earlier; higher numbers run later.
  4. Check the "Audit" column for a ✔ Valid Sequence badge before proceeding.
  5. Click Apply Weights to commit changes to your site configuration.

Warning: Adjusting module weights alters core security and routing layers. Always perform weight adjustments on a local or staging environment before deploying to production.

Additional Requirements

This module requires PHP 8.1+ and Drupal Core 10 or 11. No external libraries are required.

Similar projects

  • Modules Weight: A utility module for basic weight updates via a simple list.
  • Module Weight Analyst differentiates itself by providing a full diagnostic ecosystem, including health scoring, dependency conflict detection, and an enterprise-grade administrative interface.

Supporting this Module

If you find this module useful, please consider reporting bugs or submitting feature requests in the issue queue. Your feedback helps ensure the health of the Drupal ecosystem!

Activity

Total releases
2
First release
Feb 2026
Latest release
2 months ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Feb 7, 2026
1.0.x-dev Dev Feb 7, 2026