Code Analysis: Printus - Cloud Printing for WooCommerce 1.1.7

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