Code Analysis: YBAI Affiliate 1.0.0

Function Rating Maintainability Complexity Lines of code
MobileDetect_YBAI::mobileGrade()
D
32 77 55
YBAI\Bizs\BuilderBiz::save()
C
36 24 72
YBAIConnector::_unicode_decode()
A
29
1 143
YBAI\Boot\YBAIHook::woocommerce_checkout_order_processed()
A
43 7 42
MobileDetect_YBAI::version()
A
53 8 21
YBAIConnector::callback()
S
45 6 44
ybai_load_ini()
S
50 7 28
MobileDetect_YBAI::isMobile()
S
55 7 20
MobileDetect_YBAI::setUserAgent()
S
55 6 20
MobileDetect_YBAI::checkHttpHeadersForMobile()
S
57 6 17
YBAIConnector::post()
S
45 4 45
MobileDetect_YBAI::isTablet()
S
58 6 15
ShareInfo::getOS()
S
48 4 31
MobileDetect_YBAI::setCfHeaders()
S
58 5 14
MobileDetect_YBAI::setHttpHeaders()
S
61 5 12
YBAI\Views\ConfigsView::content()
S
50 2 45
YBAI\Boot\YBAIHook::add_insert_post()
S
63 5 10
MobileDetect_YBAI::getHttpHeader()
S
60 4 13
MobileDetect_YBAI::matchUAAgainstKey()
S
61 4 13
YBAI\Views\ConnectView::content()
S
51 2 42
YBAIConnector::connect()
S
52 3 26
MobileDetect_YBAI::matchDetectionRulesAgainstUA()
S
63 4 11
YBAI\Ctrs\ProductCtr::synchronize_all()
S
54 3 19
MobileDetect_YBAI::setDetectionType()
S
66 4 9
errors_param()
S
51 2 24
YBAI\Ctrs\MainCtr::connect()
S
54 2 22
MobileDetect_YBAI::is()
S
65 3 10
MobileDetect_YBAI::match()
S
65 3 8
ybai_include()
S
66 3 8
YBAI\Boot\YBAIHook::added_order_item_meta()
S
67 3 7
ShareInfo::getDevice()
S
74 3 4
YBAIConnector::__construct()
S
65 3 9
MobileDetect_YBAI::getMobileDetectionRulesExtended()
S
63 2 13
MobileDetect_YBAI::getMobileDetectionRules()
S
64 2 12
YBAI\Ctrs\ProductCtr::domain_name()
S
61 2 12
YBAI\Boot\YBAIHook::_get_channel_domain_name()
S
61 2 12
YBAI\Boot\FrontEnd::javascript_variables()
S
69 2 7
YBAI\Boot\YBAIHook::__construct()
S
67 2 7
MobileDetect_YBAI::prepareVersionNo()
S
65 2 8
MobileDetect_YBAI::getRules()
S
70 2 7
MobileDetect_YBAI::__call()
S
66 2 8
ShareInfo::getCountry()
S
71 2 5
YBAI\Bizs\BuilderBiz::delete()
S
67 2 8
YBAI\Boot\YBAIHook::synchronize_list_product()
S
59 1 13
YBAIConnector::login()
S
75 1 4
YBAI\Bizs\BuilderBiz::__construct()
S
73 1 5
YBAI\Bizs\BuilderBiz::get_shortcode()
S
72 1 5
YBAI\Boot\BackEnd::admin_script()
S
74 1 4
MobileDetect_YBAI::getProperties()
S
80 1 3
MobileDetect_YBAI::getBrowsers()
S
80 1 3
ybaiApp::plugin_activate()
S
80 1 3
MobileDetect_YBAI::getHttpHeaders()
S
82 1 3
YBAI\Boot\BackEnd::__construct()
S
72 1 5
ybaiApp::plugin_deactivate()
S
100 1 2
YBAI\Boot\YBAIHook::_get_order_products()
S
65 1 10
YBAIConnector::order()
S
75 1 4
YBAIConnector::register()
S
75 1 4
MobileDetect_YBAI::__construct()
S
77 1 4
YBAI\Ctrs\MainCtr::__construct()
S
79 1 3
MobileDetect_YBAI::getCfHeaders()
S
82 1 3
YBAIConnector::synchronize()
S
75 1 4
MobileDetect_YBAI::getUserAgent()
S
82 1 3
YBAIConnector::reconnect()
S
66 1 8
MobileDetect_YBAI::getMatchingRegex()
S
82 1 3
YBAI\Boot\BackEnd::ybai_connect()
S
82 1 3
YBAI\Bizs\BuilderBiz::get_lastid()
S
73 1 5
MobileDetect_YBAI::getUtilities()
S
80 1 3
MobileDetect_YBAI::getMatchesArray()
S
82 1 3
MobileDetect_YBAI::getMobileHeaders()
S
81 1 3
YBAI\Boot\BackEnd::ybai_configs()
S
83 1 3
YBAI\Boot\BackEnd::add_menu()
S
70 1 5
YBAI\Ctrs\ProductCtr::__construct()
S
79 1 3
YBAIConnector::errors_log()
S
65 1 8
YBAI\Boot\FrontEnd::__construct()
S
79 1 3
ybaiApp::__construct()
S
66 1 9
MobileDetect_YBAI::getUaHttpHeaders()
S
81 1 3
YBAI\Bizs\BuilderBiz::get_shortcodes()
S
73 1 5
MobileDetect_YBAI::getScriptVersion()
S
80 1 3
MobileDetect_YBAI::getUserAgents()
S
80 1 3
MobileDetect_YBAI::getPhoneDevices()
S
80 1 3
YBAI\Boot\BackEnd::admin_init_hooking()
S
73 1 5
MobileDetect_YBAI::getTabletDevices()
S
80 1 3
MobileDetect_YBAI::getOperatingSystems()
S
80 1 3