Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Content Translation Redirect Module content_translation_redirect crossed 1,000 active installs.

Module Weight Analyst

2 sites No security coverage
View on drupal.org

This module helps you manage the order in which Drupal modules load to prevent conflicts and improve stability. It provides a visual dashboard to audit module dependencies and uses a "health score" to identify potential issues, allowing you to adjust module weights and ensure a stable execution sequence.

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
5 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

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