Code Analysis: Printus - Cloud Printing for WooCommerce 1.2.4

Function Rating Maintainability Complexity Lines of code
Printus\Compatibility\ProductAddonPlugins::getCustomProductAddonsHelperClass()
A
49 13 32
Printus\Controllers\API\Order\PrintOrderController::sendPrintJob()
A
43 11 50
Printus\Views\Prints\Template::prepareReplacements()
A
31 6 120
Printus\Controllers\API\Order\PrintOrderController::getPrintTemplateStream()
A
45 10 40
Printus\Compatibility\ProductAddonPlugins\ThemeIsle::getPricedAddons()
A
51 11 24
Printus\Compatibility\ProductAddonPlugins\ThemeIsle::getProductSelectedAddons()
A
44 9 44
Printus\Compatibility\ProductAddonPlugins\PluginRepublic::addProductOptions()
A
49 9 27
Printus\Compatibility\ProductAddonPlugins\WooCommerce::getProductSelectedAddons()
A
46 8 38
Printus\Helpers\Template::createRows()
A
47 8 33
Printus\Controllers\API\RequestsController::makePostRequest()
A
41 5 64
Printus\Compatibility\ProductAddonPlugins\Acowebs::getProductSelectedAddons()
S
51 7 27
Printus\Controllers\Ajax_Handlers\PluginSettingsController::refresh_printers_btn_handler()
S
50 7 27
Printus\Compatibility\ProductAddonPlugins\Yith::getProductSelectedAddons()
S
52 7 24
Printus\Controllers\Ajax_Handlers\PrintOnDemandController::printusPrintOrderFromAdminBtnHandler()
S
53 7 20
Printus\Helpers\Template::generateItemAddons()
S
54 7 19
Printus\Views\Prints\Template::get_template_contents()
S
49 6 30
Printus\Views\Admin\PluginSettings\LocalizationSettings::create_localization_strings_settings_fields()
S
38 1 100
Printus\Helpers\Template::createHeadings()
S
53 6 22
Printus\Controllers\API\Order\PrintOrderController::autoHeightPdf()
S
47 5 35
Printus\Views\Admin\Metabox\Metabox::outputCloudPrintMetabox()
S
46 4 46
Printus\Notices\Notice::create_notice_markup()
S
49 5 30
Printus\Controllers\Settings\PrintTemplatesController::getAvailableTemplates()
S
50 5 28
Printus\Views\Admin\PluginSettings\TemplateSettings::createPrintTemplateSettingsSectionFields()
S
39 1 84
Printus\Compatibility\ProductAddonPlugins\StudioWombat::getProductSelectedAddons()
S
55 5 19
Printus\Compatibility\ProductAddonPlugins\ThemeHigh::getProductSelectedAddons()
S
55 5 19
Printus\Bootstrap\Main::defineAdminHooks()
S
47 4 33
Printus\Compatibility\ProductAddonPlugins\PluginRepublic::getAttachment()
S
57 5 16
Printus\Views\Admin\PluginSettings\GeneralSettings::create_plugin_setup_section_fields()
S
43 2 57
Printus\Notices\Notice::dismiss_notice()
S
55 4 19
Printus_Uninstall::remove_plugin_settings()
S
56 4 18
Printus\Helpers\Functions::savePDF()
S
55 4 18
Printus\Helpers\Utilities::timeIsBetween()
S
64 5 9
Printus\Bootstrap\Main::setupPrintJobTrigger()
S
58 4 14
Printus\Views\Prints\Template::nimbusTemplate()
S
50 3 29
Printus\Views\Prints\Template::cumulusTemplate()
S
50 3 29
Printus\Compatibility\ProductAddonPlugins\Acowebs::addProductOptions()
S
58 4 13
Printus\Compatibility\ProductAddonPlugins\StudioWombat::addProductOptions()
S
58 4 13
Printus\Compatibility\ProductAddonPlugins\ThemeComplete::addProductOptions()
S
58 4 13
Printus\Bootstrap\Main::getPrintTriggerHook()
S
61 4 13
Printus\Compatibility\ProductAddonPlugins\ThemeHigh::addProductOptions()
S
58 4 13
Printus\Compatibility\ProductAddonPlugins\ThemeIsle::addProductOptions()
S
58 4 13
Printus\Compatibility\ProductAddonPlugins\WooCommerce::addProductOptions()
S
58 4 13
Printus\Compatibility\ProductAddonPlugins\Yith::addProductOptions()
S
58 4 13
sl_wc_active()
S
66 4 7
Printus\Models\PluginSettings\TemplateSettingsModel::getSelectedPaperSize()
S
59 3 14
Printus\Helpers\Functions::normalizePrinters()
S
59 3 13
Printus\Notices\Notice::get_notice_id()
S
62 3 11
pcpfw_fs()
S
52 2 25
Printus\Views\Admin\PluginSettings\LocalizationSettings::create_localization_date_time_fields()
S
48 1 38
Printus\Views\Admin\PluginSettings\GeneralSettings::create_printer_setup_section_fields()
S
57 2 18
Printus\Bootstrap\Main::create_admin_menu()
S
57 2 17
Printus\Compatibility\ProductAddonPlugins\PluginRepublic::getProductSelectedAddons()
S
67 3 7
Printus\Views\Admin\PluginSettings\TemplateSettings::createMiscTextSettingsSectionFields()
S
52 1 30
Printus\Views\Admin\PluginSettings\TemplateSettings::createTableTemplateSettingsSectionFields()
S
52 1 30
Printus_Activator::printus_add_default_settings()
S
63 3 10
Printus\Bootstrap\Main::definePublicHooks()
S
65 3 9
Printus\Bootstrap\Loader::run()
S
66 3 8
Printus\Bootstrap\Admin_Enqueues::enqueue_styles()
S
60 2 13
Printus\Notices\GeneralNotices::createWCBlocksIncompatibilityNotice()
S
60 2 13
Printus\Notices\ReviewNotices::create_review_plugin_notice()
S
60 2 13
Printus\Notices\UpsellsNotices::create_pro_notice()
S
61 2 12
Printus\Views\Admin\PluginSettings\TemplateSettings::createSections()
S
54 1 25
Printus\Bootstrap\Main::output_root_submenu_upsells()
S
55 1 24
Printus\Controllers\Settings\PaperController::getAvailablePaperSizes()
S
55 1 21
Printus\Views\Admin\PluginSettings\ToolsSettings::createGeneralToolsSettingsSectionFields()
S
55 1 21
Printus\Views\Admin\PluginSettings\APISettings::createSections()
S
56 1 19
Printus\Views\Admin\PluginSettings\GeneralSettings::createSections()
S
58 1 18
Printus\Views\Admin\PluginSettings\LocalizationSettings::createSections()
S
58 1 18
Printus\Views\Admin\Metabox\Metabox::createMetabox()
S
68 2 6
Printus\Controllers\WooCommerce\OrderStatusController::alterPaymentCompleteStatuses()
S
67 2 8
Printus\Bootstrap\Frontend_Enqueues::enqueue_scripts()
S
63 2 10
Printus\Bootstrap\Main::get_instance()
S
71 2 6
Printus\Compatibility\ProductAddonPlugins\ThemeComplete::getProductSelectedAddons()
S
68 2 7
Printus\Views\Prints\Template::__construct()
S
71 2 5
Printus\Helpers\Utilities::getCurrentTime()
S
68 2 6
Printus\Helpers\Utilities::convertTimeTo24hr()
S
68 2 7
Printus\Controllers\API\Order\PrintOrderController::sendPrintJobAdminDebug()
S
66 2 8
Printus\Notices\Loader::load_notices()
S
68 2 8
Printus\Notices\Notice::create_dismiss_url()
S
67 2 7
Printus\Views\Prints\Template::prepareTemplate()
S
68 2 6
Printus\Controllers\Ajax_Handlers\PluginSettingsController::printusClearFontsCacheBtnHandler()
S
69 2 7
Printus\Helpers\Utilities::getDaysOfWeek()
S
62 1 11
Printus\Views\Admin\PluginSettings\ToolsSettings::createSections()
S
63 1 11
Printus\Bootstrap\Loader::__construct()
S
77 1 4
Printus\Helpers\Functions::getSavedPrinters()
S
79 1 3
Printus\Views\Admin\PluginSettings\Setup\RenderSettings::get_sections()
S
65 1 10
Printus\Views\Admin\PluginSettings\Setup\RenderSettings::__construct()
S
68 1 7
Printus\Views\Admin\PluginSettings\Setup\BootstrapSettings::sanitizeSettings()
S
67 1 9
Printus\Bootstrap\Admin_Enqueues::add_inline_styles()
S
65 1 9
Printus\Helpers\Utilities::convertMmToPt()
S
69 1 6
Printus\Helpers\Utilities::usingCustomTemplates()
S
80 1 3
Printus\Views\Admin\PluginSettings\GeneralSettings::createRefreshPrintersButton()
S
75 1 5
Printus\Models\PluginSettings\ToolsSettingsModel::applyPageLengthFix()
S
74 1 4
Printus\Models\PluginSettings\TemplateSettingsModel::getPaperTypeOption()
S
78 1 3
Printus\Helpers\Logger::logInfo()
S
80 1 3
Printus\Views\Admin\PluginSettings\APISettings::createTab()
S
71 1 6
Printus\Bootstrap\Loader::add_filter()
S
77 1 3
Printus\Views\Admin\PluginSettings\GeneralSettings::createTab()
S
71 1 6
Printus\Views\Admin\PluginSettings\Setup\BootstrapSettings::addSettingsPage()
S
65 1 10
Printus\Models\PluginSettings\TemplateSettingsModel::getTemplateMiscSetting()
S
78 1 3
Printus\Bootstrap\Main::load_dependencies()
S
80 1 3
Printus\Models\PluginSettings\TemplateSettingsModel::getTemplateTableSetting()
S
78 1 3
Printus\Controllers\API\User\ResourcesController::get_printers()
S
79 1 3
Printus\Helpers\Utilities::getCurrentDay()
S
74 1 4
Printus\Views\Admin\PluginSettings\Setup\RenderSettings::get_tabs()
S
66 1 9
Printus\Notices\ReviewNotices::__construct()
S
82 1 3
Printus\Models\BaseModel::save_detached_setting()
S
72 1 5
Printus\Models\PluginSettings\ApiSettingsModel::get_api_key()
S
78 1 3
Printus\Models\PluginSettings\GeneralSettingsModel::getPrintTriggerHook()
S
78 1 3
Printus\Helpers\Functions::getDetachedSettings()
S
79 1 3
Printus\Controllers\API\Order\PrintOrderController::savePDF()
S
79 1 3
Printus\Helpers\Utilities::getTimezone()
S
79 1 3
Printus\Views\Admin\PluginSettings\AbstractSettings::createSections()
S
100 1 0
Printus\Views\Admin\PluginSettings\ToolsSettings::createTab()
S
71 1 6
Printus\Views\Admin\PluginSettings\Setup\RenderSettings::render_settings()
S
73 1 5
Printus\Compatibility\ProductAddonPlugins::isPluginActive()
S
80 1 3
Printus\Bootstrap\Main::__construct()
S
66 1 9
Printus\Bootstrap\Frontend_Enqueues::__construct()
S
77 1 4
Printus\Models\BaseModel::get_setting()
S
74 1 4
Printus\Models\BaseModel::get_all_settings()
S
80 1 3
Printus\Compatibility\ProductAddonPlugins\Yith::removeLabelFromValue()
S
77 1 3
Printus\Controllers\BaseController::__construct()
S
80 1 3
Printus\Models\PluginSettings\GeneralSettingsModel::getPaymentsCompleteStatusSetting()
S
74 1 4
Printus\Bootstrap\Main::get_version()
S
82 1 3
Printus\Helpers\Functions::getDetachedSetting()
S
75 1 4
Printus\Models\PluginSettings\GeneralSettingsModel::getStoreName()
S
78 1 3
Printus\Models\PluginSettings\TemplateSettingsModel::getTemplateSetting()
S
78 1 3
Printus\Bootstrap\Admin_Enqueues::enqueue_scripts()
S
71 1 5
Printus\Bootstrap\Admin_Enqueues::__construct()
S
77 1 4
Printus\Helpers\Logger::logWarning()
S
80 1 3
Printus\Models\PluginSettings\GeneralSettingsModel::getStorePhoneNumber()
S
78 1 3
Printus\Models\PluginSettings\LocalizationSettingsModel::getPreferredDateFormat()
S
78 1 3
Printus\Helpers\Utilities::getCurrentTime24hr()
S
78 1 3
Printus\Models\PluginSettings\GeneralSettingsModel::getSelectedPrinterId()
S
78 1 3
Printus\Controllers\BaseController::sanitize()
S
80 1 3
Printus\Models\PluginSettings\TemplateSettingsModel::getSelectedTemplateName()
S
78 1 3
Printus\Helpers\Functions::getNormalizedSavedPrinters()
S
79 1 3
Printus\Notices\Notice::pluginInstalledAt()
S
79 1 3
Printus\Controllers\API\RequestsController::getApiUrl()
S
82 1 3
Printus\Models\PluginSettings\LocalizationSettingsModel::getLocalizationStringSetting()
S
78 1 3
Printus\Models\PluginSettings\GeneralSettingsModel::savePrinters()
S
80 1 3
Printus\Controllers\API\Order\PrintOrderController::__construct()
S
76 1 4
Printus\Views\Admin\PluginSettings\TemplateSettings::__construct()
S
64 1 10
Printus\Bootstrap\Loader::add_action()
S
77 1 3
Printus\Views\Admin\PluginSettings\TemplateSettings::createTab()
S
71 1 6
Printus\Bootstrap\I18n::load_plugin_textdomain()
S
69 1 7
Printus\Views\Admin\PluginSettings\Setup\BootstrapSettings::validateSettings()
S
77 1 4
Printus\Bootstrap\Main::get_plugin_name()
S
82 1 3
Printus\Views\Admin\PluginSettings\LocalizationSettings::createTab()
S
71 1 6
Printus_Activator::activate()
S
80 1 3
activate_printus()
S
76 1 4
Printus\Notices\Notice::get_user_id()
S
81 1 3
Printus\Helpers\Logger::logCritical()
S
80 1 3
Printus\Models\PluginSettings\LocalizationSettingsModel::getPreferredTimeFormat()
S
78 1 3
Printus\Views\Admin\PluginSettings\ToolsSettings::createClearFontsCacheButton()
S
75 1 5
soaringleads_printus_init()
S
71 1 6
Printus\Notices\Notice::get_dismissed_notices()
S
79 1 3
Printus\Bootstrap\Main::add_plugin_action_links()
S
82 1 3
Printus_Deactivator::deactivate()
S
89 1 2
deactivate_printus()
S
76 1 4
Printus\Bootstrap\Loader::add()
S
64 1 10
Printus\Bootstrap\Main::run()
S
82 1 3
Printus\Views\Admin\PluginSettings\AbstractSettings::createTab()
S
100 1 0
Printus\Helpers\Logger::logError()
S
80 1 3
Printus\Notices\UpsellsNotices::__construct()
S
91 1 2
Printus\Views\Admin\PluginSettings\Setup\BootstrapSettings::__construct()
S
68 1 6
Printus\Notices\GeneralNotices::__construct()
S
82 1 3
Printus\Bootstrap\Main::get_loader()
S
82 1 3
Printus\Bootstrap\Main::defineMutualHooks()
S
75 1 4
Printus\Helpers\Functions::getAvailablePaperSizes()
S
68 1 7
Printus\Helpers\Functions::getAvailableTemplates()
S
80 1 3
Printus\Bootstrap\Frontend_Enqueues::enqueue_styles()
S
78 1 3
Printus\Bootstrap\Setup_Cron::set_cron_tasks()
S
91 1 2
Printus\Bootstrap\Main::set_locale()
S
75 1 4