I created JavaScript file in hurry. When I was modifying the plugin for my app, I never created the JS, I directly call the native function using cordova.exec. For creating the JS, I used https://www.npmjs.org/package/generator-cordova-plugin .
But you are correct, the plugin should be called iRate rather than iRatePlugin.
I will take a look at success and error, it should be implemented.