Skip to main content
Drush script to assess the complexity of your Drupal 7 website
BY webmaster
6 months ago
0 comments comment

It is extremely important to assess the complexity of your Drupal 7 website before you plan to upgrade/migrate it to Drupal 9. We have created a tool that helps you in this process.

Drupal 7 Audit

The Drupal 7 audit is a Drush command which can do a full site audit to capture the essential elements required for assessing the complexity of your Drupal 7 site.

The script will capture the following elements and prepare a neat report which can be given to any Drupal vendor to get an estimate of your Drupal 7 to 9 migration.

Sl. No Properties
1 Basic Information
1.1 Site ID
1.2 Domain name
1.3 Database size
1.4 Drupal 7 version
2 Content
2.1 List of content types with a number of fields and number of published nodes
2.2 List of web forms with the total number of submissions
2.3 Number of files uploaded
2.4 List of vocabularies and number of terms
2.5 List of enabled views with a number of displays
2.6 List of enabled blocks and regions
3 Modules
3.1 List of contributed modules with its Drupal 8/9 readiness status
3.2 List of custom modules enabled with the number of lines of code
3.3 List of enabled features
4 Theme
4.1 List of templates from the default theme
4.2 The number of lines of code and list of functions from the template.php
4.3 List of CSS and JS files used
5 Users
5.1 List of user roles with a number of users
5.2 List of permissions
6 Cron jobs
6.1 List of custom cron jobs




Multiple Drupal 7 website?

If you are managing multiple Drupal 7 websites in a Drupal hosting system like Pantheon, no need to execute this drush command manually on all the websites. It is possible to automate this script to execute on all your Drupal 7 websites on Pantheon using Terminus, multidev environment and dursh features provided by Pantheon. We recently executed this script for a client who has 170+ Drupal websites in Pantheon, and it took only a few hours time to get this done, without even touching the production environment.


Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.