Code Analysis: X-Currency 1.6.7

Function Rating Maintainability Complexity Lines of code
XCurrency\App\Providers\WoocommerceServiceProvider::shippings_cost()
B
41 19 53
XCurrency\App\Providers\WoocommerceServiceProvider::init()
A
41 14 50
XCurrency\App\Woocommerce\Product::product_options_pricing()
A
33 8 129
XCurrency\App\Woocommerce\Product::save_product_settings()
A
48 14 32
XCurrency\App\Providers\WoocommerceServiceProvider::variation_prices()
A
45 13 44
XCurrency\App\Repositories\SettingRepository::input_fields()
A
28
3 193
XCurrency\App\Repositories\CurrencyRepository::get_currencies()
A
46 11 40
XCurrency\App\Providers\SettingServiceProvider::select_currency()
A
47 11 39
XCurrency\App\Woocommerce\ApproximateProductPrice::apply_approximate_price()
A
42 10 47
XCurrency\App\Http\Controllers\CurrencyController::input_fields()
A
30 2 158
x_currency_symbols()
A
27
1 168
XCurrency\Database\Migrations\Currency::execute()
A
41 8 59
XCurrency\App\Woocommerce\Coupon::admin_settings()
A
42 7 50
XCurrency\App\Providers\WoocommerceServiceProvider::payment_gateways()
A
57 9 15
x_currency_get_price_html()
A
51 8 25
XCurrency\App\Woocommerce\Shipping::shipping_inputs()
A
46 7 37
XCurrency\App\Providers\ProVersionUpdateServiceProvider::filter_plugins_api()
A
42 6 51
XCurrency\App\Providers\WoocommerceServiceProvider::variation_get_price()
A
54 8 19
XCurrency\App\Repositories\SwitcherRepository::organizer()
S
56 7 19
XCurrency\App\Providers\WoocommerceServiceProvider::coupon_amount()
S
56 7 17
XCurrency\App\Providers\WoocommerceServiceProvider::variation_get_regular_price()
S
56 7 17
XCurrency\App\Repositories\CurrencyRateRepository::exchange_all_currency()
S
58 7 16
XCurrency\App\Woocommerce\ApproximateProductPrice::boot()
S
57 7 16
XCurrency\App\Repositories\CurrencyRepository::query()
S
51 6 30
XCurrency\App\Repositories\CurrencyRateRepository::exchange_base_currency()
S
51 6 28
XCurrency\App\Providers\ProVersionUpdateServiceProvider::check_for_updates()
S
52 6 24
XCurrency\App\Repositories\SettingRepository::save_settings()
S
51 6 24
XCurrency\App\Providers\SettingServiceProvider::action_init()
S
53 6 22
XCurrency\App\Repositories\SettingRepository::input_fields_with_value()
S
55 6 19
XCurrency\App\Providers\WoocommerceServiceProvider::action_reference_wp()
S
57 6 17
XCurrency\App\Http\Controllers\CurrencyController::demo_currencies()
S
48 5 32
XCurrency\Database\Migrations\Currency::meta()
S
49 5 31
XCurrency\App\Woocommerce\Report::currency_symbol()
S
59 6 13
XCurrency\App\Woocommerce\Order::order_info()
S
46 4 43
XCurrency\App\Woocommerce\Report::report_switcher()
S
52 5 27
XCurrency\App\Providers\WoocommerceServiceProvider::product_sale_price()
S
60 6 12
XCurrency\App\Providers\Admin\GlobalServiceProvider::woocommerce_general_settings()
S
52 5 23
XCurrency\App\Providers\SideStickyServiceProvider::action_wp_enqueue_scripts()
S
54 5 20
XCurrency\App\Stylesheet::output()
S
56 5 17
XCurrency\App\Providers\ScheduleServiceProvider::refresh_currency_rates()
S
57 5 15
XCurrency\App\Woocommerce\BaseCurrencyExchange::shippings_cost()
S
58 5 15
XCurrency\App\Providers\SettingServiceProvider::get_user_ip_address()
S
58 5 14
XCurrency\App\Providers\SettingServiceProvider::set_up_base_currency()
S
46 3 37
XCurrency\App\Providers\LocalizationServiceProvider::action_wp_head()
S
55 4 21
XCurrency\App\Repositories\CurrencyRepository::sort_currencies()
S
54 4 21
XCurrency\App\Repositories\CurrencyRateRepository::exchange()
S
54 4 19
XCurrency\App\Repositories\SwitcherRepository::post_meta()
S
57 4 17
XCurrency\App\Providers\WoocommerceServiceProvider::simple_product_price()
S
57 4 16
x_currency_price_format()
S
59 4 16
XCurrency\App\Repositories\SettingRepository::get()
S
59 4 15
XCurrency\App\Woocommerce\Report::report_data_args()
S
59 4 14
XCurrency::boot()
S
51 3 27
XCurrency\App\Providers\WoocommerceServiceProvider::cart_coupon_allow_free_shipping()
S
62 4 12
XCurrency\App\Http\Controllers\SwitcherController::update()
S
46 2 41
XCurrency\App\Providers\WoocommerceServiceProvider::cart_total_extra_fee()
S
61 4 11
XCurrency\App\Http\Controllers\SwitcherController::create()
S
47 2 39
XCurrency\App\Http\Controllers\GeoIpController::input_fields()
S
48 2 38
XCurrency\App\Repositories\CurrencyRepository::create()
S
48 2 33
XCurrency\App\Repositories\SwitcherRepository::update()
S
55 3 18
XCurrency::stop_load_pro()
S
56 3 18
XCurrency\App\Repositories\SwitcherRepository::create()
S
56 3 17
XCurrency\App\Providers\WoocommerceServiceProvider::price_decimal()
S
65 4 9
XCurrency\App\Providers\SettingServiceProvider::set_currency()
S
62 4 10
XCurrency\App\Woocommerce\Coupon::save_coupon_options()
S
63 4 9
XCurrency\App\Repositories\CurrencyRepository::get_base_currency()
S
60 3 14
XCurrency\App\Repositories\SwitcherRepository::switcher_list_data()
S
59 3 13
XCurrency\App\Repositories\SettingRepository::calculate_transient_time()
S
61 3 13
XCurrency\App\Repositories\CurrencyRepository::get_by_first()
S
61 3 12
XCurrency\App\Repositories\CurrencyRepository::update()
S
51 2 27
XCurrency\App\Providers\WoocommerceServiceProvider::round_price()
S
63 3 11
XCurrency\App\Providers\WoocommerceServiceProvider::cart_extra_fee()
S
63 3 11
XCurrency\App\Http\Controllers\RateController::exchange_single()
S
55 2 21
XCurrency\App\Http\Controllers\RateController::exchange_all()
S
57 2 19
XCurrency\App\Http\Controllers\CurrencyController::create()
S
57 2 19
XCurrency\App\Http\Controllers\CurrencyController::organizer()
S
56 2 19
x_currency_switcher_list()
S
57 2 18
XCurrency\App\Http\Controllers\CurrencyController::update()
S
58 2 18
XCurrency::admin_notice_missing_main_plugin()
S
57 2 16
XCurrency\App\Providers\ProVersionUpdateServiceProvider::boot()
S
66 3 7
XCurrency\App\Woocommerce\BaseCurrencyExchange::variation_get_price()
S
66 3 8
XCurrency\App\Woocommerce\BaseCurrencyExchange::variation_get_regular_price()
S
66 3 8
XCurrency\App\Woocommerce\BaseCurrencyExchange::variation_prices()
S
65 3 10
XCurrency\App\Providers\WoocommerceServiceProvider::get_simple_product_specific_price()
S
70 3 5
XCurrency\App\Providers\Admin\GlobalServiceProvider::action_admin_notices()
S
72 3 5
XCurrency\App\RateProvider\CurrencyFreaks::get_rates()
S
63 3 9
XCurrency\App\RateProvider\Fixer::get_rates()
S
63 3 9
XCurrency\App\RateProvider\FixerApiLayer::get_rates()
S
63 3 9
XCurrency\App\Http\Controllers\CurrencyController::attachment()
S
60 2 14
XCurrency\App\Repositories\CurrencyRepository::prepare_currency()
S
60 2 13
XCurrency\App\Http\Controllers\SwitcherController::pages()
S
59 2 13
XCurrency\App\Providers\Admin\GlobalServiceProvider::plugin_action_links()
S
61 2 11
XCurrency\App\Providers\Admin\MenuServiceProvider::plugin_action_links()
S
61 2 11
XCurrency\App\Providers\CompatibilityServiceProvider::boot()
S
56 1 22
XCurrency\App\Repositories\SwitcherRepository::get_side_sticky()
S
58 1 17
x_currency_exchange()
S
70 2 6
x_currency_clear_cache()
S
74 2 5
XCurrency\App\RateProvider\OpenExchangeRates::get_rates()
S
64 2 9
XCurrency\App\Providers\CompatibilityServiceProvider::cache_clear()
S
70 2 6
XCurrency\App\Repositories\CurrencyRepository::sort_ids()
S
74 2 4
XCurrency\App\Repositories\SettingRepository::db_settings()
S
66 2 9
XCurrency::instance()
S
71 2 6
XCurrency\App\Stylesheet::add_rule()
S
68 2 7
XCurrency\App\Providers\ShortCodeServiceProvider::view()
S
72 2 5
XCurrency\App\Woocommerce\BaseCurrencyExchange::product_regular_price()
S
67 2 8
XCurrency\App\Woocommerce\BaseCurrencyExchange::simple_product_price()
S
67 2 8
XCurrency\App\Woocommerce\Product::variation_product_fields()
S
68 2 6
XCurrency::is_compatible()
S
68 2 7
XCurrency\App\Providers\WoocommerceServiceProvider::product_regular_price()
S
66 2 8
XCurrency\App\Providers\WoocommerceServiceProvider::get_product_regular_and_sale_price()
S
66 2 8
XCurrency\Database\Migrations\Rounding::execute()
S
64 2 9
XCurrency\App\Woocommerce\BaseCurrencyExchange::product_sale_price()
S
67 2 8
XCurrency\App\Providers\WoocommerceServiceProvider::currency_symbol()
S
70 2 6
XCurrency\App\Providers\Admin\MenuServiceProvider::action_admin_head()
S
74 1 12
XCurrency\App\Http\Controllers\SwitcherController::organizer()
S
63 1 11
XCurrency\App\Woocommerce\Order::save_order_meta()
S
62 1 11
x_currency_config()
S
82 1 3
XCurrency\App\Providers\WoocommerceServiceProvider::coupon_min_max_amount()
S
80 1 3
XCurrency\App\Repositories\CurrencyRepository::update_base_currency()
S
66 1 8
XCurrency\App\Models\User::get_table_name()
S
81 1 3
x_currency_global_settings()
S
77 1 4
XCurrency\App\Http\Controllers\SettingController::__construct()
S
81 1 3
XCurrency\App\RateProvider\CurrencyFreaks::get_url()
S
82 1 3
XCurrency\App\Http\Middleware\EnsureIsUserAdmin::handle()
S
80 1 3
XCurrency\App\Providers\ShortCodeServiceProvider::render()
S
78 1 3
XCurrency\App\DTO\SwitcherDTO::set_package()
S
77 1 4
XCurrency\App\Http\Controllers\SettingController::setting_inputs()
S
66 1 9
XCurrency\App\RateProvider\FixerApiLayer::get_url()
S
82 1 3
XCurrency\App\DTO\SwitcherDTO::set_id()
S
77 1 4
XCurrency\App\Repositories\SettingRepository::update_settings()
S
78 1 3
XCurrency\App\DTO\SwitcherDTO::set_title()
S
77 1 4
XCurrency\App\Providers\Admin\GlobalServiceProvider::__construct()
S
81 1 3
XCurrency\App\Http\Controllers\User\CurrencyController::index()
S
71 1 7
XCurrency\App\Stylesheet::clear()
S
72 1 6
XCurrency\App\Http\Controllers\User\CurrencyController::__construct()
S
81 1 3
x_currency_base_id()
S
82 1 3
XCurrency\App\Woocommerce\Product::boot()
S
71 1 5
XCurrency\App\Models\UserMeta::resolver()
S
80 1 3
XCurrency\App\Providers\Admin\GlobalServiceProvider::boot()
S
72 1 5
XCurrency\App\Providers\SideStickyServiceProvider::boot()
S
78 1 3
XCurrency\App\Woocommerce\ApproximateProductPrice::approximate_price_html()
S
64 1 8
XCurrency\App\Providers\WoocommerceServiceProvider::price_format()
S
80 1 3
XCurrency\Database\Migrations\Currency::__construct()
S
77 1 4
XCurrency\App\Http\Controllers\GeoIpController::__construct()
S
81 1 3
XCurrency\App\Woocommerce\Product::simple_product_fields()
S
72 1 5
XCurrency\App\Stylesheet::add_css()
S
81 1 3
XCurrency\App\DTO\SwitcherDTO::set_template()
S
77 1 4
XCurrency\App\Providers\WoocommerceServiceProvider::price_thousand_separator()
S
82 1 3
XCurrency\App\Models\UserMeta::get_table_name()
S
81 1 3
XCurrency\App\DTO\SwitcherDTO::get_title()
S
82 1 3
x_currency_url()
S
81 1 3
XCurrency\App\DTO\SwitcherDTO::set_active_status()
S
77 1 4
XCurrency\App\Woocommerce\Order::boot()
S
75 1 4
XCurrency\App\Http\Controllers\SwitcherController::switcher_list()
S
66 1 9
XCurrency\App\Repositories\CurrencyRateRepository::__construct()
S
77 1 4
XCurrency\App\Providers\SettingServiceProvider::action_wp_head()
S
81 1 3
XCurrency\App\Woocommerce\ApproximateProductPrice::__construct()
S
81 1 3
XCurrency\App\Models\Post::get_table_name()
S
81 1 3
x_currency_is_base_currency()
S
80 1 3
XCurrency\App\Woocommerce\Shipping::free_shipping_fields()
S
66 1 8
XCurrency\App\DTO\SwitcherDTO::get_template()
S
82 1 3
XCurrency\App\Woocommerce\ApproximateProductPrice::approximate_cart_total_amount()
S
73 1 4
XCurrency\App\Providers\ScheduleServiceProvider::action_init()
S
82 1 3
XCurrency\App\Woocommerce\Report::boot()
S
72 1 5
XCurrency\App\Providers\ShortCodeServiceProvider::boot()
S
79 1 3
XCurrency\App\Repositories\CurrencyRepository::get_geo()
S
79 1 3
x_currency_singleton()
S
81 1 3
XCurrency\App\DTO\SwitcherDTO::set_custom_css()
S
77 1 4
XCurrency\App\Repositories\CurrencyRepository::update_sort_ids()
S
78 1 3
XCurrency\App\Repositories\CurrencyRepository::get()
S
80 1 3
XCurrency\App\Woocommerce\Order::order_meta_boxes()
S
77 1 3
XCurrency\App\Providers\LocalizationServiceProvider::boot()
S
79 1 3
XCurrency\Database\Migrations\Rounding::more_than_version()
S
82 1 3
XCurrency\App\Http\Controllers\NoticeController::maybe_latter()
S
75 1 4
XCurrency\App\Woocommerce\Coupon::boot()
S
75 1 4
XCurrency\App\Providers\WoocommerceServiceProvider::currency_code()
S
82 1 3
XCurrency\App\Providers\Admin\MenuServiceProvider::boot()
S
72 1 5
XCurrency\App\Repositories\CurrencyRepository::update_geo()
S
66 1 9
XCurrency\App\RateProvider\OpenExchangeRates::get_url()
S
82 1 3
XCurrency\App\Http\Controllers\RateController::__construct()
S
77 1 4
XCurrency\App\Http\Controllers\SettingController::save_settings()
S
65 1 10
XCurrency\App\Stylesheet::parse_dimension_value()
S
77 1 3
XCurrency\App\Providers\ScheduleServiceProvider::boot()
S
78 1 3
XCurrency\App\DTO\SwitcherDTO::get_custom_css()
S
82 1 3
XCurrency\App\Providers\WoocommerceServiceProvider::price_decimal_separator()
S
82 1 3
XCurrency\App\DTO\SwitcherDTO::get_package()
S
82 1 3
XCurrency\App\Woocommerce\Shipping::local_pickup_fields()
S
66 1 8
XCurrency\App\Models\Post::meta()
S
79 1 3
XCurrency\App\Providers\SettingServiceProvider::boot()
S
74 1 4
XCurrency::action_admin_notices()
S
79 1 7
XCurrency\App\RateProvider\Fixer::get_url()
S
82 1 3
XCurrency\App\Http\Controllers\SwitcherController::__construct()
S
81 1 3
XCurrency\App\Models\Post::resolver()
S
80 1 3
XCurrency\App\Repositories\CurrencyRateRepository::update_currency_rate()
S
68 1 7
XCurrency\App\Woocommerce\Shipping::flat_rate_fields()
S
66 1 8
XCurrency\App\DTO\SwitcherDTO::is_active_status()
S
82 1 3
XCurrency\App\Models\PostMeta::get_table_name()
S
81 1 3
XCurrency\App\Providers\WoocommerceServiceProvider::woocommerce_get_price_html()
S
79 1 3
XCurrency\App\Repositories\CurrencyRepository::get_base_currency_id()
S
76 1 4
XCurrency\App\Stylesheet::add_device()
S
80 1 3
XCurrency\App\Providers\Admin\MenuServiceProvider::content()
S
81 1 3
XCurrency\Database\Migrations\Currency::more_than_version()
S
82 1 3
XCurrency\App\Providers\WoocommerceServiceProvider::boot()
S
79 1 3
XCurrency\App\Models\PostMeta::resolver()
S
80 1 3
XCurrency\App\DTO\SwitcherDTO::get_customizer_id()
S
82 1 3
XCurrency\App\DTO\SwitcherDTO::set_customizer_id()
S
77 1 4
XCurrency\App\Repositories\SwitcherRepository::get()
S
65 1 9
XCurrency\App\Http\Controllers\GeoIpController::save_currency_geo_location()
S
66 1 9
XCurrency\App\Stylesheet::parse_border_value()
S
66 1 8
x_currency_base()
S
76 1 4
XCurrency\App\Models\Currency::resolver()
S
80 1 3
x_currency_get_json_file_content()
S
75 1 4
XCurrency\App\DTO\SwitcherDTO::get_id()
S
82 1 3
x_currency_render()
S
83 1 3
XCurrency\App\Providers\SettingServiceProvider::__construct()
S
77 1 4
x_currency_selected()
S
77 1 4
x_currency_user_country_code()
S
77 1 4
x_currency_version()
S
81 1 3
x_currency_dir()
S
81 1 3
x_currency_base_code()
S
82 1 3
x_currency()
S
83 1 3
XCurrency\App\RateProvider\ProviderBase::get_rates()
S
100 1 0
XCurrency\App\Providers\WoocommerceServiceProvider::__construct()
S
81 1 3
XCurrency\App\Woocommerce\Shipping::boot()
S
71 1 5
XCurrency\App\Woocommerce\BaseCurrencyExchange::__construct()
S
62 1 10
XCurrency\App\DTO\SwitcherDTO::set_type()
S
77 1 4
XCurrency\App\Http\Controllers\CurrencyController::__construct()
S
77 1 4
XCurrency\App\DTO\SwitcherDTO::get_type()
S
82 1 3
XCurrency\App\Providers\Admin\MenuServiceProvider::action_admin_menu()
S
63 1 9
XCurrency\App\Woocommerce\BaseCurrencyExchange::woocommerce_get_price_html()
S
79 1 3
XCurrency\App\Models\User::resolver()
S
80 1 3
XCurrency\App\RateProvider\ProviderBase::get_url()
S
100 1 0
XCurrency\App\Http\Controllers\CurrencyController::index()
S
68 1 8
XCurrency\App\Repositories\CurrencyRepository::get_all()
S
79 1 3
XCurrency\App\Models\Currency::get_table_name()
S
81 1 3
XCurrency\App\Repositories\CurrencyRepository::normalize_rate()
S
78 1 3