Code Analysis: Printus - Cloud Printing for WooCommerce 1.1.3

Function Rating Maintainability Complexity Lines of code
Printus\Controllers\API\Order\PrintOrder::sendPrintJob()
A
45 8 46
Printus\Controllers\API\Order\PrintOrder::getPrintTemplateStream()
A
45 8 40
Printus\Views\Prints\Template::prepare_replacements()
A
34 4 89
Printus\Views\Prints\Template::createRows()
S
49 7 29
Printus\Controllers\Ajax_Handlers\PrintOnDemand::printusPrintOrderFromAdminBtnHandler()
S
53 7 20
Printus\Views\Prints\Template::get_template_contents()
S
50 6 29
Printus\Controllers\Ajax_Handlers\PluginSettings::refresh_printers_btn_handler()
S
50 6 28
Printus\Controllers\API\Order\PrintOrder::autoheight_pdf()
S
47 5 35
Printus\Controllers\API\Request::makePostRequest()
S
45 4 48
Printus\Views\Admin\Metabox\Metabox::outputCloudPrintMetabox()
S
46 4 46
Printus\Notices\Notice::create_notice_markup()
S
49 5 30
Printus\Views\Admin\Plugin_Settings\LocalizationSettings::create_localization_strings_settings_fields()
S
40 1 88
Printus\Views\Prints\Template::create_template_boilerplate()
S
47 4 35
Printus\Bootstrap\Main::define_admin_hooks()
S
47 4 35
Printus\Views\Admin\Plugin_Settings\TemplateSettings::createPrintTemplateSettingsSectionFields()
S
40 1 78
Printus\Controllers\Settings\Print_Templates::getAvailableTemplates()
S
49 4 32
Printus\Controllers\API\Order\PrintOrder::sendPrintJobAdmin()
S
52 4 27
Printus\Notices\Notice::dismiss_notice()
S
55 4 19
Printus_Uninstall::remove_plugin_settings()
S
56 4 18
Printus\Bootstrap\Main::define_public_hooks()
S
56 4 18
Printus\Views\Prints\Template::createHeadings()
S
57 4 16
Printus\Helpers\Utilities::timeIsBetween()
S
64 5 9
Printus\Views\Prints\Template::cumulusTemplate()
S
50 3 30
Printus\Views\Admin\Plugin_Settings\GeneralSettings::create_plugin_setup_section_fields()
S
45 2 45
Printus\Bootstrap\Main::getPrintTriggerHook()
S
61 4 13
Printus\Views\Prints\Template::nimbusTemplate()
S
56 3 17
pcpfw_fs()
S
51 2 29
Printus\Models\Plugin_Settings\Template::getSelectedPaperSize()
S
59 3 14
Printus\Notices\Notice::get_notice_id()
S
62 3 11
Printus\Views\Admin\Plugin_Settings\LocalizationSettings::create_localization_date_time_fields()
S
48 1 38
Printus\Views\Admin\Plugin_Settings\GeneralSettings::create_printer_setup_section_fields()
S
57 2 18
Printus\Bootstrap\Main::create_admin_menu()
S
57 2 17
Printus_Activator::printus_add_default_settings()
S
63 3 10
Printus\Bootstrap\Loader::run()
S
66 3 8
Printus\Views\Admin\Plugin_Settings\TemplateSettings::createMiscTextSettingsSectionFields()
S
52 1 30
Printus\Views\Admin\Plugin_Settings\TemplateSettings::createTableTemplateSettingsSectionFields()
S
52 1 30
Printus\Notices\Review_Notices::create_review_plugin_notice()
S
60 2 13
Printus\Bootstrap\Admin_Enqueues::enqueue_styles()
S
60 2 13
Printus\Controllers\Logs\Base_Logger::__construct()
S
60 2 12
Printus\Notices\GeneralNotices::createMajorChangesNotice()
S
61 2 12
Printus\Notices\Upsells_Notices::create_pro_notice()
S
61 2 12
Printus\Views\Admin\Plugin_Settings\TemplateSettings::createSections()
S
54 1 25
Printus\Bootstrap\Main::output_root_submenu_upsells()
S
55 1 24
Printus\Controllers\Settings\Paper::getAvailablePaperSizes()
S
55 1 21
Printus\Views\Admin\Plugin_Settings\APISettings::createSections()
S
56 1 19
Printus\Views\Admin\Plugin_Settings\GeneralSettings::createSections()
S
58 1 18
Printus\Views\Admin\Plugin_Settings\LocalizationSettings::createSections()
S
58 1 18
Printus\Views\Admin\Plugin_Settings\ToolsSettings::createGeneralToolsSettingsSectionFields()
S
60 1 15
Printus\Bootstrap\Frontend_Enqueues::enqueue_scripts()
S
63 2 10
Printus\Helpers\Utilities::getCurrentTime()
S
68 2 6
Printus\Views\Prints\Template::__construct()
S
71 2 5
Printus\Views\Prints\Template::prepareTemplate()
S
68 2 6
Printus\Helpers\Utilities::convertTimeTo24hr()
S
67 2 7
Printus\Controllers\API\Order\PrintOrder::sendPrintJobAdminDebug()
S
65 2 9
Printus\Controllers\Ajax_Handlers\PluginSettings::printusClearFontsCacheBtnHandler()
S
66 2 8
Printus\Controllers\Logs\Base_Logger::log_error()
S
70 2 6
Printus\Notices\Notice::create_dismiss_url()
S
67 2 7
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_info()
S
70 2 6
Printus\Controllers\Logs\Base_Logger::log_critical()
S
70 2 6
Printus\Bootstrap\Main::get_instance()
S
71 2 6
Printus\Views\Admin\Plugin_Settings\ToolsSettings::createSections()
S
63 1 11
Printus\Helpers\Utilities::getDaysOfWeek()
S
62 1 11
Printus\Views\Admin\Plugin_Settings\TemplateSettings::createTab()
S
71 1 6
Printus\Views\Admin\Plugin_Settings\ToolsSettings::createClearFontsCacheButton()
S
75 1 5
Printus\Bootstrap\Main::__construct()
S
68 1 8
Printus\Helpers\Utilities::getTimezone()
S
79 1 3
Printus\Helpers\Utilities::getCurrentDay()
S
74 1 4
Printus\Bootstrap\Admin_Enqueues::enqueue_scripts()
S
71 1 5
Printus\Views\Admin\Plugin_Settings\Setup\BootstrapSettings::addSettingsPage()
S
65 1 10
Printus\Helpers\Functions::getDetachedSettings()
S
79 1 3
Printus\Views\Admin\Plugin_Settings\Setup\RenderSettings::__construct()
S
68 1 7
Printus\Helpers\Utilities::getCurrentTime24hr()
S
78 1 3
Printus\Controllers\API\Request::get_api_url()
S
82 1 3
Printus\Bootstrap\Admin_Enqueues::__construct()
S
77 1 4
Printus\Models\Plugin_Settings\API::get_api_key()
S
78 1 3
Printus\Models\Plugin_Settings\General::savePrinters()
S
80 1 3
Printus\Models\Plugin_Settings\General::getSelectedPrinterId()
S
78 1 3
Printus\Models\Plugin_Settings\General::getPrintTriggerHook()
S
78 1 3
Printus\Models\Plugin_Settings\General::getStoreName()
S
78 1 3
Printus\Models\Plugin_Settings\General::getStorePhoneNumber()
S
78 1 3
Printus\Models\Plugin_Settings\Localization::getLocalizationStringSetting()
S
78 1 3
Printus\Models\Plugin_Settings\Localization::getPreferredDateFormat()
S
78 1 3
Printus\Models\Plugin_Settings\Localization::getPreferredTimeFormat()
S
78 1 3
Printus\Models\Plugin_Settings\Template::getSelectedTemplateName()
S
78 1 3
Printus\Models\Plugin_Settings\Template::getPaperTypeOption()
S
78 1 3
Printus\Controllers\Base_Controller::__construct()
S
80 1 3
Printus\Views\Admin\Plugin_Settings\APISettings::createTab()
S
71 1 6
Printus\Helpers\Functions::getSavedPrinters()
S
79 1 3
Printus\Views\Admin\Metabox\Metabox::createMetabox()
S
77 1 3
Printus\Models\Plugin_Settings\Template::getTemplateMiscSetting()
S
78 1 3
Printus\Notices\Notice::pluginInstalledAt()
S
79 1 3
Printus\Notices\Loader::load_notices()
S
75 1 5
Printus\Bootstrap\Main::run()
S
82 1 3
Printus\Notices\Notice::get_user_id()
S
81 1 3
Printus\Bootstrap\Frontend_Enqueues::enqueue_styles()
S
78 1 3
Printus\Controllers\Logs\App_Logger::__construct()
S
76 1 4
Printus\Helpers\Utilities::usingCustomTemplates()
S
75 1 4
Printus\Controllers\API\Order\PrintOrder::__construct()
S
76 1 4
Printus\Helpers\Utilities::convertMmToPt()
S
70 1 6
Printus\Controllers\Base_Controller::sanitize()
S
80 1 3
Printus\Bootstrap\Main::add_plugin_action_links()
S
82 1 3
Printus\Views\Admin\Plugin_Settings\GeneralSettings::createTab()
S
71 1 6
Printus\Bootstrap\Main::get_version()
S
82 1 3
Printus\Bootstrap\Main::load_dependencies()
S
80 1 3
Printus\Notices\Review_Notices::__construct()
S
82 1 3
Printus\Views\Admin\Plugin_Settings\Setup\RenderSettings::get_tabs()
S
66 1 9
Printus\Bootstrap\Main::get_loader()
S
82 1 3
Printus\Notices\Upsells_Notices::__construct()
S
91 1 2
Printus\Bootstrap\Loader::add_filter()
S
77 1 3
Printus\Helpers\Functions::getNormalizedSavedPrinters()
S
79 1 3
Printus\Bootstrap\Frontend_Enqueues::__construct()
S
77 1 4
Printus\Views\Admin\Plugin_Settings\Setup\BootstrapSettings::validateSettings()
S
77 1 4
Printus\Views\Admin\Plugin_Settings\Setup\RenderSettings::get_sections()
S
65 1 10
Printus\Views\Admin\Plugin_Settings\ToolsSettings::createTab()
S
71 1 6
Printus\Models\BaseModel::get_all_settings()
S
80 1 3
Printus\Models\Plugin_Settings\Template::getTemplateSetting()
S
78 1 3
Printus\Bootstrap\I18n::load_plugin_textdomain()
S
69 1 7
Printus\Models\Plugin_Settings\Template::getTemplateTableSetting()
S
78 1 3
Printus_Activator::activate()
S
80 1 3
Printus\Bootstrap\Loader::add_action()
S
77 1 3
Printus\Views\Admin\Plugin_Settings\GeneralSettings::createRefreshPrintersButton()
S
75 1 5
Printus\Views\Admin\Plugin_Settings\AbstractSettings::createTab()
S
100 1 0
Printus\Controllers\API\User\Resources::get_printers()
S
79 1 3
Printus\Bootstrap\Main::set_locale()
S
75 1 4
deactivate_printus()
S
76 1 4
Printus\Notices\GeneralNotices::__construct()
S
82 1 3
Printus\Bootstrap\Loader::add()
S
64 1 10
Printus\Controllers\Logs\Database_Logger::__construct()
S
76 1 4
Printus\Views\Admin\Plugin_Settings\Setup\BootstrapSettings::__construct()
S
68 1 6
Printus\Notices\Notice::get_dismissed_notices()
S
79 1 3
Printus\Bootstrap\Setup_Cron::set_cron_tasks()
S
91 1 2
Printus\Controllers\Logs\Base_Logger::log()
S
76 1 4
Printus\Helpers\Functions::normalizePrinters()
S
78 1 3
Printus\Bootstrap\Main::get_plugin_name()
S
82 1 3
Printus\Views\Admin\Plugin_Settings\TemplateSettings::__construct()
S
66 1 9
Printus\Helpers\Functions::getDetachedSetting()
S
75 1 4
Printus\Bootstrap\Admin_Enqueues::add_inline_styles()
S
65 1 9
Printus\Models\BaseModel::save_detached_setting()
S
72 1 5
Printus\Views\Admin\Plugin_Settings\Setup\BootstrapSettings::sanitizeSettings()
S
67 1 9
Printus\Models\BaseModel::get_setting()
S
74 1 4
Printus\Helpers\Functions::getAvailableTemplates()
S
80 1 3
Printus\Views\Admin\Plugin_Settings\Setup\RenderSettings::render_settings()
S
73 1 5
Printus\Views\Admin\Plugin_Settings\LocalizationSettings::createTab()
S
71 1 6
Printus\Bootstrap\Loader::__construct()
S
77 1 4
Printus\Helpers\Functions::getAvailablePaperSizes()
S
68 1 7
Printus_Deactivator::deactivate()
S
89 1 2
activate_printus()
S
76 1 4
Printus\Views\Admin\Plugin_Settings\AbstractSettings::createSections()
S
100 1 0