This topic is currently being discussed here:
Static analysis tools can be installed with Composer, and used through Shaarli's Makefile.
For an overview of the available features, see: