magento-audit
magento-audit copied to clipboard
Toolbox for Magento Shop Audit
Magento Audit Toolbox
The generate-reports.sh script generates various reports on a Magento installation that are useful as foundation for a shop audit.
Usage
Copy the files of this repository into a Magento installation (Using a development environment and not the live system is strongly recommended):
wget https://github.com/schmengler/magento-audit/tarball/master -O - | tar -xz
Run the script:
./generate-reports.sh
Warning: The script will download a clean Magento source from the Magento website to run comparisons and some addons for n98-magerun and phpcs from Github, all to the user's home directory.
When it's done, you will find the results in var/audit:
modules.csv: List of all modules and their status (active or inactive)module-updates-from-connect.csv: List of extensions that have been installed via Magento Connect and can be updatedsysinfo.csv: General information about the Magento instancecodepooloverrides.html: Overridden core classes inapp/code/localcorehacks.html: Modified core filesrewrites.csv: List of all class rewritesrewrite-conflicts.xml: Conflicting class rewritesphpcs.csv: Report from code sniffer about coding standard violations and possible problems
Global Usage
You can also put magento-audit outside of a Magento repository, for example in your home directory. Then you need to specify the Magento root directory as follows:
./generate-reports.sh -r /path/to/magento
The reports will still be gathered in var/audit within the Magento root
License
MIT
Thanks To
- Christian Münch for n98-magerun
- Kalen Jordan for his magerun-addons
- Fabrizio Branca for the Magento Project Mess Detector
- The Magento ECG for their Magento Code Sniffer