To ensure that you are following Moodle's coding conventions, download and install the code-checker plugin from the Moodle plugins directory at https://moodle.org/plugins/view.php?plugin=local_codechecker. Once installed, the code checker tool is available under Development in the Site administration menu:
![](https://static.packt-cdn.com/products/9781786467119/graphics/assets/5303ab6e-f543-41a4-aea9-0802afbf59ed.png)
Click on Code checker to open the checker configuration page. Specify the path to the plugin you want to check:
![](https://static.packt-cdn.com/products/9781786467119/graphics/assets/decc7cbc-9892-4bb2-a120-4b36e3616eb5.png)
Press the Check code button to begin the checking process. Once complete, a report is displayed listing all the files checked, together with a count of errors and warnings:
![](https://static.packt-cdn.com/products/9781786467119/graphics/assets/e2dae295-a73f-4c2d-91a7-09f79e88d00c.png)
Clicking on a link will display further details. For example, here is the detailed report for an error in mod\wavefront\comment.php:
![](https://static.packt-cdn.com/products/9781786467119/graphics/assets/661191d9-0377-485d-a94e-2dd6bc2086ff.png)