There still remains some other bugs/mistakes not reported though.
The plugin names used in self.dbk_enabled?(plugin) isn't correct, and Settings::ZMOVE_TRIGGER_KEY never exist in Z-Power plugin.
Should be the one below.
# Check if DBK plugin is enabled
def self.dbk_enabled?(plugin)...