Hi for testing I would write PHP Unit test classes and send you detailed information of if possibly the script can be hacked, or any backdoors installed and there and any sort of issue that i can find and where it is not in the standard of coding , includes what if the exception not handled, too many loops, catching methods used, too many nested blocks and etc.
Will go through line by line of your coding. thanks
Patzz