Code Analysis: Printus - Cloud Printing for WooCommerce 1.0.0

Function Rating Maintainability Complexity Lines of code
Printus\Controllers\API\Order\Print_Order::get_print_template()
A
43 8 50
Printus\Controllers\Ajax_Handlers\Plugin_Settings::refresh_printers_btn_handler()
S
50 6 28
Printus\Views\Admin\Plugin_Settings\General\General_Settings::create_printer_setup_section_fields()
S
39 2 83
Printus\Controllers\API\Order\Print_Order::autoheight_pdf()
S
47 5 35
Printus\Bootstrap\Main::define_admin_hooks()
S
48 5 33
Printus\Controllers\API\Request::make_post_request()
S
45 4 46
Printus\Controllers\API\Order\Print_Order::send_print_job()
S
50 5 30
Printus\Notices\Notice::create_notice_markup()
S
50 5 30
Printus\Views\Prints\Template::create_template_boilerplate()
S
47 4 35
Printus\Controllers\Settings\Print_Templates::get_available_templates()
S
50 4 30
Printus\Controllers\API\Order\Print_Order::send_print_job_admin()
S
52 4 27
Printus\Notices\Notice::dismiss_notice()
S
55 4 19
Printus\Views\Prints\Template::get_template_contents()
S
58 4 17
Printus\Notices\Admin::site_not_https()
S
58 4 16
Printus\Views\Admin\Plugin_Settings\General\General_Settings::create_print_template_settings_section_fields()
S
43 1 61
Printus\Bootstrap\Main::get_print_trigger_hook()
S
60 4 13
Printus_Uninstall::remove_plugin_settings()
S
62 4 12
Printus\Views\Prints\Template::basic()
S
56 3 17
Printus\Views\Prints\Template::__construct()
S
48 2 30
Printus\Models\Plugin_Settings\General::get_selected_paper_size()
S
59 3 14
Printus\Bootstrap\Main::define_public_hooks()
S
60 3 13
Printus\Notices\Notice::get_notice_id()
S
62 3 11
Printus\Views\Admin\Plugin_Settings\Localization\Localization_Settings::create_localization_strings_settings_fields()
S
49 1 40
pcpfw_fs()
S
53 2 24
Printus\Views\Admin\Plugin_Settings\Localization\Localization_Settings::create_localization_date_time_fields()
S
48 1 38
Printus\Views\Prints\Template::prepare_replacements()
S
46 1 37
Printus\Bootstrap\Main::create_admin_menu()
S
57 2 17
Printus\Bootstrap\Loader::run()
S
66 3 8
Printus_Activator::printus_add_default_settings()
S
63 3 10
Printus\Views\Admin\Plugin_Settings\General\General_Settings::create_plugin_setup_section_fields()
S
51 1 29
Printus\Notices\Review_Notices::create_review_plugin_notice()
S
60 2 13
Printus\Controllers\Logs\Base_Logger::__construct()
S
60 2 12
Printus\Notices\Upsells_Notices::create_pro_notice()
S
61 2 12
Printus\Notices\Admin::wc_not_active_notice()
S
63 2 12
Printus\Views\Admin\Plugin_Settings\General\General_Settings::create_sections()
S
54 1 25
Printus\Controllers\Settings\Paper::get_available_paper_sizes()
S
55 1 21
Printus\Views\Admin\Plugin_Settings\API\API_Settings::create_sections()
S
56 1 19
Printus\Views\Admin\Plugin_Settings\Localization\Localization_Settings::create_sections()
S
58 1 18
Printus\Views\Admin\Plugin_Settings\Tools\Tools_Settings::create_sections()
S
58 1 17
Printus\Controllers\API\Order\Print_Order::send_print_job_admin_debug()
S
69 2 7
Printus\Notices\Notice::create_dismiss_url()
S
67 2 7
Printus\Controllers\Logs\Base_Logger::log_info()
S
70 2 6
Printus\Controllers\Logs\Base_Logger::log_error()
S
70 2 6
Printus\Controllers\Logs\Base_Logger::log_warning()
S
70 2 6
Printus\Controllers\Logs\Base_Logger::log_notice()
S
70 2 6
Printus\Controllers\Logs\Base_Logger::log_critical()
S
70 2 6
Printus\Bootstrap\Main::get_instance()
S
71 2 6
deactivate_printus()
S
76 1 4
Printus\Notices\Review_Notices::__construct()
S
82 1 3
Printus\Bootstrap\Loader::__construct()
S
77 1 4
Printus\Bootstrap\Main::get_loader()
S
82 1 3
Printus\Bootstrap\Loader::add_filter()
S
77 1 3
Printus\Views\Admin\Plugin_Settings\Render_Settings::__construct()
S
68 1 7
Printus\Views\Prints\Template::prepare_template()
S
71 1 5
Printus\Bootstrap\Main::add_plugin_action_links()
S
82 1 3
Printus\Bootstrap\Main::get_version()
S
82 1 3
Printus\Bootstrap\Loader::add()
S
64 1 10
Printus\Helpers\Functions::convert_mm_to_pt()
S
70 1 6
Printus\Bootstrap\Main::output_root_submenu_upsells()
S
82 1 3
Printus\Helpers\Functions::normalize_printers()
S
78 1 3
Printus\Bootstrap\Setup_Cron::set_cron_tasks()
S
91 1 2
Printus\Models\Base_Model::get_detached_settings()
S
80 1 3
Printus\Models\Base_Model::save_detached_setting()
S
72 1 5
Printus\Models\Plugin_Settings\API::get_api_key()
S
79 1 3
Printus\Models\Plugin_Settings\General::get_paper_type_option()
S
79 1 3
Printus\Models\Plugin_Settings\General::save_printers()
S
81 1 3
Printus\Models\Plugin_Settings\General::get_saved_printers()
S
80 1 3
Printus\Models\Plugin_Settings\General::get_selected_printer_id()
S
79 1 3
Printus\Bootstrap\Frontend_Enqueues::enqueue_scripts()
S
77 1 3
Printus\Models\Plugin_Settings\General::get_selected_template_name()
S
79 1 3
Printus\Models\Plugin_Settings\General::get_print_trigger_hook()
S
79 1 3
Printus\Models\Plugin_Settings\General::get_store_name()
S
79 1 3
Printus\Models\Plugin_Settings\General::get_template_setting()
S
79 1 3
Printus\Models\Plugin_Settings\Localization::get_localization_string_setting()
S
79 1 3
Printus\Models\Plugin_Settings\Localization::get_preferred_date_format()
S
79 1 3
Printus\Models\Plugin_Settings\Localization::get_preferred_time_format()
S
79 1 3
Printus\Bootstrap\Frontend_Enqueues::__construct()
S
77 1 4
Printus\Controllers\Logs\Base_Logger::log()
S
76 1 4
Printus\Views\Admin\Plugin_Settings\Tools\Tools_Settings::create_tab()
S
71 1 6
Printus\Controllers\Base_Controller::__construct()
S
80 1 3
Printus\Notices\Notice::get_dismissed_notices()
S
79 1 3
Printus\Bootstrap\Frontend_Enqueues::enqueue_styles()
S
78 1 3
Printus\Notices\Admin::output_php_version_notice()
S
66 1 10
Printus\Notices\Notice::get_user_id()
S
81 1 3
Printus\Bootstrap\Admin_Enqueues::enqueue_scripts()
S
77 1 3
Printus\Views\Admin\Plugin_Settings\Render_Settings::get_tabs()
S
69 1 7
Printus\Bootstrap\Admin_Enqueues::add_inline_styles()
S
65 1 9
Printus\Views\Admin\Plugin_Settings\General\General_Settings::create_refresh_printers_btn()
S
75 1 5
Printus\Controllers\Base_Controller::sanitize()
S
80 1 3
Printus\Models\Base_Model::get_all_settings()
S
80 1 3
Printus\Bootstrap\I18n::load_plugin_textdomain()
S
69 1 7
Printus\Views\Admin\Plugin_Settings\API\API_Settings::create_tab()
S
71 1 6
Printus\Bootstrap\Admin_Enqueues::__construct()
S
77 1 4
Printus\Views\Admin\Plugin_Settings\General\General_Settings::create_tab()
S
71 1 6
Printus\Notices\Upsells_Notices::__construct()
S
91 1 2
Printus\Views\Admin\Plugin_Settings\Bootstrap_Settings::__construct()
S
70 1 5
Printus\Controllers\Logs\Database_Logger::__construct()
S
76 1 4
Printus\Views\Admin\Plugin_Settings\Render_Settings::render_settings()
S
73 1 5
Printus\Views\Admin\Plugin_Settings\Plugin_Settings::create_sections()
S
100 1 0
Printus\Bootstrap\Main::set_locale()
S
75 1 4
Printus\Views\Admin\Plugin_Settings\Render_Settings::get_sections()
S
68 1 8
Printus\Controllers\API\Order\Print_Order::__construct()
S
76 1 4
Printus\Models\Base_Model::get_setting()
S
74 1 4
Printus\Controllers\Logs\App_Logger::__construct()
S
76 1 4
Printus\Bootstrap\Main::get_plugin_name()
S
82 1 3
Printus\Bootstrap\Main::run()
S
82 1 3
activate_printus()
S
76 1 4
Printus\Notices\Loader::load_notices()
S
78 1 4
Printus\Bootstrap\Loader::add_action()
S
77 1 3
Printus\Views\Admin\Plugin_Settings\Localization\Localization_Settings::create_tab()
S
71 1 6
Printus_Activator::activate()
S
80 1 3
Printus\Views\Admin\Plugin_Settings\Bootstrap_Settings::validate_settings()
S
76 1 4
Printus\Bootstrap\Main::load_dependencies()
S
80 1 3
Printus\Controllers\API\Request::get_api_url()
S
82 1 3
Printus\Models\Base_Model::get_detached_setting()
S
75 1 4
Printus\Bootstrap\Main::__construct()
S
68 1 8
Printus\Helpers\Functions::using_custom_templates()
S
75 1 4
Printus\Controllers\API\User\Resources::get_printers()
S
79 1 3
Printus\Bootstrap\Admin_Enqueues::enqueue_styles()
S
74 1 4
Printus\Views\Admin\Plugin_Settings\Plugin_Settings::create_tab()
S
100 1 0
Printus\Views\Admin\Plugin_Settings\Bootstrap_Settings::add_settings_page()
S
65 1 10
Printus_Deactivator::deactivate()
S
89 1 2