First, enable debug mode by adding the word debug after the plugin in plugins.ini
Then look at the log files after trying to run it. If there aren't any errors, log variable values yourself at key points to be sure its doing what you want it to be doing.