Code Analysis: Cab fare calculator 1.0.2

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