Optimization: Optimized WizPurchasePlugin for refactoring, readability and clean-up