Code Analysis: Challan - PDF Invoice & Packing Slip for WooCommerce 3.6.4

Function Rating Maintainability Complexity Lines of code
woo_invoice_settings()
D
19
67 197
Woo_Invoice_Helper::get_address2()
D
32 34 89
Challan\AppServices\Insights::deactivate_scripts()
C
23
11 388
Woo_Invoice_Activator::activate()
C
32 26 109
Challan\AppServices\Promotions::__show_promos()
C
37 25 73
Woo_Invoice_Helper::get_address()
C
37 24 69
Challan\AppServices\Insights::support_ticket_submission()
B
36 19 77
Woo_Invoice_Template::get_product_total_section()
B
38 18 67
Woo_Invoice_Helper::get_custom_address()
B
40 17 59
Woo_Invoice_Orders::get_product_title()
B
41 16 51
challan_update_old_option()
B
44 16 47
Woo_Invoice_PDF::paper_size()
B
48 17 31
Woo_Invoice_PDF::mpdf_config()
A
38 14 73
Woo_Invoice::load_dependencies()
A
45 15 41
Challan_Notifications::woo_invoice_translation_request()
A
38 11 86
Woo_Invoice_Template::get_order_section()
A
36 9 91
Woo_Invoice_PDF::generate_pdf()
A
40 11 60
Woo_Invoice_Hooks::generate_packing_slip()
A
48 12 33
Woo_Invoice_Hooks::woo_invoice_pro_generate_delivery_address()
A
48 12 33
Woo_Invoice_Hooks::generate_invoice()
A
48 12 32
Woo_Invoice_Template::get_order_note_section()
A
48 12 32
Challan\AppServices\Insights::uninstall_reason_submission()
A
43 11 44
Woo_Invoice_PDF::get_watermark()
A
50 12 28
Woo_Invoice_Template::get_product_section()
A
39 9 72
woo_invoice_dashboard_widget_render()
A
38 7 86
Woo_Invoice_Hooks::add_my_account_order_view_action_download_invoice()
A
46 10 41
Woo_Invoice_Template::get_footer_section()
A
44 9 53
Woo_Invoice_Template::get_css()
A
42 9 52
Challan_FontMetadataReader::readFontMetadata()
A
43 9 45
Challan_Notifications::woo_invoice_review_notice()
A
40 7 74
Woo_Invoice_Template::get_invoice_template()
A
45 9 43
woo_invoice_docs()
A
42 8 57
Challan_Notifications::woo_invoice_hide_notice()
A
50 10 26
Challan_Font_Downloader_API::download_font()
A
44 8 45
Woo_Invoice_Helper::format_price()
A
44 8 45
Woo_Invoice_Template::get_packing_template()
A
46 8 39
Woo_Invoice_Orders::get_order_info()
A
50 9 24
challan_order_section_meta_data_callback()
A
51 9 23
Challan\AppServices\Insights::send_tracking_data()
A
54 9 20
Woo_Invoice_Hooks::add_my_account_order_action_download_invoice()
A
54 9 18
Challan_Font_Downloader_API::background_download_font()
A
48 8 32
Challan\AppServices\Insights::__get_server_info()
A
54 9 17
Woo_Invoice_Orders::get_orders_info()
A
43 7 46
Woo_Invoice_Hooks::__construct()
A
44 7 44
challan_woo_invoice_temp_dir_setting()
A
51 8 28
Challan\AppServices\Insights::__get_all_plugins()
A
50 8 27
Woo_Invoice_Orders::get_order_items()
A
44 7 41
woo_invoice_get_default_languages()
A
30 1 131
Challan_Notifications::woo_invoice_save_review_notice()
A
51 8 24
Woo_Invoice_Helper::get_invoice_logo()
A
51 8 24
Challan\AppServices\Insights::admin_notice()
A
43 6 54
challan_maybe_require_plugin_default_data_dat_download_double_checker()
A
52 8 23
challan_maybe_require_plugin_default_font_download_double_checker()
A
52 8 23
Challan\AppServices\Insights::init()
A
53 8 22
Woo_Invoice_Hooks::woo_invoice_font_download_ajax()
A
43 6 49
Woo_Invoice_Hooks::attach_invoice_to_order_email()
S
50 7 28
woo_invoice_free_switch_language_callback()
S
58 7 15
Challan_Notifications::woo_invoice_free_promotion_notice()
S
46 5 45
Woo_Invoice_Hooks::add_invoice_order_action_button()
S
44 5 42
Challan_MpdfLibDownloader::downloadLib()
S
47 5 36
Challan_AdminUIFontDownloader::downloadFont()
S
48 5 35
Challan\AppServices\Insights::__get_uninstall_reasons()
S
42 3 61
challan_download_admin_ui_fonts_on_plugin_update_or_upgrade()
S
59 6 14
challan_download_default_fonts_on_plugin_update_or_upgrade()
S
59 6 14
challan_download_data_dat_files_on_plugin_update_or_upgrade()
S
59 6 14
challan_admin_notice_woocommerce_is_not_installed__error()
S
58 6 13
Woo_Invoice_Orders::get_order_post_meta()
S
60 6 12
Challan_PluginDataDatDownloader::downloadDataFiles()
S
53 5 21
Challan_PluginDefaultFontDownloader::downloadDefaultFonts()
S
53 5 21
Woo_Invoice_Engine::generate_invoice()
S
54 5 20
Woo_Invoice_Engine::generate_packing_slip()
S
54 5 20
Woo_Invoice_Engine::generate_delivery_address()
S
54 5 20
challan_maybe_require_admin_ui_fonts_download_double_checker()
S
56 5 18
Challan_DropBoxFontDownloader::dispatchDownload()
S
57 5 17
Challan\AppServices\Promotions::__get_promos()
S
56 5 17
Woo_Invoice_Hooks::wpifw_select_product_column()
S
57 5 15
Woo_Invoice_Orders::get_shipping_total()
S
59 5 15
Woo_Invoice_Orders::get_item_dimension()
S
64 6 10
Challan\AppServices\Insights::__construct()
S
65 6 8
Woo_Invoice_Hooks::pdf_meta_box_markup()
S
46 3 45
woo_invoice_get_invoice_number()
S
59 5 14
Challan\AppServices\Promotions::__webappick_dismiss_promo()
S
58 5 14
woo_invoice_free_restore_language_callback()
S
60 5 13
woo_invoice_is_rtl()
S
61 5 13
Challan\AppServices\Insights::handle_optIn_optOut()
S
61 5 12
get_last_order_id()
S
60 5 11
Challan_Notifications::woo_invoice_free_saudi_zatca_notice()
S
48 3 40
Challan_DropBoxFontDownloader::prepareConfigForDownloadFont()
S
53 4 23
Woo_Invoice_Template::get_packing_total_section()
S
52 4 22
Challan_Notifications::notifications_load_hooks()
S
55 4 19
Woo_Invoice_Orders::get_product_total_weight()
S
55 4 18
Woo_Invoice_Hooks::add_invoice_download_link()
S
56 4 17
Challan\AppServices\Client::send_request()
S
50 3 30
challan_maybe_require_mpdf_lib_download_double_checker()
S
58 4 15
Challan_Notifications::woo_invoice_gst_invoice_notice()
S
48 2 43
Woo_Invoice_Hooks::add_invoice_number_to_order()
S
60 4 13
woo_invoice_process_date_macros()
S
60 4 13
Woo_Invoice_Template::set_rtl()
S
62 4 12
Challan\AppServices\Insights::get_tracking_data()
S
50 3 27
Woo_Invoice_Hooks::logo_selector_print_scripts()
S
52 1 53
Woo_Invoice_Hooks::printButtonScript()
S
61 1 50
Challan\AppServices\Client::set_basename_and_slug()
S
55 3 18
Challan_DropBoxFontDownloader::downloadFont()
S
58 3 17
Woo_Invoice_Template::get_html_start()
S
58 3 16
Woo_Invoice_Orders::get_item_weight()
S
64 4 10
Woo_Invoice_Helper::get_bank_accounts()
S
65 4 9
Challan\AppServices\Insights::__get_wp_info()
S
63 4 10
Challan\AppServices\Insights::theme_deactivated()
S
50 2 30
challan_load_mpdf_lib()
S
64 4 10
calan_upload_filter_is_writable()
S
65 4 8
Challan_DropBoxFontDownloader::extractZipArchiveFont()
S
60 3 14
Woo_Invoice_Orders::get_item_image()
S
61 3 13
convertToBytes()
S
59 3 13
Challan\AppServices\Insights::__get_admin()
S
61 3 12
Woo_Invoice_Hooks::save_pdf_template()
S
60 3 12
Challan\AppServices\Promotions::__init_internal()
S
60 3 12
woo_invoice_run()
S
61 3 12
Challan\AppServices\Insights::__get_site_name()
S
63 3 11
Challan\AppServices\Insights::__get_user_ip_address()
S
63 3 11
calan_wp_upload_size_by_from_hosting()
S
63 3 11
Challan\AppServices\Promotions::__get_promo_styles()
S
64 1 34
Challan_Font_Downloader_API::maybe_download_font()
S
56 2 18
Woo_Invoice_Helper::get_formatted_date()
S
66 3 8
Challan\AppServices\Promotions::__is_promo_active()
S
76 3 3
Woo_Invoice_Hooks::add_custom_meta_box()
S
68 3 6
Woo_Invoice_Hooks::woo_invoice_bulk_action_handler()
S
64 3 10
Woo_Invoice_Orders::get_order_total_fees()
S
66 3 8
Woo_Invoice_Loader::run()
S
66 3 8
Challan_AdminUIFontDownloader::hasDownloaded()
S
65 3 9
challan_admin_notice_wp_content_dir_is_not_writeable__error()
S
59 2 15
calan_wp_minimum_upload_file_size()
S
64 3 10
challan_admin_ui_fonts_dir_setting()
S
68 3 7
woo_invoice_deactivate_pro()
S
66 3 9
challan_admin_notice_downloading_font_background_process_in_progress__info()
S
62 3 10
challan_admin_notice_invoice_dir_is_not_writeable__error()
S
59 2 15
Woo_Invoice_Helper::get_state_label()
S
68 3 7
Woo_Invoice_Orders::get_item_title()
S
69 3 6
Challan_FontMetadataReader::__construct()
S
68 3 7
Challan_FontMetadataReader::extractCandidate()
S
66 3 8
Woo_Invoice_WebAppickAPI::insight_init()
S
51 1 29
Woo_Invoice_Template::get_header_section()
S
52 1 28
Woo_Invoice::__construct()
S
61 2 13
Woo_Invoice_Helper::product_tax_rate()
S
61 2 12
Challan\AppServices\Insights::init_common()
S
61 2 11
Woo_Invoice_WebAppickAPI::__construct()
S
61 2 11
Challan_Font_Downloader_API::register_routes()
S
57 1 20
Woo_Invoice_WebAppickAPI::support_response()
S
55 1 18
Challan\AppServices\Promotions::__get_promo_scripts()
S
70 1 18
Woo_Invoice_Helper::get_country_label()
S
69 2 7
Challan\AppServices\Insights::init_plugin()
S
64 2 9
Challan\AppServices\Promotions::__construct()
S
71 2 6
woo_invoice_is_uploads_folder_writable()
S
67 2 8
challan_default_config()
S
74 2 5
Challan\AppServices\Insights::plugin_action_links()
S
64 2 10
challan_get_product_meta_data()
S
64 2 10
Woo_Invoice_Helper::get_order_number()
S
67 2 8
challan_download_font_for_admin_ui_on_plugin_activate()
S
69 2 7
challan_download_data_dat_file_on_plugin_activate()
S
69 2 7
Challan\AppServices\Insights::deactivation_cleanup()
S
67 2 8
challan_download_default_fonts_on_plugin_activate()
S
69 2 7
challan_item_meta_query()
S
65 2 9
Woo_Invoice_Orders::get_net_total()
S
68 2 7
Woo_Invoice_WebAppickAPI::get_instance()
S
72 2 6
Challan\AppServices\Insights::__notice_dismissed()
S
68 2 7
Challan\AppServices\Client::insights()
S
70 2 6
Woo_Invoice_Orders::get_item_tax()
S
65 2 9
Woo_Invoice_Engine::save_invoice()
S
63 2 10
Challan\AppServices\Insights::__get_user_counts()
S
65 2 9
Woo_Invoice_Orders::tax_rate_id()
S
73 2 5
Challan\AppServices\Insights::activate_plugin()
S
64 2 9
Woo_Invoice_Hooks::woo_invoice_download_view_order_page()
S
64 2 10
Woo_Invoice_Orders::get_tax_total()
S
78 2 3
Challan\AppServices\Promotions::init()
S
69 2 6
Challan_AdminUIFontDownloader::getConfig()
S
70 2 6
Woo_Invoice_Orders::get_discount_total()
S
71 2 6
Challan\AppServices\Client::__construct()
S
68 2 7
Challan\AppServices\Insights::__schedule_event()
S
70 2 6
Challan_DropBoxFontDownloader::isZipArchiveFont()
S
78 2 3
Woo_Invoice_Orders::get_refunded_total()
S
71 2 6
Challan\AppServices\Client::promotions()
S
70 2 6
Woo_Invoice_Orders::get_product_total_quantity()
S
68 2 7
Challan_DropBoxFontDownloader::maybeRequireRename()
S
64 2 9
Challan_FontMetadataReader::__call()
S
73 2 4
Woo_Invoice_Orders::get_item_quantity()
S
68 2 7
Challan\AppServices\Promotions::clear_hidden_promos()
S
67 2 7
Woo_Invoice_WebAppickAPI::data_we_collect()
S
62 1 13
Woo_Invoice_WebAppickAPI::support_ticket_template()
S
61 1 13
Woo_Invoice_Admin::enqueue_common_scripts()
S
60 1 13
Woo_Invoice_Hooks::action_after_account_orders_js()
S
66 1 12
challan_order_meta_data_position()
S
63 1 11
Challan\AppServices\Insights::is_tracking_allowed()
S
78 1 3
Woo_Invoice::define_admin_hooks()
S
69 1 6
wapifw_deactivate()
S
79 1 4
woo_invoice_after_customer_notes()
S
73 1 5
woo_invoice_before_order_data()
S
73 1 5
Challan_FontMetadataReader::getFileName()
S
82 1 3
woo_invoice_engine()
S
82 1 3
Challan_Notifications::__construct()
S
82 1 3
Challan\AppServices\Insights::add_removable_query_args()
S
71 1 6
Woo_Invoice_PDF::__construct()
S
67 1 8
Woo_Invoice_Orders::__construct()
S
73 1 5
woo_invoice_before_customer_notes()
S
73 1 5
challan_order_meta_query()
S
67 1 7
Challan\AppServices\Insights::optOut()
S
72 1 5
Challan_FontMetadataReader::unpackLong()
S
79 1 3
woo_invoice_activate()
S
74 1 5
Challan\AppServices\Client::getProjectId()
S
82 1 3
Challan\AppServices\Promotions::set_source()
S
76 1 4
Challan\AppServices\Insights::optIn()
S
68 1 7
Challan\AppServices\Client::endpoint()
S
63 1 10
Woo_Invoice_Orders::get_item_total_price()
S
76 1 4
Woo_Invoice_Loader::add()
S
64 1 10
woo_invoice_before_item_meta()
S
73 1 5
Challan\AppServices\Insights::get_opt_in_url()
S
78 1 3
woo_invoice_after_billing_address()
S
73 1 5
Woo_Invoice_Admin::enqueue_base_styles()
S
78 1 3
woo_invoice_template()
S
80 1 3
Challan\AppServices\Insights::notice()
S
77 1 4
Challan_FontMetadataReader::unpack()
S
75 1 4
Challan\AppServices\Promotions::__enqueue_deps()
S
77 1 4
Challan_FontMetadataReader::getData()
S
82 1 3
woo_invoice_before_product_list()
S
73 1 5
Challan_FontMetadataReader::unpackShort()
S
79 1 3
woo_invoice_helper()
S
82 1 3
Challan_Font_Downloader_API::ajax_download_font()
S
69 1 6
Challan\AppServices\Insights::init_theme()
S
72 1 5
Challan\AppServices\Client::getApiVersion()
S
82 1 3
Woo_Invoice_Orders::get_subtotal()
S
79 1 3
Challan\AppServices\Insights::get_post_count()
S
66 1 9
Woo_Invoice_WebAppickAPI::get_data_collection_description()
S
81 1 3
Woo_Invoice_Template::get_delivery_address_template()
S
63 1 10
Challan\AppServices\Promotions::clear_cache()
S
79 1 3
Woo_Invoice_WebAppickAPI::is_tracking_allowed()
S
81 1 3
woo_invoice_free_reload_text_domain()
S
70 1 7
woo_invoice_after_order_data()
S
73 1 5
woo_invoice_after_product_list()
S
73 1 5
Challan\AppServices\Client::getName()
S
82 1 3
Challan\AppServices\Insights::add_extra()
S
77 1 4
Woo_Invoice::run()
S
82 1 3
woo_invoice_before_seller_info()
S
73 1 5
Challan\AppServices\Client::getApi()
S
82 1 3
Challan\AppServices\Client::getProjectVersion()
S
82 1 3
Challan\AppServices\Client::getClientVersion()
S
82 1 3
Challan\AppServices\Insights::get_extra_data()
S
82 1 3
Woo_Invoice_Admin::__construct()
S
77 1 4
challan_font_dir_notice()
S
70 1 9
Woo_Invoice_WebAppickAPI::tracker_opt_in()
S
81 1 3
Woo_Invoice_Loader::add_filter()
S
77 1 3
Challan\AppServices\Promotions::__is_promo_hidden()
S
79 1 3
Woo_Invoice_WebAppickAPI::supportErrorResponse()
S
67 1 8
Woo_Invoice_Helper::__construct()
S
80 1 3
Challan\AppServices\Insights::__get_last_send()
S
78 1 3
Woo_Invoice_Loader::add_action()
S
77 1 3
Challan\AppServices\Client::getBasename()
S
82 1 3
Woo_Invoice_Admin::enqueue_styles()
S
65 1 8
Challan\AppServices\Insights::__clear_schedule_event()
S
80 1 3
Woo_Invoice_Orders::get_order_total()
S
79 1 3
Woo_Invoice_WebAppickAPI::__clone()
S
78 1 3
woo_invoice_after_shipping_address()
S
73 1 5
Woo_Invoice_I18n::load_plugin_textdomain()
S
69 1 7
woo_invoice_orders()
S
80 1 3
Woo_Invoice::get_version()
S
82 1 3
Challan\AppServices\Insights::get_opt_out_url()
S
78 1 3
Challan\AppServices\Client::getHash()
S
82 1 3
woo_invoice_add_dashboard_widgets()
S
74 1 4
chalan_check_dom_extension()
S
73 1 5
Challan_Font_Downloader_API::__construct()
S
77 1 4
woo_invoice_deactivate()
S
76 1 4
Woo_Invoice::set_locale()
S
75 1 4
Woo_Invoice_Helper::get_seller_info()
S
71 1 5
Woo_Invoice_Template::__construct()
S
72 1 5
Challan\AppServices\Client::getSlug()
S
82 1 3
Challan_MpdfLibDownloader::hasDownloaded()
S
79 1 3
Woo_Invoice::define_public_hooks()
S
82 1 3
woo_invoice_pro_vs_free()
S
81 1 3
Woo_Invoice_Admin::enqueue_scripts()
S
66 1 7
Challan\AppServices\Insights::add_weekly_schedule()
S
68 1 7
Woo_Invoice::get_loader()
S
82 1 3
Woo_Invoice_Hooks::woo_invoice_get_product_column()
S
73 1 5
Woo_Invoice_Orders::get_total_without_tax()
S
74 1 4
woo_invoice_before_billing_address()
S
73 1 5
Challan\AppServices\Insights::data_we_collect()
S
68 1 7
woo_invoice_after_item_meta()
S
73 1 5
woo_invoice_pdf()
S
78 1 3
Woo_Invoice_Hooks::register_bulk_invoice_actions()
S
75 1 4
woo_invoice_before_shipping_address()
S
73 1 5
Woo_Invoice_Hooks::register_bulk_packing_slip_actions()
S
75 1 4
Challan\AppServices\Insights::__is_local_server()
S
77 1 3
Woo_Invoice_Deactivator::deactivate()
S
89 1 2
Woo_Invoice::installer()
S
91 1 2
Challan_Font_Downloader_API::get_route_access()
S
82 1 3
Woo_Invoice::get_plugin_name()
S
82 1 3
chalan_check_zip_extension()
S
73 1 5
Challan\AppServices\Insights::get_data_collection_description()
S
81 1 3
Challan_FontMetadataReader::cleanupValue()
S
78 1 3
Woo_Invoice_Template::get_html_end()
S
67 1 10
woo_invoice_after_seller_info()
S
73 1 5
woo_invoice_custom_style()
S
74 1 5
Challan\AppServices\Client::getType()
S
82 1 3
chalan_check_mbstring_extension()
S
73 1 5
woo_invoice_after_document()
S
73 1 5
Woo_Invoice_Admin::load_admin_menu()
S
64 1 8
Challan\AppServices\Insights::hide_notice()
S
77 1 4
Challan\AppServices\Client::__user_agent()
S
78 1 3
Woo_Invoice_Loader::__construct()
S
77 1 4
woo_invoice_before_document()
S
73 1 5
challan_product_meta_query()
S
70 1 5
woo_invoice_free_filter_label()
S
67 1 9
Woo_Invoice_WebAppickAPI::tracker_opt_out()
S
82 1 3
Challan\AppServices\Client::getFile()
S
82 1 3
woo_invoice_plugin_action_links()
S
68 1 6