Drupal Analysis Tool CLI PHP

This project is not covered by Drupal’s security advisory policy.

"DRAN" is a single script meant for use via the CLI ( NOT A MODULE ) invoked via command line, which provides a suite of options to monitor various aspects of a site such as SEO, performance, and various system reports.

NOTE: currently works for PHP 5.x, does not support multi-site

Why is this not a module?

A single file, no configuration, no module overhead. simple, quick, and effective.

Watch The Screencast

Scroll to the bottom of the article to view the DRAN Screencast.

Wget It

Execute the following script to download DRAN quickly to your CWD:

#  wget http://vision-media.ca/files/tools/dran

Features

  • IP Address
  • Last Cron Run
  • HTTP Response Time
  • Response Code
  • Node types/counts
  • User roles/counts
  • Comment count
  • Module count/Modules enabled and their throttle status
  • Sessions within various time periods
  • Term count
  • Alias count
  • Page Rank
  • Backlinks
  • Watchdog report
  • Database information (RDBMS, Version, Host, etc)
  • Database details (status, variables, etc)
  • PHP Info (Variables, extensions, etc)
  • Number of included files by file ext
  • Log output to a log file. Ideal for a cron task to monitor various aspects of a site.
  • SERP (Search Engine Results Page) rankings per target keyphrase.
  • WHOIS.

Future Features

I just started development a few hours ago and it is already pretty handy, and intuitive to use but I would like to expand on SEO, performance, and reporting capabilities.
These features are already available in my GUI based analysis module so they should be incorporated shortly.

  • Option to log the output into a file-based log (executed via cron)
  • Analyze the DRAN log file and report on changes
  • Pages Indexed per SE
  • Query Benchmarks
  • GEO Location Data
  • Display general site status via requirements
  • Lines of code executed
  • Number of variables and classes used in executed code

Limitations

PHP5 is required. I will be back-porting this to PHP4 ASAP once time ( or funding :) ) is available.

Development by vision media

Project information

Releases