Code Analysis: Morning for WooCommerce 1.2.3

Function Rating Maintainability Complexity Lines of code
Morning\WC\Utilities\Settings::render_field()
B
39 17 70
Morning\WC\Utilities\API::request_payment_url()
A
36 10 79
Morning\WC\Abstracts\Payment_Gateway::check_ipn_response()
A
51 9 26
Morning\WC\Utilities\API::request()
A
45 6 46
Morning\WC\Utilities\Settings::register_plugin_settings()
S
37 1 102
Plugin::register_payment_gateways()
S
55 6 20
Morning\WC\Abstracts\Payment_Gateway::receipt_page()
S
54 6 18
morning_wc_autoloader()
S
52 5 23
Morning\WC\Abstracts\Payment_Gateway::__construct()
S
50 4 27
Morning\WC\Utilities\API::connect_store()
S
53 4 22
Morning\WC\Utilities\Settings::maybe_check_license()
S
60 4 14
Morning\WC\Utilities\Device::get_type()
S
61 4 13
morning_wc_payment_gateway_init()
S
61 4 11
Morning\WC\Abstracts\Payment_Gateway::process_payment()
S
56 3 20
Admin::register_assets()
S
53 3 20
Morning\WC\Utilities\API::__construct()
S
57 3 18
Metabox::register_meta_boxes()
S
57 3 17
Morning\WC\Utilities\API::get_endpoint_url()
S
68 4 7
Plugin::check_license_activation()
S
64 4 9
AJAX::sync_gateways()
S
60 3 13
Frontend::inject_download_invoice_action()
S
61 3 12
Morning\WC\Fields\Gateways_Sync::html()
S
52 2 26
Morning\WC\Utilities\Settings::__construct()
S
61 3 11
Updater::v1_2_2_migration()
S
69 3 6
Plugin::change_ipn_order_status()
S
64 3 10
Morning\WC\Abstracts\Settings_Field::__construct()
S
63 3 9
Morning\WC\Utilities\Logger::__construct()
S
65 3 9
Morning\WC\Utilities\Logger::log()
S
63 3 10
Updater::maybe_run_updates()
S
69 3 8
Metabox::admin_metabox_output()
S
59 2 14
Morning\WC\Abstracts\Payment_Gateway::handle_failure_response()
S
61 2 11
Morning\WC\Abstracts\Payment_Gateway::init_form_fields()
S
53 1 24
Morning\WC\Enum\Document_Type::get_type()
S
54 1 19
Morning\WC\Gateways\Credit_Card_Gateway::__construct()
S
57 1 18
Morning\WC\Fields\Status_Indicator::__construct()
S
64 2 9
Plugin::maybe_print_error()
S
71 2 6
Morning\WC\Fields\Text_Input::__construct()
S
68 2 7
Morning\WC\Gateways\Google_Pay_Gateway::__construct()
S
58 1 15
Morning\WC\Utilities\API::set_license_key()
S
72 2 6
Plugin::declare_woocommerce_computability()
S
73 2 5
Morning\WC\Utilities\API::get_instance()
S
72 2 6
Morning\WC\Utilities\Device::get_user_agent()
S
71 2 6
Morning\WC\Utilities\Logger::get_instance()
S
72 2 6
Plugin::is_gateway_active()
S
77 2 3
Morning\WC\Utilities\Settings::maybe_change_status()
S
68 2 7
Plugin::get_instance()
S
72 2 6
Morning\WC\Abstracts\Settings_Field::is_disabled()
S
80 2 3
Morning\WC\Abstracts\Settings_Field::is_readonly()
S
80 2 3
Frontend::register_assets()
S
66 2 8
Morning\WC\Gateways\Bit_Gateway::__construct()
S
61 1 13
Morning\WC\Fields\Checkbox::html()
S
62 1 12
Morning\WC\Abstracts\Payment_Gateway::get_gateway_url()
S
63 1 11
Morning\WC\Utilities\Settings::register_plugin_settings_page()
S
63 1 11
Morning\WC\Abstracts\Settings_Field::html()
S
91 1 2
Morning\WC\Abstracts\Settings_Field::normalize_type()
S
80 1 3
Morning\WC\Utilities\Settings::render_page()
S
80 1 3
Morning\WC\Gateways\Google_Pay_Gateway::custom_payment_form_atts()
S
80 1 3
Morning\WC\Gateways\Apple_Pay_Gateway::__construct()
S
64 1 10
Plugin::__clone()
S
78 1 3
Compatibility::wordpress_version()
S
74 1 4
Morning\WC\Abstracts\Settings_Field::normalize_css_classes()
S
79 1 3
Plugin::init_classes()
S
69 1 8
Frontend::__construct()
S
74 1 4
Compatibility::admin_notice()
S
75 1 4
Morning\WC\Enum\Payment_Type::get_all()
S
79 1 3
Morning\WC\Abstracts\Payment_Gateway::supports_capability()
S
73 1 4
Updater::update_version()
S
80 1 3
Morning\WC\Fields\Select::build_field_options_html()
S
64 1 10
Morning\WC\Abstracts\Settings_Field::normalize_id()
S
80 1 3
Admin::__construct()
S
74 1 4
Compatibility::woocommerce_not_installed()
S
75 1 4
Morning\WC\Utilities\API::get_authorization_header()
S
78 1 3
Morning\WC\Utilities\Logger::clear_logs()
S
81 1 3
Morning\WC\Gateways\PayPal_Gateway::__construct()
S
67 1 7
Plugin::__wakeup()
S
78 1 3
Morning\WC\Fields\Status_Indicator::get_status_label()
S
78 1 3
Morning\WC\Abstracts\Payment_Gateway::needs_setup()
S
75 1 4
Morning\WC\Utilities\Settings::get_options()
S
80 1 3
Updater::before()
S
75 1 4
Morning\WC\Enum\Payment_Type::get_label()
S
63 1 10
Morning\WC\Abstracts\Settings_Field::sanitize_value()
S
80 1 3
Morning\WC\Abstracts\Payment_Gateway::handle_ipn_response()
S
64 1 9
Compatibility::sandbox_active()
S
73 1 4
morning_wc_load_plugin_textdomain()
S
82 1 3
Morning\WC\Fields\Checkbox::__construct()
S
72 1 5
Metabox::__construct()
S
79 1 3
Updater::v1_2_0_migration()
S
78 1 4
Admin::register_plugin_links()
S
65 1 9
Plugin::__construct()
S
66 1 8
Morning\WC\Abstracts\Settings_Field::normalize_name()
S
80 1 3
Morning\WC\Abstracts\Payment_Gateway::supports_currency()
S
73 1 4
Morning\WC\Utilities\API::get_body()
S
79 1 3
Morning\WC\Fields\Select::html()
S
65 1 10
Morning\WC\Abstracts\Settings_Field::print()
S
73 1 5
Morning\WC\Fields\Checkbox::sanitize_label()
S
80 1 3
Morning\WC\Fields\Checkbox::is_checked()
S
79 1 3
Updater::__construct()
S
79 1 3
AJAX::__construct()
S
79 1 3
Morning\WC\Abstracts\Payment_Gateway::handle_success_response()
S
70 1 5
Morning\WC\Fields\Text_Input::is_valid_type()
S
79 1 3
Morning\WC\Utilities\Settings::render_description()
S
79 1 3
Morning\WC\Fields\Status_Indicator::html()
S
65 1 10
Morning\WC\Fields\Text_Input::html()
S
65 1 10
Compatibility::needs_activation()
S
73 1 4
Morning\WC\Fields\Gateways_Sync::__construct()
S
75 1 4
Compatibility::php_version()
S
74 1 4
Morning\WC\Fields\Select::__construct()
S
74 1 4