Drush Script to Assess the Complexity of your Drupal 7 Website
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 several 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 several 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 several 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, multi-dev environment, and durst 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 to get this done, without even touching the production environment.