Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Site Audit

Security covered Under active development 2,754 sites

Part of the Site ecosystem · 38 projects

Site Audit is a tool that analyzes Drupal websites to identify potential problems and provide recommendations for improvement. It performs static site analysis, meaning it doesn't interact with the live site, making it a non-intrusive way to get reports on best practices, security, performance, and more. These reports can be generated in various formats and can be extended with custom checks.

Site Audit is a Drupal static site analysis platform that generates reports with actionable best practice recommendations.

Every Drupal site is unique, with its own individual configuration, content, audience, and so forth. With that said, they all have the same core infrastructure and configuration; Drupal! Therefore, it's possible to perform performance and behavior gathering to inspect any site.

Site Audit uses a technique known as static program analysis. This mechanism does not actually perform requests on the target site, and in doing so avoids the observer effect. It's non-intrusive, so no installation into the target site or configuration is required.

The end result is a fast, repeatable report that can help detect common problems and provide introspection into Drupal sites. Reports can be generated in multiple formats, including plain text, HTML, and JSON.

Site Audit can also be extended by other projects to add custom reports and checks.

Reports

Site Audit includes a number of comprehensive reports, each consisting of one or more checks. Site Audit reports include:

  • Best Practices - structural recommendations
  • Block - caching
  • Cache - optimal Drupal caching settings
  • Codebase - size of the site; size and count of managed files
  • Content - checks for unused content types, vocabularies
  • Cron - Drupal's built-in cron
  • Database - collation, engine, row counts, and size
  • Extensions - count, development modules, duplicates, missing
  • Insights - Analyze site with Google PageSpeed Insights
  • Security - check for common security exploits, such as malicious menu router items
  • Status - check for failures in Drupal's built-in status report
  • Users - blocked user #1, number of normal and blocked users, list of roles
  • Views - caching settings
  • Watchdog - 404 error count, age, number of entries, enabled, PHP errors

Installation

See README.md for installation instructions.

HTML reports

Create a new file or overwrite:

drush ac --html --detail > ~/Desktop/report.html

Continue writing to a file:

drush abp --html --detail >> ~/Desktop/report.html

Run every report with maximum detail, skipping Google insights and adding Twitter Bootstrap for styling:

drush aa --html --bootstrap --detail --skip=insights > ~/Desktop/report.html

Availability

Site Audit is used to power Launch Check on Pantheon, a collection of site status checks through the Pantheon Dashboard. Site Audit is installed at Pantheon and can be used on any Pantheon site that you manage. Learn more about Drush on Pantheon.

To see all the Site Audit commands on Pantheon, use:

drush @pantheon.SITENAME.ENV help --filter=site_audit

To run the Best Practices report on Pantheon:

drush @pantheon.SITENAME.ENV --detail abp

To check caching settings on Pantheon (recommendation is to disable page compression):

drush @pantheon.SITENAME.ENV --vendor=pantheon --detail ac

Feel free to add vendor specific support, either through a patch or by specifying the functional differences. If you've installed Site Audit and made it available to your customers platform-wide, let us know and we can list it here.

Integration with other modules

Site Audit is extensible; see the documentation for details and examples.

The following modules have or will have Site Audit support:

If your module includes Site Audit support, submit an issue and we'll update this list.

Drupal 10–11

Ask your assistant about Site Audit

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
16
Tracked since
Jan 2023
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
4.0.0-beta2 Pre-release 8–10 May 12, 2023
4.0.x-dev Dev 9–10 May 12, 2023
4.0.0-beta1 Pre-release 8–10 May 11, 2023
4.0.0-alpha3 Pre-release 8–10 Mar 6, 2023
4.0.0-alpha2 Pre-release 8–10 Jan 24, 2023
4.0.0-alpha1 Pre-release 8–9 PHP >=5.6.0 Jan 16, 2023