Code Analysis: Profitori 1.6.9.2

Function Rating Maintainability Complexity Lines of code
PRFI_Captain::save_request_as_posts()
A
43 13 49
PRFI_Captain::get_objects_wc()
A
49 14 30
PRFI_Captain::prfi_get_fields_for_response()
A
44 13 45
PRFI_Captain::row_to_object()
A
47 11 35
PRFI_Captain::add_object_properties_to_ghost()
A
54 11 19
PRFI_Captain::save_object_as_order_item()
A
45 9 42
prfi_create_morsel_from_order_item()
A
45 9 37
PRFI_Captain::get_order_item_rows()
A
41 6 69
prfi_stale_datatype_ex()
A
50 8 28
prfi_on_product_change()
A
52 8 23
PRFI_Captain::do_save_object_as_product()
A
49 7 32
PRFI_Captain::permanize_child_ids()
S
61 8 12
PRFI_Captain::wp_post_to_object()
S
50 7 26
PRFI_Captain::get_polylang_language_to_limit_to()
S
52 7 25
prfi_get_polylang_language_to_limit_to()
S
52 7 25
PRFI_Captain::datatype_and_keyval_to_id()
S
47 6 40
PRFI_Captain::get_ord_rows()
S
39 3 84
PRFI_Captain::get_prod_rows()
S
41 4 67
PRFI_Captain::replace_keyval_with_id()
S
57 7 17
prfi_on_order_reduced_stock()
S
57 7 16
PRFI_Captain::get_attribute_objects()
S
50 6 29
PRFI_Captain::replace_id_with_keyval()
S
59 7 14
prfi_user_in_settings_security()
S
51 6 26
PRFI_Captain::object_to_ghost()
S
52 6 24
PRFI_Captain::datatype_and_id_to_keyval()
S
48 5 34
PRFI_Captain::unique_name_to_product_id()
S
45 4 49
PRFI_Captain::convert_attributes_to_properties()
S
56 6 16
PRFI_Captain::remove_other_lang_products()
S
59 6 15
prfi_remove_other_lang_products()
S
59 6 15
PRFI_Captain::get_post_rows()
S
44 3 59
PRFI_Captain::url_to_meta_query_args()
S
51 5 28
PRFI_Captain::insert_post()
S
44 3 57
PRFI_Captain::update_post_meta()
S
48 4 41
PRFI_Captain::save_object_as_order()
S
52 5 25
PRFI_Captain::save_object_as_product()
S
54 5 21
PRFI_Captain::get_polylang_clauses()
S
56 5 17
prfi_on_qoh_change()
S
57 5 16
PRFI_Captain::permanize_reference_ids()
S
64 6 9
prfi_translate()
S
64 6 9
prfi_product_to_main_language_product()
S
51 4 29
PRFI_Captain::ghost_to_crux()
S
60 5 13
PRFI_Captain::convert_other_lang_products()
S
61 5 12
PRFI_Captain::get_objects()
S
54 4 20
PRFI_Captain::trash_post()
S
56 4 17
PRFI_Captain::save_ghost_as_post()
S
57 4 16
PRFI_Captain::field_names_to_meta_joins()
S
57 4 16
PRFI_Captain::wp_posts_to_objects()
S
60 4 14
PRFI_Captain::get_product_metakey_fields()
S
60 4 13
PRFI_Captain::insert_post_meta()
S
53 3 28
prfi_log()
S
60 4 13
PRFI_Captain::get_atum_order_item_rows()
S
48 2 41
prfi_create_stocktend_object()
S
45 1 55
PRFI_Captain::check_not_duplicate()
S
54 3 24
prfi_set_order_item_meta()
S
49 2 37
prfi_set_meta()
S
50 2 35
convert()
S
55 3 20
PRFI_Captain::update_objects()
S
56 3 18
prfi_submenu_root()
S
52 1 47
PRFI_Captain::update_post()
S
51 2 30
prfi_on_admin_init()
S
67 4 7
prfi_item_meta()
S
63 4 10
prfi_intercept_api_request()
S
65 4 9
PRFI_Captain::unique_name_to_contents_of_trailing_brackets()
S
68 4 6
PRFI_Captain::maybeCreateIntentionalError()
S
63 4 10
PRFI_Captain::metakey_row_to_object()
S
59 3 14
PRFI_Captain::maybe_append_tryst()
S
60 3 14
prfi_get_order_item_meta()
S
59 3 14
translate()
S
59 3 13
prfi_add_decimals()
S
60 3 13
PRFI_Captain::field_names_to_cols()
S
61 3 12
prfi_get_main_language_sku_product_id_map()
S
53 2 27
prfi_product_id_to_cost_strs()
S
53 2 27
PRFI_Captain::id_to_product_unique_name()
S
62 3 11
PRFI_Captain::get_atumProduct_rows()
S
55 2 22
prfi_save_tryst()
S
56 2 20
prfi_refresh_order_modified_by_order_item_id()
S
56 2 19
prfi_get_other_trysts()
S
57 2 19
prfi_retrieve_tryst()
S
59 2 16
prfi_url_and_parm_name_to_value()
S
67 3 7
prfi_call_api()
S
58 2 15
prfi_get_page()
S
72 3 5
prfi_determine_language()
S
65 3 8
PRFI_Captain::unique_name_to_id()
S
71 3 5
prfi_get_msg_to_server()
S
69 3 7
PRFI_Captain::prod_row_to_unique_name()
S
64 3 9
PRFI_Captain::unique_name_to_sku()
S
71 3 5
PRFI_Captain::get_order_item_polylang_clauses()
S
59 2 15
PRFI_Captain::refresh_ghost_crux()
S
73 3 4
prfi_datatype_to_antique_index()
S
65 3 9
convert()
S
58 2 15
prfi_cook_cost()
S
64 3 10
PRFI_Captain::id_to_recursive_child_ids()
S
60 2 13
prfi_create_morsel()
S
61 2 12
PRFI_Captain::field_names_to_product_meta_joins()
S
61 2 12
prfi_get_check_optimized_sql()
S
59 1 22
PRFI_Captain::get_tax_rate_rows()
S
58 1 22
PRFI_Captain::get_atumSupplier_post_rows()
S
56 1 21
PRFI_Captain::get_atumPO_post_rows()
S
57 1 20
prfi_add_menu_page()
S
55 1 20
prfi_create_tryst()
S
56 1 20
PRFI_Captain::get_productCategory_rows()
S
58 1 19
PRFI_Captain::name_and_sku_to_product()
S
58 1 17
PRFI_Captain::get_category_rows()
S
60 1 16
prfi_polylang_installed()
S
79 2 3
PRFI_Captain::polylang_installed()
S
79 2 3
prfi_optimize_database()
S
69 2 7
prfi_on_product_update()
S
65 2 9
prfi_chk()
S
74 2 4
PRFI_Captain::id_to_order_item_obj()
S
74 2 4
prfi_create_morsel_from_order_item_id()
S
74 2 4
prfi_create_morsel_from_product()
S
64 2 10
prfi_is_database_optimized()
S
67 2 8
prfi_unset_installed_flag()
S
74 2 4
prfi_on_new_order_item()
S
67 2 8
prfi_language_to_phrase_map()
S
69 2 6
prfi_retrieve_or_create_tryst()
S
68 2 8
prfi_get_api_request()
S
67 2 7
prfi_deoptimize_database()
S
68 2 7
PRFI_Captain::ord_row_to_object()
S
65 2 9
PRFI_Captain::get_id_requested()
S
66 2 8
PRFI_Captain::unique_name_to_name()
S
73 2 4
PRFI_Captain::prod_rows_to_objects()
S
66 2 9
PRFI_Captain::url_to_ids()
S
71 2 5
PRFI_Captain::ord_rows_to_objects()
S
66 2 9
PRFI_Captain::atum_order_item_rows_to_objects()
S
66 2 9
prfi_intercept_wc_api_request()
S
68 2 7
PRFI_Captain::order_item_row_to_object()
S
65 2 9
PRFI_Captain::url_to_fields()
S
71 2 5
prfi_on_update_order_item()
S
64 2 10
PRFI_Captain::strip_start()
S
69 2 6
PRFI_Captain::id_to_order_item_row()
S
72 2 5
prfi_on_delete_order_item()
S
63 2 10
PRFI_Captain::metakey_rows_to_objects()
S
66 2 9
prfi_get_order_item_meta_numeric()
S
68 2 7
PRFI_Captain::order_item_rows_to_objects()
S
66 2 9
prfi_delete_old_trysts()
S
59 1 15
PRFI_Captain::tax_rate_rows_to_objects()
S
66 2 9
PRFI_Captain::rows_to_objects()
S
66 2 9
PRFI_Captain::get_metakey_rows()
S
62 1 14
prfi_get_configuration_id()
S
60 1 14
prfi_register_post_types()
S
61 1 14
PRFI_Captain::get_sessions_wc()
S
59 1 14
prfi_on_init()
S
61 1 12
prfi_add_variation_field()
S
64 1 11
translate_phrase()
S
62 1 11
prfi_add_product_field()
S
65 1 11
mylog()
S
79 1 3
prfi_stale_datatype()
S
80 1 3
PRFI_Captain::get_orders_wc()
S
71 1 6
prfi_on_rest_init()
S
77 1 4
PRFI_Captain::secure_dynamic_sql()
S
79 1 3
PRFI_Captain::get_modified_after()
S
75 1 4
line_to_first_string()
S
69 1 6
prfi_get_http_method()
S
81 1 3
prfi_create_antique()
S
69 1 7
prfi_get_post_body()
S
81 1 3
file_to_lines()
S
73 1 5
prfi_unsanctify()
S
79 1 3
prfi_id_to_order_item()
S
81 1 3
prfi_PROFulfillment()
S
82 1 3
PRFI_Captain::get_order_items_wc()
S
70 1 6
prfi_is_plugin_active()
S
78 1 3
prfi_update_post_modified()
S
69 1 6
line_to_key()
S
69 1 6
PRFI_Captain::get_route_args()
S
67 1 8
line_to_value()
S
70 1 6
prfi_is_premium()
S
73 1 5
prfi_PurchaseOrders()
S
82 1 3
PRFI_Captain::get_metakeys_wc()
S
71 1 6
prfi_Locations()
S
82 1 3
PRFI_Captain::atumSupplier_row_to_object()
S
73 1 5
prfi_Settings()
S
82 1 3
PRFI_Captain::get_atumPOLines_wc()
S
70 1 6
prfi_remove_blanks()
S
79 1 3
PRFI_Captain::untrash_product()
S
67 1 8
prfi_get_foreman_uuid()
S
72 1 5
prfi_unknown_number()
S
83 1 3
PRFI_Captain::url_to_datatype()
S
80 1 3
prfi_add_product_costs()
S
71 1 5
prfi_AssessNeeds()
S
82 1 3
PRFI_Captain::get_productCategories_wc()
S
66 1 8
PRFI_Captain::url_and_parm_name_to_value()
S
80 1 3
PRFI_Captain::url_to_prop_name()
S
80 1 3
PRFI_Captain::get_atumPOs_wc()
S
66 1 8
PRFI_Captain::get_atumProducts_wc()
S
66 1 8
prfi_call_wc_api()
S
68 1 7
prfi_ViewProfits()
S
82 1 3
prfi_SalesandInvoices()
S
82 1 3
PRFI_Captain::get_tax_rates_wc()
S
70 1 6
PRFI_Captain::request_to_objects()
S
76 1 4
PRFI_Captain::atum_order_item_row_to_object()
S
80 1 3
PRFI_Captain::is_permanent_id()
S
81 1 3
file_to_lines()
S
73 1 5
PRFI_Captain::url_to_parent_id()
S
80 1 3
prfi_Dashboard()
S
82 1 3
prfi_ReceivePurchases()
S
82 1 3
PRFI_Captain::get_routes()
S
65 1 9
prfi_submenu()
S
69 1 6
prfi_cook_path()
S
74 1 4
PRFI_Captain::url_to_id()
S
80 1 3
prfi_ProfitoriPRO()
S
82 1 3
PRFI_Captain::get_categories_wc()
S
66 1 8
PRFI_Captain::prod_row_to_object()
S
73 1 5
prfi_Suppliers()
S
82 1 3
prfi_PROCustomization()
S
82 1 3
prfi_secure_get()
S
80 1 3
prfi_be_slow()
S
83 1 3
prfi_Reports()
S
82 1 3
prfi_Stocktake()
S
82 1 3
PRFI_Captain::get_two_years_ago()
S
78 1 3
PRFI_Captain::url_to_prop_val()
S
80 1 3
mylog()
S
79 1 3
PRFI_Captain::get_route()
S
67 1 8
prfi_remove_line_breaks()
S
79 1 3
prfi_add_variation_costs()
S
71 1 5
prfi_secure_post()
S
80 1 3
prfi_PRODashboard()
S
82 1 3
prfi_Inventory()
S
82 1 3
PRFI_Captain::register_routes()
S
79 1 3
PRFI_Captain::get_atumSuppliers_wc()
S
66 1 8
PRFI_Captain::get_attributes_wc()
S
74 1 5
prfi_Home()
S
82 1 3
PRFI_Captain::url_to_source()
S
80 1 3
prfi_on_activation()
S
83 1 3
PRFI_Captain::tax_rate_row_to_object()
S
80 1 3
PRFI_Captain::get_products_wc()
S
64 1 10