WordPress plugin refactoring

Fixed missing dependencies, small fixes.