Code Analysis: Cab fare calculator 1.2.4

Function Rating Maintainability Complexity Lines of code
TblightControllerOnepage::getVehicles()
D
15
50 298
TblightControllerOnepage::submitOrder()
D
18
46 248
TBAdminBooking::getAvailableCars()
D
24
40 161
TblightControllerOnepage::bookNow()
D
28
33 122
BookingHelper::check_todays_availability()
C
34 29 84
TBLight_Installer::create_tables()
C
33 23 109
OrderModel::store()
C
25
16 210
TblightControllerOnepage::getPrice()
B
31 19 118
TblightControllerOnepage::getAvailableCarsAjax()
B
32 14 112
BookingHelper::update_order_status()
B
38 16 67
BookingHelper::considerBase()
B
39 15 64
BookingHelper::calculateDistance()
A
38 12 72
ConfigModel::store()
A
36 9 112
TblightControllerOnepage::sendMailDetailsToOwner()
A
43 12 43
TBLight_Admin::add_tblight_scripts()
A
49 13 26
TblightControllerOnepage::calculateTotal()
A
43 11 46
TblightControllerOnepage::changeStatusAjax()
A
38 9 71
CarModel::store()
A
35 6 109
BookingHelper::price_display()
A
48 10 34
BookingHelper::check_car_previous_bookings()
A
46 9 38
BookingHelper::date_format()
A
50 9 31
TBLight_Admin::screen_option()
A
52 9 23
Paymentmethods_List::get_paymentmethods()
A
44 7 44
Orders_List::get_orders()
A
44 7 44
Cars_List::get_cars()
A
44 7 44
Orders_List::column_default()
S
60 8 14
BookingHelper::get_order_status_text()
S
52 7 25
handle_form_submission()
S
57 7 16
PaymentmethodModel::store()
S
43 4 57
SelectList::getCallingCodeOptions()
S
51 6 24
tbPaymentPlugin::displayListFE()
S
54 6 20
Cars_List::column_default()
S
62 6 12
BookingHelper::get_order_car()
S
51 5 27
TBLight_Assets::enqueue_assets()
S
54 5 20
handle_form_submission()
S
58 5 16
BookingHelper::check_car_block_dates()
S
59 5 14
plgTblightPaymentCash::checkConditions()
S
62 5 11
tbPaymentPlugin::selectedThisByMethodId()
S
54 4 22
tbPaymentPlugin::getPluginHtml()
S
53 4 22
Orders_List::column_state()
S
55 4 20
BookingHelper::get_payment_details()
S
56 4 18
tbPaymentPlugin::getPluginMethods()
S
57 4 17
BookingHelper::get_order_pickup_date()
S
59 4 15
BookingHelper::get_order_payment()
S
60 4 15
BookingHelper::config()
S
58 4 15
init_tblight()
S
59 4 15
PaymentmethodModel::getPaymentParams()
S
51 3 29
plgTblightPaymentCash::plgTbOnShowOrderBEPayment()
S
53 3 27
SelectList::getSelectListHtml()
S
60 4 12
plgTblightPaymentCash::plgTbOrderSubmit()
S
54 3 21
TBLight_Admin::tblight_plugin_menu()
S
45 1 51
SelectList::getCountryOptions()
S
56 3 17
SelectList::getCurrencyOptions()
S
56 3 17
BookingHelper::DateTimeHuman()
S
57 3 16
SelectList::getDefaultOrderStatusOptions()
S
56 3 16
SelectList::getPaymentOptions()
S
56 3 16
CustomSortStack::custom_sort()
S
58 3 16
BookingHelper::secondsToTime()
S
57 3 16
TBLight_Shortcode::show_booking_form()
S
49 2 30
plgTblightPaymentCash::plgTbOnShowOrderEmailsInvoice()
S
60 3 14
tbPaymentPlugin::getGrandTotalLabel()
S
58 3 14
tbPaymentPlugin::onSelectedCalculatePrice()
S
62 3 12
BookingHelper::DateHuman()
S
61 3 12
CompanyHelper::getSelectPaymentMethodsHtml()
S
60 3 12
CompanyHelper::getCompanyConfigs()
S
62 3 11
TBLight_Assets::get_scripts()
S
47 1 41
Orders_List::record_count()
S
55 2 21
OrderModel::getDefaultData()
S
48 1 34
Cars_List::record_count()
S
57 2 17
Configs_List::record_count()
S
57 2 17
Paymentmethods_List::record_count()
S
57 2 17
handle_form_submission()
S
64 3 10
BookingHelper::round_price()
S
63 3 10
TBLight_Ajax::calculateTotal()
S
64 3 9
BookingHelper::TimeHuman()
S
63 3 10
handle_form_submission()
S
64 3 10
TBLight_Ajax::bookNow()
S
64 3 9
TBLight_Ajax::submitOrder()
S
64 3 9
Paymentmethods_List::column_default()
S
66 3 9
TBLight_Ajax::resetBookingForm()
S
64 3 9
TBLight_Ajax::changeOrderStatus()
S
64 3 9
TBLight_Ajax::getAvailableCars()
S
64 3 9
CarModel::status()
S
58 2 15
CustomSortStack::itemid_rcmp()
S
70 3 6
CustomSortStack::itemid_cmp()
S
70 3 6
CustomSortStack::paymentsordering_cmp()
S
66 3 8
TBLight_Ajax::getPrice()
S
64 3 9
CustomSortStack::car_price_cmp()
S
70 3 6
CustomSortStack::car_price_rcmp()
S
70 3 6
OrderModel::status()
S
58 2 15
PaymentmethodModel::status()
S
58 2 15
TBLight_Ajax::getVehicles()
S
64 3 9
BookingHelper::isJSON()
S
77 3 3
TBLight_Shortcode::__construct()
S
63 3 9
BookingHelper::distance_display()
S
63 3 10
TblightControllerOnepage::clearSession()
S
51 1 29
BookingHelper::get_order_by_order_number()
S
61 2 13
TBLight_Assets::get_styles()
S
52 1 28
BookingHelper::get_car_details()
S
61 2 13
Paymentmethods_List::column_state()
S
61 2 12
Cars_List::column_state()
S
61 2 12
tbPaymentPlugin::setCartPrices()
S
62 2 11
BookingHelper::cancel_car_bookings()
S
63 2 11
tbPaymentPlugin::renderPluginName()
S
62 2 11
CarModel::getDefaultData()
S
55 1 22
Orders_List::get_columns()
S
56 1 17
TBLight_Ajax::__construct()
S
57 1 16
BookingHelper::calculate_charge_per_min()
S
66 2 8
BookingHelper::calculate_time_difference()
S
63 2 10
TBLight_Installer::add_version()
S
68 2 7
Configs_List::column_title()
S
63 2 9
BookingHelper::roundUpToAny()
S
76 2 3
plgTblightPaymentCash::getCosts()
S
66 2 8
TBLight_Admin::tblight_dashboard_page()
S
68 2 7
TBLight_Admin::get_instance()
S
69 2 7
tbPaymentPlugin::selectedThisElement()
S
70 2 7
tbPaymentPlugin::getPluginMethod()
S
68 2 8
BookingHelper::getInitialDebugArray()
S
59 1 15
Orders_List::get_sortable_columns()
S
60 1 14
Configs_List::get_configs()
S
61 1 13
Paymentmethods_List::prepare_items()
S
61 1 13
Cars_List::prepare_items()
S
61 1 13
Orders_List::prepare_items()
S
61 1 13
Cars_List::get_columns()
S
61 1 12
PaymentmethodModel::getDefaultData()
S
63 1 11
BookingHelper::check_car_type()
S
81 1 3
Paymentmethods_List::column_cb()
S
72 1 6
Orders_List::column_pickup_date()
S
78 1 3
TBLight_Admin::__construct()
S
65 1 8
Configs_List::prepare_items()
S
67 1 8
sort_stack()
S
75 1 4
plgTblightPaymentCash::plgTbDisplayListFEPayment()
S
80 1 3
tbPaymentPlugin::calculateSalesPrice()
S
75 1 4
Cars_List::column_title()
S
62 1 10
Paymentmethods_List::get_sortable_columns()
S
71 1 6
TBLight_Admin::set_screen()
S
81 1 3
tblight_activate()
S
73 1 5
TBLight_Admin::tblight_orders_page()
S
80 1 3
CompanyHelper::getConfigURL()
S
72 1 5
TBLight_Installer::run()
S
78 1 4
plgTblightPaymentCash::plgTbonSelectedCalculatePricePayment()
S
79 1 3
Cars_List::__construct()
S
66 1 9
Orders_List::column_cb()
S
72 1 6
plgTblightPaymentCash::__construct()
S
82 1 3
plgTblightPaymentCash::plgTbProcessPayment()
S
64 1 10
OrderModel::getItems()
S
66 1 9
tblight_output_buffer()
S
83 1 3
BookingHelper::get_order_by_id()
S
64 1 10
Configs_List::no_items()
S
80 1 3
Paymentmethods_List::get_columns()
S
65 1 9
TBLight_Admin::tblight_paymentmethods_page()
S
80 1 3
TBLight_Shortcode::show_booking_thanks()
S
65 1 9
BookingHelper::getMaxSeatsData()
S
65 1 10
Configs_List::get_bulk_actions()
S
77 1 4
Orders_List::delete_item()
S
67 1 8
Paymentmethods_List::delete_item()
S
67 1 8
CarModel::delete()
S
68 1 8
Orders_List::column_order_number()
S
62 1 10
TBLight_Admin::tblight_configs_page()
S
80 1 3
CarModel::getItems()
S
67 1 9
Paymentmethods_List::no_items()
S
80 1 3
CompanyHelper::getCompanyPaymentMethods()
S
72 1 5
Orders_List::column_payment_name()
S
73 1 4
PaymentmethodModel::getItems()
S
67 1 9
ConfigModel::delete()
S
68 1 8
PaymentmethodModel::delete()
S
68 1 8
plgTblightPaymentCash::convert()
S
72 1 6
OrderModel::delete()
S
68 1 8
Cars_List::delete_item()
S
67 1 8
Cars_List::column_cb()
S
72 1 6
TBLight_Admin::tblight_cars_page()
S
80 1 3
tbPaymentPlugin::__construct()
S
64 1 10
Configs_List::__construct()
S
66 1 9
CompanyHelper::getCountryById()
S
65 1 10
Orders_List::__construct()
S
66 1 9
Cars_List::get_sortable_columns()
S
65 1 10
TBLight_Admin::add_tblight_stylesheet()
S
73 1 4
Cars_List::no_items()
S
80 1 3
TBLight_Assets::__construct()
S
75 1 4
ConfigModel::__construct()
S
76 1 4
Orders_List::no_items()
S
80 1 3
Configs_List::column_default()
S
71 1 6
PaymentmethodModel::getItemById()
S
65 1 10
BookingHelper::clear_booking_data()
S
75 1 5
PaymentmethodModel::__construct()
S
76 1 4
Configs_List::delete_item()
S
81 1 3
ConfigModel::getItems()
S
67 1 9
ConfigModel::getDefaultData()
S
71 1 6
Configs_List::get_sortable_columns()
S
77 1 4
Configs_List::get_columns()
S
71 1 6
OrderModel::getItemById()
S
65 1 10
Orders_List::column_vehicle_title()
S
73 1 4
TblightControllerOnepage::resetBookingForm()
S
64 1 10
tbPaymentPlugin::getDataByOrderId()
S
65 1 10
Paymentmethods_List::column_title()
S
62 1 10
tbPaymentPlugin::storePluginInternalData()
S
73 1 5
CarModel::getItemById()
S
65 1 10
OrderModel::__construct()
S
76 1 4
Paymentmethods_List::__construct()
S
66 1 9
CarModel::__construct()
S
76 1 4
ConfigModel::getItemById()
S
65 1 10