Code Analysis: OpenPos Lite Version 2.1

Function Rating Maintainability Complexity Lines of code
Openpos_Front::add_order()
D
0
202 770
OP_Woo::get_product_formatted_data()
D
17
49 266
Openpos_Front::add_customer()
D
24
48 148
Openpos_Front::update_order()
D
22
42 205
Openpos_Admin::stock_products()
D
22
35 210
OP_Woo::formatWooOrder()
D
22
32 202
TGMPA_List_Table::process_bulk_actions()
D
26
34 155
Openpos_Front::getApi()
D
28
35 131
Openpos_Admin::get_settings_fields()
D
17
17 397
TGM_Plugin_Activation::notices()
D
32 34 94
OP_Woo::formatOrderItem()
D
26
27 166
OP_Woo_Cart::getCartDiscount()
C
32 30 101
Openpos_Core::getReportRanges()
C
28
22 150
TGM_Plugin_Activation::do_plugin_install()
C
32 25 99
Openpos_Front::_formatSetting()
C
35 25 87
Openpos_Admin::products()
C
29
21 134
Openpos_Admin::transactions()
C
30 21 118
Openpos_Front::update_customer()
C
37 24 68
Openpos_Admin::orders()
B
30 19 124
OP_Woo_Cart::getShippingCost()
B
36 21 80
Openpos_Settings::admin_init()
B
41 23 49
Openpos_Core::formatReceiptSetting()
B
29
15 159
OP_Exchange::save()
B
38 21 58
Openpos_Front::getProducts()
B
35 19 85
Openpos_Front::getSetting()
B
35 18 91
OP_Woo::get_variations()
B
33 17 104
Openpos_Front::add_transaction()
B
35 18 81
Openpos_Front::login()
B
33 17 96
Openpos_Core::getProducts()
B
35 17 86
Openpos_Front::refund_order()
B
33 16 100
OP_Woo_Cart::getShippingMethod()
B
35 17 80
Openpos_Front::getStockOverView()
B
36 15 94
tgmpa_load_bulk_installer()
B
26
7 204
Openpos_Front::search_customer()
B
37 15 79
Openpos_Admin::_barcode_img_func()
B
37 15 77
Openpos_Front::search_customer_by()
A
38 14 72
Openpos_Front::login_cashdrawer()
A
38 13 67
TGM_Plugin_Activation::maybe_adjust_source_dir()
A
45 15 36
OP_Discounts::is_coupon_valid()
A
40 13 65
Openpos_Admin::stock_products_update()
A
45 14 42
Openpos_Front::_get_customer_data()
A
44 14 41
Openpos_Admin::getUsers()
A
38 12 68
TGM_Plugin_Activation::init()
A
35 10 94
OP_Woo::getCustomItemTax()
A
44 13 47
OP_Report::op_report_result()
A
36 10 86
Openpos_Front::load_draft_order()
A
44 12 45
Openpos_Front::latest_order()
A
38 10 74
OP_Woo_Cart::getCartBySessionId()
A
42 11 52
OP_Woo::woocommerce_order_get_payment_method_title()
A
46 12 36
TGMPA_Utils::emulate_filter_bool()
A
47 12 33
Openpos_Admin::print_receipt()
A
38 9 73
OP_Woo::order_pos_payment()
A
42 10 51
Openpos_Front::get_draft_orders()
A
40 9 63
Openpos_Front::payment_order()
A
40 9 62
Openpos_Core::formart_draft_order()
A
45 10 45
Openpos_Core::getProductIdByBarcode()
A
43 9 56
TGMPA_List_Table::column_version()
A
47 10 37
Openpos_Admin::dashboard_data()
A
39 8 64
Openpos_Front::check_coupon()
A
39 8 62
TGM_Plugin_Activation::activate_single_plugin()
A
46 9 39
OP_Woo::getCustomerAdditionFields()
A
37 5 97
Openpos_Front::search_order()
A
40 7 67
OP_Woo::op_maybe_reduce_stock_levels()
A
47 9 37
TGM_Plugin_Activation::register()
A
47 9 36
OP_Woo::product_type_options()
A
47 9 36
TGMPA_List_Table::get_views()
A
48 9 34
Openpos_Front::close_order()
A
44 8 46
Openpos_Front::draft_order()
A
45 8 42
OP_Woo::get_pos_categories()
A
46 8 41
TGM_Plugin_Activation::create_user_action_links_for_notice()
A
45 8 40
OP_Woo::getCustomerShippingAddress()
A
47 8 39
TGMPA_List_Table::get_row_actions()
A
47 8 34
OP_Report::add_z_report()
A
40 6 64
Openpos_Admin::woocommerce_product_options_stock_fields()
A
45 7 46
OP_Woo_Order::op_add_order_item_meta()
A
50 8 30
Openpos_Core::formatPaymentMethods()
A
46 7 43
TGMPA_List_Table::get_plugin_status_text()
A
51 8 26
Openpos_Front::getTaxDetails()
A
51 8 25
Openpos_Front::check_order()
A
46 7 40
TGMPA_Bulk_Installer::bulk_install()
A
42 6 55
Openpos_Settings::script()
A
43 1 130
tgmpa()
A
53 8 21
Openpos_Admin::_order_barcode_func()
A
47 7 36
Openpos_Settings::get_option()
A
56 8 20
Openpos_Admin::print_bacode()
A
55 8 18
Openpos_Front::get_customer_orders()
A
44 6 46
Openpos_Settings::callback_number()
S
58 8 12
TGMPA_List_Table::categorize_plugins_to_views()
S
52 7 26
TGM_Plugin_Activation::install_plugins_page()
S
52 7 26
Openpos_Front::get_customer_field()
S
47 6 38
OP_Warehouse::getStorePickupAddress()
S
55 7 19
Openpos_Admin::_product_barcode_func()
S
49 6 33
TGMPA_List_Table::get_bulk_actions()
S
57 7 17
TGM_Plugin_Activation::is_core_update_page()
S
59 7 14
Openpos_Settings::get_sanitize_callback()
S
59 7 14
OP_Discounts::apply_coupon()
S
52 6 24
OP_Session::getActiveSessions()
S
53 6 24
OP_Woo::is_weight_base_pricing()
S
54 6 22
Openpos_Admin::update_product_grid()
S
55 6 21
Openpos_Settings::callback_category_tags()
S
53 6 21
Openpos_Settings::callback_list_tags()
S
53 6 21
OP_Woo::woocommerce_new_product()
S
54 6 20
OP_Woo::woocommerce_update_product()
S
54 6 20
TGM_Plugin_Activation::inject_update_info()
S
54 6 20
Openpos_Front::pickup_order()
S
48 5 34
OP_Woo::sortAttributeOptions()
S
56 6 18
OP_Woo::woocommerce_available_payment_gateways()
S
56 6 18
Openpos_Core::update_product_qty()
S
57 6 17
Openpos_Core::getBarcode()
S
51 5 29
OP_Discounts::get_items_to_apply_coupon()
S
59 6 14
OP_Woo::add_order_filterable_where()
S
59 6 13
OP_Woo::pre_option_woocommerce_openpos()
S
61 6 13
Openpos_Front::_formatDiscountAmount()
S
52 5 27
TGM_Plugin_Activation::overload_textdomain_mofile()
S
61 6 12
OP_Woo::filter_request_query()
S
51 5 26
Openpos_Admin::update_transaction_grid()
S
53 5 24
Openpos_Admin::admin_style()
S
51 5 24
Openpos_Front::logon()
S
52 5 23
OP_Woo::order_table_custom_fields()
S
55 5 22
OP_Woo::woocommerce_after_order_itemmeta()
S
55 5 21
Openpos_Admin::dashboard()
S
48 4 35
Openpos_Core::render_order_date_column()
S
54 5 20
Openpos_Front::search_customer_name_query()
S
49 4 34
OP_Woo::check_product_kitchen_op_type()
S
57 5 18
OP_Woo::get_countries_and_states()
S
57 5 18
OP_Woo::filter_orders_by_source()
S
57 5 16
Openpos_Settings::callback_wysiwyg()
S
56 5 16
Openpos_Admin::admin_bar_menus()
S
57 5 16
TGMPA_List_Table::_gather_plugin_data()
S
49 4 30
Openpos_Admin::pre_update_option_openpos_general()
S
61 5 13
TGM_Plugin_Activation::add_plugin_action_link_filters()
S
59 5 13
TGM_Plugin_Activation::get_info_link()
S
51 4 28
TGM_Plugin_Activation::force_deactivation()
S
60 5 12
TGM_Plugin_Activation::force_activation()
S
62 5 11
OP_Woo::allowRefundOrder()
S
52 4 24
TGM_Plugin_Activation::config()
S
54 4 24
OP_Woo_Order::display_order_number()
S
52 4 24
OP_Woo::get_product_categories()
S
53 4 24
OP_Woo::get_shipping_method_by_code()
S
54 4 24
OP_Woo::woocommerce_order_refunded()
S
53 4 23
OP_Woo_Order::getOrderNotes()
S
54 4 22
OP_Woo::getTaxRates()
S
53 4 22
Openpos_Front::_formatCash()
S
55 4 21
Openpos_Front::search_customer_query()
S
54 4 19
TGMPA_Bulk_Installer::auto_activate()
S
57 4 17
Openpos_Front::payment_cc_order()
S
57 4 16
TGM_Plugin_Activation::get_plugins_api()
S
57 4 16
OP_Woo_Cart::getCartIdBySessionKey()
S
58 4 16
TGMPA_List_Table::get_plugin_source_type_text()
S
59 4 15
Openpos_Admin::admin_notice_init()
S
64 5 8
Openpos_Settings::callback_text()
S
62 5 9
TGM_Plugin_Activation::populate_file_path()
S
64 5 9
Openpos_Admin::_short_code()
S
59 4 14
TGM_Plugin_Activation::admin_init()
S
59 4 14
OP_Session::init()
S
63 4 14
Openpos_Core::allow_online_payment()
S
60 4 14
TGM_Plugin_Activation::get_admin_notice_class()
S
60 4 13
TGM_Plugin_Activation::does_plugin_have_update()
S
60 4 13
Openpos_Settings::sanitize_options()
S
61 4 13
Openpos_Front::pending_payment_order()
S
50 3 27
TGM_Plugin_Activation::load_textdomain()
S
60 4 12
OP_Woo::init()
S
50 3 27
TGM_Plugin_Activation::get_download_url()
S
62 4 12
TGMPA_Bulk_Installer::__construct()
S
61 4 11
Openpos_Settings::callback_select()
S
60 4 11
OP_Woo::_cat_parent_ids()
S
62 4 11
OP_Woo::getProductChanged()
S
52 3 25
Openpos_Front::get_order_number()
S
52 3 25
Openpos_Core::convertToUtc()
S
53 3 24
Openpos_Settings::show_forms()
S
55 3 24
OP_Exchange::get()
S
53 3 22
Openpos_Core::getAllVariableProducts()
S
56 3 20
TGMPA_Bulk_Installer_Skin::add_strings()
S
54 3 20
TGMPA_Bulk_Installer_Skin::bulk_footer()
S
54 3 19
Openpos_Core::render_ago_date_by_time_stamp()
S
55 3 18
Openpos_Front::getAllowCashdrawers()
S
59 3 16
TGM_Plugin_Activation::get_tgmpa_url()
S
58 3 16
Openpos_Core::getClientIp()
S
63 4 10
TGM_Plugin_Activation::get_plugin_source_type()
S
65 4 9
TGM_Plugin_Activation::_get_plugin_data_from_name()
S
66 4 8
TGM_Plugin_Activation::is_tgmpa_complete()
S
63 4 10
TGM_Plugin_Activation::can_plugin_update()
S
63 4 10
Openpos_Settings::callback_textarea()
S
63 4 8
Openpos_Settings::callback_file()
S
61 4 10
Openpos_Settings::callback_textarea_code()
S
63 4 8
Openpos_Settings::callback_pos_grid()
S
62 4 9
Openpos_Front::_getSessionData()
S
66 4 8
OP_Woo::buildTree()
S
66 4 8
TGMPA_List_Table::__construct()
S
58 3 14
Openpos_Settings::callback_multicheck()
S
58 3 14
TGMPA_List_Table::get_columns()
S
59 3 13
OP_Session::validate()
S
62 3 13
Openpos_Admin::init()
S
50 2 27
OP_Session::data()
S
63 3 12
Openpos_Settings::show_navigation()
S
61 3 12
OP_Woo::order_columns_head()
S
62 3 12
Openpos_Front::getCashierList()
S
51 2 27
OP_Woo::woocommerce_admin_order_data_after_shipping_address()
S
62 3 11
TGMPA_Bulk_Installer::run()
S
63 3 11
OP_Session::clean()
S
64 3 11
Openpos_Settings::category_widget()
S
48 1 41
OP_Woo::order_columns_content()
S
62 3 11
Openpos_Admin::op_ajax_category()
S
55 2 21
OP_Woo::add_order_boxes()
S
57 2 19
TGM_Plugin_Activation::admin_menu()
S
57 2 17
Openpos_Core::getPosRegisterOrderByDate()
S
50 1 31
Openpos_Core::getPosWarehouseOrderByDate()
S
50 1 31
OP_Woo_Order::get_order_id_from_number()
S
63 3 10
TGM_Plugin_Activation::get_wp_repo_download_url()
S
67 3 8
TGMPA_Utils::validate_bool()
S
64 3 10
OP_Woo::getDefaultContry()
S
63 3 10
Openpos_Settings::callback_color()
S
66 3 7
TGM_Plugin_Activation::get_upgrade_notice()
S
63 3 10
TGM_Plugin_Activation::dismiss()
S
71 3 5
OP_Woo::getDefaultState()
S
63 3 10
OP_Woo::woocommerce_email_recipient_customer_completed_order()
S
64 3 9
OP_Woo::woocommerce_order_item_display_meta_key()
S
68 3 7
Openpos_Admin::plugin_row_meta()
S
65 3 8
TGM_Plugin_Activation::display_settings_errors()
S
64 3 10
OP_Woo::get_cost_price()
S
65 3 9
TGM_Plugin_Activation::add_admin_menu()
S
62 3 10
OP_Woo::inclTaxMode()
S
73 3 4
TGM_Plugin_Activation::is_plugin_updatetable()
S
68 3 7
TGM_Plugin_Activation::get_instance()
S
70 3 6
Openpos_Settings::callback_password()
S
66 3 7
OP_Session::isValidId()
S
65 3 9
Openpos_Settings::_style_fix()
S
63 2 15
OP_Woo_Order::addOrderNote()
S
69 3 7
TGM_Plugin_Activation::is_plugin_active()
S
76 3 3
TGM_Plugin_Activation::_get_plugin_basename_from_slug()
S
65 3 9
OP_Woo::get_cashiers()
S
59 2 15
TGMPA_List_Table::wp_plugin_update_row()
S
60 2 14
OP_Session::save()
S
60 2 14
Openpos_Front::get_order_note()
S
59 2 14
Openpos_Admin::__construct()
S
60 2 14
Openpos_Front::save_order_note()
S
59 2 14
Openpos_Admin::get_settings_sections()
S
53 1 29
OP_Exchange::exchanges()
S
60 2 14
OP_Woo::stripe_refund()
S
60 2 14
OP_Woo::stripe_charge()
S
59 2 13
Openpos_Admin::op_ajax_order_statuses()
S
61 2 13
Openpos_Admin::admin_notice()
S
64 2 12
OP_Session::__construct()
S
61 2 12
Openpos_Core::convertToShopTime()
S
62 2 12
Openpos_Settings::callback_radio()
S
60 2 12
Openpos_Front::search_customer_email_query()
S
60 2 12
Openpos_Core::__construct()
S
62 2 11
TGMPA_List_Table::prepare_items()
S
62 2 11
OP_Register::__construct()
S
62 2 11
OP_Woo_Order::update_order_number()
S
63 2 11
Openpos_Core::getPosOrderByDate()
S
52 1 26
Openpos_Core::getPosRegisterTransactionsByDate()
S
54 1 24
OP_Report::getZReportPosts()
S
54 1 24
Openpos_Admin::register_post_types()
S
53 1 24
Openpos_Core::getPosWarehouseTransactionsByDate()
S
54 1 24
openpos_register_required_plugins()
S
54 1 24
OP_Warehouse::warehouses()
S
55 1 20
OP_Woo::searchProductsByTerm()
S
56 1 20
Openpos_Core::getPosTransactionsByDate()
S
58 1 17
Openpos_Core::additionPaymentMethodDetails()
S
59 1 16
OP_Warehouse::get()
S
57 1 16
TGM_Plugin_Activation::correct_plugin_mofile()
S
70 2 6
Openpos_Admin::reset_balance()
S
65 2 9
TGM_Plugin_Activation::actions()
S
72 2 6
TGMPA_List_Table::get_plugin_advise_type_text()
S
70 2 6
TGMPA_List_Table::set_view_totals()
S
72 2 5
TGM_Plugin_Activation::get_plugins()
S
70 2 6
OP_Woo::add_meta_boxes()
S
65 2 8
OP_Woo::title_filter()
S
67 2 7
TGMPA_List_Table::sort_table_items()
S
63 2 10
TGMPA_List_Table::extra_tablenav()
S
74 2 5
Openpos_Front::_woo_version_number()
S
65 2 9
Openpos_Admin::save_cashier()
S
67 2 8
TGMPA_List_Table::get_primary_column_name()
S
69 2 7
Openpos_Admin::pos_admin_menu()
S
56 1 15
OP_Woo_Order::update_max_order_number()
S
66 2 9
Openpos_Core::formatTimeStamp()
S
65 2 9
TGM_Plugin_Activation::get_installed_version()
S
68 2 7
OP_Woo_Order::reset_order_number()
S
68 2 7
OP_Woo::op_payment_complete_reduce_order_stock()
S
64 2 10
Openpos_Front::getTotalPageProduct()
S
58 1 15
Openpos_Core::additionPaymentMethods()
S
67 2 8
OP_Woo_Cart::woocommerce_before_cart_table()
S
67 2 8
TGM_Plugin_Activation::can_plugin_activate()
S
78 2 3
TGM_Plugin_Activation::is_tgmpa_page()
S
78 2 3
TGMPA_Bulk_Installer_Skin::after()
S
69 2 7
OP_Session::generate_session_id()
S
68 2 7
OP_Woo::get_available_variations()
S
64 2 10
OP_Report::formatTimeStamp()
S
65 2 9
TGM_Plugin_Activation::thickbox()
S
72 2 5
OP_Woo::allowPickup()
S
64 2 10
Openpos_Front::_op_version_number()
S
65 2 9
TGMPA_Bulk_Installer_Skin::before()
S
71 2 6
Openpos_Settings::get_field_description()
S
66 2 8
Openpos_Admin::get_default_value()
S
64 2 10
OP_Register::registers()
S
59 1 15
OP_Exchange::delete()
S
69 2 7
OP_Woo::getListRestaurantArea()
S
60 1 14
OP_Woo::custom_vnsearch_slug()
S
59 1 14
OP_Warehouse::__construct()
S
62 1 12
TGMPA_Bulk_Installer_Skin::__construct()
S
61 1 12
Openpos_Settings::add_field()
S
63 1 11
OP_Exchange::exchange_woocommerce_admin_order_items_after_fees()
S
66 1 11
Openpos_Front::__construct()
S
63 1 11
OP_Warehouse::get_transaction_meta_key()
S
77 1 4
TGM_Plugin_Activation::filter_plugin_action_links_deactivate()
S
76 1 4
OP_Warehouse::get_order_meta_key()
S
77 1 4
Openpos_Settings::callback_checkbox()
S
62 1 10
TGM_Plugin_Activation::filter_plugin_action_links_activate()
S
76 1 4
TGMPA_Bulk_Installer_Skin::before_flush_output()
S
76 1 4
Openpos_Admin::admin_global_style()
S
79 1 3
TGMPA_Bulk_Installer::activate_strings()
S
74 1 4
OP_Register::init()
S
100 1 2
TGM_Plugin_Activation::update_dismiss()
S
78 1 3
OP_Woo_Cart::__construct()
S
73 1 5
OP_Woo::woocommerce_hidden_order_itemmeta()
S
74 1 5
OP_Woo::__construct()
S
73 1 5
TGM_Plugin_Activation::is_plugin_installed()
S
74 1 4
Openpos_Admin::get_pos_url()
S
75 1 4
Openpos_Admin::store_setting_column_content()
S
74 1 4
Openpos_Admin::admin_enqueue()
S
82 1 3
Openpos_Admin::admin_init()
S
68 1 7
TGMPA_List_Table::get_default_primary_column_name()
S
82 1 3
OP_Register::get_order_meta_key()
S
77 1 4
openpos_activate()
S
80 1 3
Openpos_Admin::transactions_page()
S
80 1 3
TGMPA_List_Table::column_default()
S
80 1 3
Openpos_Settings::__construct()
S
91 1 2
load_tgm_plugin_activation()
S
80 1 3
Openpos_Admin::setting_page()
S
70 1 7
Openpos_Settings::set_sections()
S
77 1 4
TGMPA_List_Table::no_items()
S
73 1 4
Openpos_Settings::admin_enqueue_scripts()
S
67 1 8
Openpos_Admin::store_setting_column_header()
S
75 1 4
TGMPA_List_Table::column_plugin()
S
69 1 7
Openpos_Admin::admin_enqueue_setting()
S
68 1 7
Openpos_Settings::callback_url()
S
82 1 3
Openpos_Core::getReceiptFontCss()
S
73 1 5
OP_Exchange::init()
S
78 1 3
Openpos_Core::init()
S
78 1 3
Openpos_Settings::callback_pages()
S
63 1 10
OP_Discounts::__construct()
S
80 1 3
Openpos_Core::getProductPrice()
S
81 1 3
TGM_Plugin_Activation::flush_plugins_cache()
S
81 1 3
TGMPA_Utils::wrap_in_strong()
S
78 1 3
Openpos_Front::allowPickup()
S
76 1 4
TGM_Plugin_Activation::filter_plugin_action_links_update()
S
65 1 9
OP_Warehouse::is_instore()
S
82 1 3
OP_Woo::woocommerce_admin_process_product_object()
S
91 1 2
TGM_Plugin_Activation::__construct()
S
67 1 7
TGMPA_Bulk_Installer::bulk_upgrade()
S
69 1 6
Openpos_Front::getProductPerPage()
S
79 1 3
Openpos_Settings::get_fields()
S
82 1 3
OP_Register::get_transaction_balance_key()
S
76 1 4
TGM_Plugin_Activation::show_tgmpa_version()
S
66 1 10
Openpos_Core::getPluginInfo()
S
82 1 3
OP_Stock::registers()
S
91 1 2
Openpos_Settings::add_section()
S
77 1 4
TGM_Plugin_Activation::does_plugin_require_update()
S
72 1 5
TGM_Plugin_Activation::__get()
S
81 1 3
Openpos_Admin::orders_page()
S
80 1 3
Openpos_Core::getPosProductTypes()
S
75 1 4
OP_Warehouse::get_qty()
S
72 1 5
TGMPA_Bulk_Installer_Skin::after_flush_output()
S
73 1 5
Openpos_Admin::add_store_setting_column()
S
83 1 3
Openpos_Core::getPosPostType()
S
75 1 4
Openpos_Admin::cashier_page()
S
80 1 3
OP_Stock::__construct()
S
91 1 2
OP_Woo::getAllUserRoles()
S
70 1 6
TGM_Plugin_Activation::sanitize_key()
S
72 1 5
OP_Report::__construct()
S
74 1 5
Openpos_Settings::set_fields()
S
77 1 4
OP_Register::get_transaction_meta_key()
S
77 1 4
TGMPA_List_Table::_get_plugin_data_from_name()
S
75 1 4
Openpos_Settings::callback_html()
S
81 1 3
TGM_Plugin_Activation::__set()
S
83 1 3
OP_Register::cash_balance()
S
75 1 4
OP_Exchange::__construct()
S
82 1 3
OP_Stock::save()
S
91 1 2
OP_Stock::delete()
S
91 1 2
TGM_Plugin_Activation::get_tgmpa_status_url()
S
68 1 8
Openpos_Core::addProductChange()
S
72 1 5
Openpos_Front::initScripts()
S
98 1 1
Openpos_Admin::products_page()
S
80 1 3
OP_Register::addCashBalance()
S
72 1 5
TGMPA_List_Table::get_table_classes()
S
80 1 3
Openpos_Front::logout()
S
65 1 9
OP_Report::init()
S
79 1 3
Openpos_Front::allowRefundOrder()
S
76 1 4
OP_Woo_Order::__construct()
S
67 1 7
Openpos_Core::getTransactions()
S
91 1 2
TGMPA_List_Table::column_cb()
S
67 1 8
OP_Session::setFileSystem()
S
81 1 3
TGMPA_Utils::wrap_in_em()
S
78 1 3
OP_Register::get()
S
76 1 4
TGMPA_List_Table::single_row()
S
74 1 4