Code Analysis: Katalys 1.1.23

Function Rating Maintainability Complexity Lines of code
url_to_postId()
D
21
66 175
revoffers_embed\http\RollingCurl::iterate()
D
28
34 130
oneO_create_cart()
C
30 30 101
KatalysMerchantPlugin\ApiDirectives::directive__import_product_from_url()
C
33 25 94
KatalysMerchantPlugin\SettingsPage::oneO_settings_create_admin_page()
C
30 17 188
getProduct()
B
36 22 74
getOrder()
B
33 19 91
api_get_orders()
B
40 21 51
KatalysMerchantPlugin\ApiController::handle_request()
B
36 17 73
oneO_addWooOrder()
B
30 13 121
KatalysMerchantPlugin\ApiDirectives::import__process_variants()
B
40 17 55
getOrderSafe()
B
43 17 44
KatalysMerchantPlugin\ApiDirectives::process_order_data()
A
36 14 75
iterateProducts()
A
46 16 34
getClientIp()
A
49 16 29
KatalysMerchantPlugin\ApiDirectives::import__product_options()
A
42 12 55
onOrderCreated()
A
48 11 30
run()
A
44 10 40
_attr()
A
54 11 20
revoffers_embed\http\RollingCurl::getOptions()
A
48 10 32
iterateOrders()
A
48 10 32
KatalysMerchantPlugin\GraphQLRequest::rawGraphQl()
A
44 9 42
KatalysMerchantPlugin\ApiController::process_directive()
A
50 10 27
curl()
A
51 9 22
KatalysMerchantPlugin\ApiDirectives::directive__product_information_sync()
A
46 7 40
KatalysMerchantPlugin\ApiDirectives::_process()
A
53 8 21
wrapHandler()
A
46 7 34
onCron()
A
48 7 33
scheduleOrRun()
A
49 7 33
oneO_options()
S
57 8 14
sendNotification()
S
50 7 24
KatalysMerchantPlugin\ApiController::get_token_from_headers()
S
52 7 24
KatalysMerchantPlugin\GraphQLRequest::api_complete_order()
S
53 7 22
KatalysMerchantPlugin\ApiDirectives::import__get_product_images()
S
54 7 20
KatalysMerchantPlugin\ApiDirectives::directive__health_check()
S
48 6 34
printOrdersToStream()
S
55 7 18
shouldUseCron()
S
62 7 11
onThankYou()
S
51 6 25
oneO_doSplitName()
S
51 6 25
KatalysMerchantPlugin\ApiDirectives::getOptionsVariations()
S
54 6 22
revoffers_embed\http\RollingCurl::start()
S
55 6 21
KatalysMerchantPlugin\SettingsPage::oneO_settings_sanitize()
S
57 6 19
revoffers_embed\http\RollingCurl::next()
S
60 6 15
validateDates()
S
58 6 15
addCouponFreeShipping()
S
52 5 26
revoffers_embed\http\RollingCurl::waitFor()
S
56 5 18
prepareUrlGraphQl()
S
56 5 18
getDefault()
S
56 5 17
revoffers_embed\http\RollingCurl::waitForAll()
S
59 5 15
init_admin()
S
50 4 29
init_plugin()
S
59 5 14
paseto_footer_kid()
S
62 5 12
iterateWaitingOrders()
S
55 4 20
addCouponFreeShippingInOrder()
S
56 4 19
KatalysMerchantPlugin\ApiDirectives::directive__update_availability()
S
55 4 19
attr()
S
57 4 17
validateCouponKatalys()
S
58 4 16
iterateOrdersByDate()
S
59 4 15
paseto_is_expired()
S
59 4 15
getSiteId()
S
63 5 10
hasCustomSiteId()
S
58 4 15
KatalysMerchantPlugin\SettingsPage::oneO_settings_page_init()
S
45 1 55
KatalysMerchantPlugin\ApiController::register_routes()
S
54 3 22
KatalysMerchantPlugin\ApiDirectives::directive__complete_order()
S
55 3 20
revoffers_embed\http\RollingCurl::single_curl()
S
56 3 18
paseto_decode_footer()
S
62 4 10
revoffers_embed\http\RollingCurlRequest::__construct()
S
63 4 10
revoffers_embed\http\RollingCurlRequest::__toString()
S
68 4 6
KatalysMerchantPlugin\ApiController::getKatalysToken()
S
64 4 10
onCronSchedules()
S
61 3 13
KatalysMerchantPlugin\GraphQLRequest::api_update_ship_rates()
S
61 3 12
KatalysMerchantPlugin\SettingsPage::oneO_settings_add_plugin_page()
S
56 2 21
init()
S
56 2 17
init_db()
S
58 2 17
revoffers_embed\http\RollingCurl::processResponse()
S
65 3 10
makeSafeExtract()
S
66 3 8
revoffers_embed\http\RollingCurl::tick()
S
70 3 6
log_debug()
S
66 3 8
recordOrderId()
S
67 3 7
oneO_order_key_exists()
S
59 2 14
KatalysMerchantPlugin\GraphQLRequest::api_update_tax_amount()
S
61 2 12
countOrders()
S
62 2 12
KatalysMerchantPlugin\GraphQLRequest::getKatalysToken()
S
64 2 11
KatalysMerchantPlugin\GraphQLRequest::api_update_availability()
S
63 2 11
printJs()
S
62 2 11
KatalysMerchantPlugin\SettingsPage::api_endpoint_callback()
S
61 1 24
KatalysMerchantPlugin\SettingsPage::secret_key_callback()
S
62 1 23
KatalysMerchantPlugin\ApiController::get_request_schema()
S
56 1 21
revoffers_embed\http\RollingCurl::wrapCallable()
S
75 2 5
checkPluginRevoffersExist()
S
69 2 7
revoffers_embed\http\RollingCurl::useLocalQueue()
S
74 2 5
KatalysMerchantPlugin\GraphQLRequest::api_import_product()
S
65 2 9
onShutdown()
S
70 2 7
revoffers_embed\http\RollingCurl::finish()
S
73 2 6
KatalysMerchantPlugin\ApiDirectives::directive__update_tax_amounts()
S
63 2 10
getCouponKS()
S
63 1 11
KatalysMerchantPlugin\ApiDirectives::_gqlRequest()
S
80 1 3
KatalysMerchantPlugin\ApiDirectives::directive__inventory_check()
S
74 1 4
KatalysMerchantPlugin\SettingsPage::oneO_settings_section_endpoint()
S
91 1 2
KatalysMerchantPlugin\GraphQLRequest::api_order_data()
S
64 1 10
sighandle()
S
73 1 5
KatalysMerchantPlugin\ApiDirectives::directive__update_product_pricing()
S
74 1 4
KatalysMerchantPlugin\SettingsPage::__construct()
S
67 1 7
admin_options_page()
S
81 1 3
KatalysMerchantPlugin\GraphQLRequest::fromKid()
S
72 1 5
KatalysMerchantPlugin\GraphQLRequest::api_health_check()
S
74 1 5
KatalysMerchantPlugin\ApiDirectives::__construct()
S
81 1 3
KatalysMerchantPlugin\SettingsPage::graphql_callback()
S
76 1 5
paseto_create_token()
S
68 1 8
KatalysMerchantPlugin\ApiController::handle_paseto_request()
S
68 1 7
init_rest()
S
81 1 3
onOrderProcessing()
S
82 1 3
deinit()
S
64 1 9
pluginName()
S
78 1 3
revoffers_embed\http\RollingCurl::get()
S
78 1 3
KatalysMerchantPlugin\GraphQLRequest::api_line_items()
S
66 1 8
revoffers_embed\http\RollingCurl::request()
S
78 1 3
KatalysMerchantPlugin\ApiDirectives::directive__update_available_shipping_rates()
S
67 1 7
revoffers_embed\http\RollingCurl::__construct()
S
91 1 2
onOrderCompleted()
S
82 1 3
KatalysMerchantPlugin\SettingsPage::public_key_callback()
S
76 1 5
revoffers_embed\http\RollingCurl::add()
S
80 1 3
KatalysMerchantPlugin\SettingsPage::integration_id_callback()
S
76 1 5
onOrderChanged()
S
80 1 3
KatalysMerchantPlugin\SettingsPage::oneO_settings_section_info()
S
91 1 2
KatalysMerchantPlugin\GraphQLRequest::__construct()
S
81 1 3