Code Analysis: Campaign Monitor for WooCommerce 1.4.8

Function Rating Maintainability Complexity Lines of code
Services_JSON::decode()
D
20
67 179
Services_JSON::encode()
D
28
36 123
core\Ajax::set_client_list()
D
26
31 148
core\App::handle_request()
B
34 18 89
core\App::checkout_process()
B
37 19 69
CS_REST_CurlTransport::make_call()
B
35 18 78
core\App::__construct()
A
36 13 75
core\Customer::format()
A
38 11 70
core\Fields::get_select()
A
40 11 63
core\Cron::run()
A
41 8 57
core\Customer::createLinks()
A
49 10 27
CS_REST_SocketTransport::_build_request()
A
48 8 33
core\Customer::getDetails()
A
40 6 61
core\Connect::request()
A
50 8 29
core\Ajax::view_client_list()
A
42 6 53
core\CampaignMonitor::get_segments()
S
50 7 29
CS_REST_BaseSerialiser::check_encoding()
S
58 8 14
core\Fields::get_hidden()
S
51 7 26
core\Fields::get_visible()
S
51 7 26
core\Customer::getData()
S
48 6 33
CS_REST_Wrapper_Base::__construct()
S
50 6 26
core\CampaignMonitor::get_list_segments()
S
55 6 20
core\Ajax::get_custom_fields()
S
44 4 46
core\Order::getByEmail()
S
50 5 28
core\Ajax::create_list()
S
43 3 56
Services_JSON::utf82utf16()
S
55 5 19
CS_REST_Wrapper_Base::get_request_paged()
S
56 5 19
core\Map::remove()
S
56 5 19
core\App::woocommerce_subscription_box_before()
S
55 5 19
Services_JSON::utf162utf8()
S
55 5 18
CS_REST_Wrapper_Base::refresh_token()
S
49 4 32
core\Map::get()
S
57 5 17
core\Ajax::dismiss_notice()
S
57 5 17
core\ClientList::get()
S
60 5 14
CS_REST_TRANSPORT_get_available()
S
60 5 12
CS_REST_Wrapper_Base::get_request_with_params()
S
62 5 11
core\App::plugin_notices()
S
52 4 26
CS_REST_SocketTransport::make_call()
S
47 3 35
core\Cron::schedules()
S
56 4 18
core\Fields::get()
S
55 4 18
core\Subscribers::get()
S
59 4 15
core\Fields::get_required()
S
58 4 14
core\Settings::get()
S
61 4 13
core\App::profile_update()
S
44 2 43
core\CampaignMonitor::create_list()
S
52 3 25
core\CampaignMonitor::create_custom_field()
S
52 3 24
core\CampaignMonitor::update_custom_field()
S
54 3 22
core\CampaignMonitor::import_subscribers()
S
55 3 19
core\CampaignMonitor::get_segment()
S
55 3 19
core\CampaignMonitor::get_client_list()
S
57 3 17
core\CampaignMonitor::create_segment()
S
57 3 17
core\CampaignMonitor::get_custom_fields()
S
57 3 17
core\CronHelper::lock()
S
57 3 17
core\CampaignMonitor::get_clients()
S
58 3 16
core\CampaignMonitor::create_client()
S
58 3 16
core\CampaignMonitor::get_timezones()
S
58 3 16
core\CampaignMonitor::get_list_details()
S
58 3 16
CS_REST_Wrapper_Base::_call()
S
56 3 16
core\CampaignMonitor::add_subscriber()
S
58 3 16
core\CampaignMonitor::get_subscriber()
S
59 3 15
core\CampaignMonitor::get_stats()
S
59 3 15
Services_JSON::isError()
S
67 4 8
core\Log::getFileName()
S
59 3 15
core\Session::__call()
S
63 4 9
core\Segment::toArray()
S
59 3 14
core\App::load_custom_wp_admin_scripts()
S
58 3 14
core\App::plugin_deactivation()
S
60 3 13
core\HttpClient::request()
S
51 2 28
core\Ajax::remove_notice()
S
62 3 12
CS_REST_BaseTransport::split_and_inflate()
S
60 3 12
core\CronHelper::isRunning()
S
61 3 11
core\Ajax::generate_custom_fields_list()
S
57 2 17
CS_REST_SERIALISATION_get_available()
S
66 3 8
CS_REST_SocketWrapper::open()
S
63 3 10
CS_REST_Clients::create()
S
65 3 9
CS_REST_NativeJsonSerialiser::serialise()
S
75 3 4
core\Fields::addRange()
S
64 3 9
core\Fields::mapAttributes()
S
70 3 6
CS_REST_Clients::set_basics()
S
65 3 9
CS_REST_ServicesJsonSerialiser::serialise()
S
75 3 4
CS_REST_TRANSPORT_can_use_raw_socket()
S
67 3 9
core\Ajax::run()
S
59 2 13
core\Util::htmlDecodeEncode()
S
61 2 11
core\Ajax::generate_modal()
S
54 1 25
core\App::create_fields()
S
52 1 22
core\Database::install()
S
58 1 17
core\Fields::__construct()
S
57 1 17
CS_REST_General::authorize_url()
S
64 2 9
core\Order::getTotal()
S
66 2 8
CS_REST_SocketTransport::__construct()
S
69 2 7
core\Session::__get()
S
68 2 7
core\Subscribers::add()
S
65 2 9
CS_REST_General::instantiate_url()
S
64 2 9
core\Ajax::get_list_settings()
S
66 2 8
core\App::run()
S
72 2 6
core\App::auto_deactivate()
S
69 2 7
core\CampaignMonitor::refresh_token()
S
65 2 9
core\CampaignMonitor::get_last_error()
S
71 2 6
core\CampaignMonitor::instantiate_url()
S
63 2 10
core\Customer::getTotal()
S
65 2 9
CS_REST_Log::log_message()
S
72 2 5
core\ClientList::add()
S
69 2 6
CS_REST_DoNothingSerialiser::deserialise()
S
75 2 4
core\Connect::getTransport()
S
68 2 6
CS_REST_SocketTransport::_get_status_code()
S
63 2 10
CS_REST_Wrapper_Result::was_successful()
S
79 2 3
core\Cron::__construct()
S
64 2 9
CS_REST_NativeJsonSerialiser::deserialise()
S
75 2 4
CS_REST_NativeJsonSerialiser::strip_surrounding_quotes()
S
72 2 6
core\CronHelper::unlock()
S
66 2 8
core\Session::_normalize()
S
66 2 8
core\Customer::clean()
S
70 2 6
CS_REST_ServicesJsonSerialiser::deserialise()
S
75 2 4
core\Helper::getPrefix()
S
69 2 7
core\Helper::getArrayOption()
S
66 2 8
Services_JSON::name_value()
S
69 2 7
core\Helper::renderer()
S
70 2 6
core\Helper::display()
S
66 2 9
core\Helper::getPluginDirectory()
S
69 2 7
core\Log::clear()
S
66 2 8
core\Log::write()
S
66 2 8
core\Database::install_data()
S
60 1 14
CS_REST_General::exchange_token()
S
60 1 12
core\Fields::add()
S
60 1 12
core\App::create_menu()
S
61 1 11
core\CampaignMonitor::send_email()
S
61 1 11
CS_REST_Lists::get_segments()
S
80 1 3
CS_REST_Clients::set_client_id()
S
79 1 3
CS_REST_Lists::get_deleted_subscribers()
S
74 1 4
core\CampaignMonitor::__construct()
S
75 1 4
CS_REST_CurlTransport::get_type()
S
83 1 3
CS_REST_Wrapper_Result::__construct()
S
77 1 4
CS_REST_Clients::get_scheduled()
S
80 1 3
CS_REST_Lists::delete_webhook()
S
79 1 3
CS_REST_SocketWrapper::read()
S
74 1 5
CS_REST_SocketWrapper::close()
S
82 1 3
CS_REST_Lists::create_webhook()
S
79 1 3
CS_REST_SocketTransport::get_type()
S
83 1 3
CS_REST_Lists::test_webhook()
S
79 1 3
CS_REST_Clients::set_primary_contact()
S
78 1 3
CS_REST_Clients::transfer_credits()
S
76 1 4
CS_REST_Lists::get_stats()
S
80 1 3
core\Rule::setCode()
S
81 1 3
CS_REST_Clients::get_drafts()
S
80 1 3
core\Ajax::ajax_handler()
S
89 1 2
core\Rule::getCode()
S
82 1 3
core\Rule::setClauses()
S
81 1 3
core\Session::__set()
S
74 1 4
CS_REST_Segments::set_segment_id()
S
80 1 3
core\Log::warning()
S
89 1 2
CS_REST_Segments::create()
S
78 1 3
CS_REST_Wrapper_Base::get_request()
S
79 1 3
CS_REST_Segments::update()
S
79 1 3
core\Ajax::ajax_handler_nopriv()
S
89 1 2
core\App::getPath()
S
79 1 3
core\App::getDirectoryUrl()
S
78 1 3
CS_REST_Segments::get()
S
80 1 3
core\App::getConnectUrl()
S
71 1 5
CS_REST_Segments::delete()
S
80 1 3
core\App::cron()
S
89 1 2
CS_REST_Segments::clear_rules()
S
80 1 3
CS_REST_Lists::deactivate_webhook()
S
78 1 3
CS_REST_Segments::get_subscribers()
S
74 1 4
core\App::woocommerce_subscription_box()
S
81 1 3
core\App::is_connected()
S
80 1 3
CS_REST_Subscribers::__construct()
S
74 1 4
core\App::get_custom_fields()
S
89 1 2
CS_REST_Subscribers::set_list_id()
S
80 1 3
CS_REST_Transactional_SmartEmail::__construct()
S
71 1 5
CS_REST_Lists::update_field_options()
S
66 1 8
core\CampaignMonitor::authorize_url()
S
72 1 5
CS_REST_Lists::update()
S
78 1 3
core\App::register_settings_page()
S
80 1 3
CS_REST_General::get_primary_contact()
S
80 1 3
CurlException::__construct()
S
78 1 3
CS_REST_Wrapper_Base::put_request()
S
79 1 3
CS_REST_DoNothingSerialiser::check_encoding()
S
94 1 1
CS_REST_Lists::update_custom_field()
S
75 1 4
core\CronHelper::__construct()
S
91 1 2
core\Cron::getPrefix()
S
82 1 3
CS_REST_Lists::get_unconfirmed_subscribers()
S
74 1 4
CS_REST_Transactional_SmartEmail::set_smartemail_id()
S
80 1 3
core\Helper::getRedirectUrl()
S
79 1 3
CS_REST_Clients::suppress()
S
74 1 4
CS_REST_General::external_session_url()
S
79 1 3
CS_REST_Clients::get_campaigns()
S
80 1 3
core\App::load_custom_wp_scripts()
S
67 1 7
core\Segment::getRules()
S
82 1 3
CS_REST_Lists::__construct()
S
74 1 4
CS_REST_Lists::get_unsubscribed_subscribers()
S
74 1 4
core\App::plugin_activation()
S
89 1 2
Services_JSON_Error::__construct()
S
100 1 2
CS_REST_Subscribers::get_history()
S
79 1 3
CS_REST_Lists::activate_webhook()
S
78 1 3
core\Helper::deleteOption()
S
75 1 4
core\Session::__unset()
S
80 1 3
core\App::custom_menu_page_removing()
S
89 1 2
core\App::register_settings_settings()
S
89 1 2
core\App::add_admin_body_class()
S
80 1 3
CS_REST_ServicesJsonSerialiser::__construct()
S
76 1 4
core\Helper::getOption()
S
71 1 5
CS_REST_Subscribers::add()
S
79 1 3
core\Settings::clear()
S
79 1 3
CS_REST_ServicesJsonSerialiser::get_format()
S
83 1 3
CS_REST_Clients::get_templates()
S
80 1 3
CS_REST_Lists::set_list_id()
S
79 1 3
CS_REST_NativeJsonSerialiser::get_format()
S
83 1 3
CS_REST_Segments::add_rulegroup()
S
79 1 3
core\Connect::Authenticate()
S
89 1 2
core\Ajax::print_data()
S
70 1 6
CS_REST_Wrapper_Base::is_secure()
S
81 1 3
core\Subscribers::clear()
S
79 1 3
CS_REST_BaseTransport::__construct()
S
82 1 3
CS_REST_Clients::get()
S
78 1 3
CS_REST_DoNothingSerialiser::serialise()
S
94 1 1
core\Segment::__construct()
S
77 1 4
CS_REST_DoNothingSerialiser::get_type()
S
94 1 1
CS_REST_Clients::get_primary_contact()
S
80 1 3
CS_REST_Clients::get_lists_for_email()
S
76 1 4
CS_REST_General::get_systemdate()
S
80 1 3
core\App::admin_sub_page()
S
80 1 3
CS_REST_Lists::delete_custom_field()
S
78 1 3
CS_REST_General::get_billing_details()
S
80 1 3
CS_REST_Lists::get_active_subscribers()
S
74 1 4
Services_JSON::__construct()
S
82 1 3
CS_REST_Clients::__construct()
S
74 1 4
CS_REST_Lists::get_webhooks()
S
80 1 3
CS_REST_Subscribers::import()
S
65 1 9
CS_REST_Clients::set_payg_billing()
S
79 1 3
CS_REST_BaseSerialiser::__construct()
S
82 1 3
core\Map::clear()
S
79 1 3
core\Helper::getActionUrl()
S
79 1 3
CS_REST_Lists::get_custom_fields()
S
80 1 3
CS_REST_Transactional_SmartEmail::get_list()
S
74 1 4
core\Rule::__construct()
S
74 1 5
CS_REST_SocketWrapper::write()
S
80 1 3
CS_REST_CurlTransport::__construct()
S
72 1 5
CS_REST_Log::__construct()
S
82 1 3
CS_REST_Clients::delete()
S
78 1 3
core\Cron::unschedule()
S
72 1 5
core\Helper::updateOption()
S
74 1 4
CS_REST_Subscribers::unsubscribe()
S
71 1 6
CS_REST_Lists::get()
S
78 1 3
CS_REST_Subscribers::update()
S
78 1 3
CS_REST_Clients::get_lists()
S
80 1 3
CS_REST_Clients::set_monthly_billing()
S
79 1 3
core\Log::getContent()
S
73 1 5
core\Log::getTimestamp()
S
65 1 8
CS_REST_Segments::__construct()
S
74 1 4
core\ClientList::clear()
S
79 1 3
CS_REST_General::get_countries()
S
80 1 3
CS_REST_Lists::create()
S
78 1 3
core\Rule::getClauses()
S
82 1 3
core\Fields::clear()
S
73 1 4
core\Connect::create()
S
89 1 2
core\Segment::setTitle()
S
81 1 3
core\Segment::getTitle()
S
82 1 3
core\App::setting_page()
S
80 1 3
CS_REST_General::get_administrators()
S
80 1 3
CS_REST_NativeJsonSerialiser::get_type()
S
83 1 3
Services_JSON::reduce_string()
S
68 1 8
CS_REST_Subscribers::get()
S
79 1 3
CS_REST_Transactional_SmartEmail::set_client()
S
80 1 3
CS_REST_Clients::unsuppress()
S
78 1 3
CS_REST_Clients::get_suppressionlist()
S
74 1 4
CS_REST_Clients::get_people()
S
80 1 3
CS_REST_Wrapper_Base::post_request()
S
79 1 3
CS_REST_General::get_clients()
S
80 1 3
CS_REST_General::get_timezones()
S
80 1 3
CS_REST_General::CS_REST_Wrapper_Base()
S
78 1 3
CS_REST_General::set_primary_contact()
S
78 1 3
CS_REST_Wrapper_Base::delete_request()
S
79 1 3
core\Session::__isset()
S
79 1 3
CS_REST_Lists::get_bounced_subscribers()
S
74 1 4
core\Segment::offsetExists()
S
79 1 3
CS_REST_Transactional_SmartEmail::get_details()
S
81 1 3
core\Helper::getMaximumFieldsCount()
S
81 1 3
core\Helper::addOption()
S
74 1 4
core\Segment::setRules()
S
81 1 3
core\Segment::offsetUnset()
S
80 1 3
CS_REST_ServicesJsonSerialiser::get_content_type()
S
83 1 3
core\Helper::getCampaignMonitorPermissions()
S
72 1 5
core\Map::add()
S
70 1 6
CS_REST_Clients::get_segments()
S
80 1 3
CS_REST_ServicesJsonSerialiser::get_type()
S
83 1 3
core\Settings::add()
S
72 1 5
CS_REST_Lists::create_custom_field()
S
79 1 3
core\CronHelper::__clone()
S
100 1 2
CS_REST_Subscribers::delete()
S
79 1 3
core\Segment::offsetGet()
S
80 1 3
CS_REST_Lists::delete()
S
78 1 3
CS_REST_Transactional_SmartEmail::send()
S
74 1 4
core\Segment::offsetSet()
S
80 1 3