Missing Dependencies
-
Missing Dependencies of “revolut-core” on “revolut-woocommerce”
This error in all the pages except the checkout page as the “revolut-core” is not registered for the checkout and some specific pages while “revolut-woocommerce” is registered in all pages.I also find some duplicate functions. e.g. createApi function this function is in the abstract class and this function also is in the gateway-revolut.php file as a global function.
and class-wc-gateway-revolut.php also have this function and I found this file is not called anywhere so did you forget to remove it?
And why createApi is global function, this is not a unique name for global function in WordPress, there are some other functions in gateway-revolut.php file that are missing your plugin prefix in name. e.g. “load_admin_scripts”, “load_scripts”, “validate_checkout_field”, “get_customer_base_info”, “load_rest_api”
all these global functions should have plugin prefixes to avoid any conflict with WP core or 3rd party plugins and themes.
Please review the code and fix all these issues if possible. People install this plugin with trust but we should have good code quality in the plugin whiling we are trusting a brand.
Thanks
- The topic ‘Missing Dependencies’ is closed to new replies.