Code Analysis: Slack Notifications 2.0.7

Function Rating Maintainability Complexity Lines of code
sn_update_plugin_db()
A
30 8 143
Slack_Bot::build_notification()
A
45 11 41
Slack_Notifications\Notifications\System::themes_update()
A
42 10 52
Slack_Notifications\Notifications\System::plugins_update()
A
42 10 52
Slack_Notifications\Notifications\Notification_Type::run_hooks()
A
54 9 19
Slack_Notifications\Notifications\CPT::has_notification()
S
58 8 15
Slack_Notifications\Notifications\System::wordpress_update()
S
46 6 40
Slack_Notifications\Notifications\CPT::__construct()
S
38 3 83
Slack_Notifications\Notifications\CPT::cpt_updated()
S
46 6 37
Slack_Bot::send_message()
S
47 6 36
Slack_Notifications\Notifications\Post::get_post_terms()
S
56 7 17
Slack_Notifications\Notifications\Post::post_updated()
S
45 5 43
Slack_Notifications\Notifications\CPT::cpt_scheduled()
S
46 5 40
Slack_Notifications\Notifications\CPT::cpt_published()
S
48 5 35
Slack_Notifications\Notifications\CPT::cpt_pending()
S
48 5 35
Slack_Notifications\Notifications\WooCommerce::__construct()
S
38 1 95
Slack_Notifications\Notifications\Page::page_updated()
S
48 5 33
Slack_Notifications\Notifications\WooCommerce::build_order_attachments()
S
45 4 47
Slack_Notifications\Settings\Support::build_report()
S
47 5 32
Slack_Notifications\Notifications\Post::post_scheduled()
S
45 4 46
Slack_Notifications\Notifications\Post::post_published()
S
46 4 41
Slack_Notifications\Notifications\Post::post_pending()
S
46 4 41
Slack_Notifications\Notifications\Contact_Form_7::form_submit()
S
43 3 53
Slack_Notifications\Notifications\CPT::cpt_trashed()
S
48 4 36
Slack_Notifications\Notifications\Page::page_scheduled()
S
48 4 36
Slack_Notifications\Notifications\User::administrator_failed_login()
S
49 4 33
Slack_Notifications\Settings\Field::output_field()
S
57 5 18
Slack_Notifications\Notifications\Page::page_pending()
S
49 4 31
Slack_Notifications\Notifications\Page::page_published()
S
49 4 31
Slack_Notifications\Notifications\WooCommerce::product_low_stock()
S
46 3 43
Slack_Notifications\Settings\Settings_Page::register_settings()
S
52 4 28
Slack_Notifications\Notifications\Post::post_trashed()
S
46 3 42
Slack_Notifications\Notifications\Comment::new_comment()
S
48 3 37
Slack_Notifications\Notifications\Page::page_trashed()
S
49 3 32
Slack_Notifications\Notifications\WooCommerce::new_order_note()
S
46 2 44
Logger::write()
S
61 4 12
Slack_Notifications\Notifications\User::get_user_ip()
S
63 4 11
Slack_Notifications\Notifications\Page::__construct()
S
45 1 52
Slack_Notifications\Notifications\Post::__construct()
S
45 1 52
Slack_Notifications\Notifications\Notification_Type::__construct()
S
57 3 16
Slack_Notifications\Notifications\Notification_Type::get_notification_channel()
S
63 4 10
Slack_Notifications\Settings\Settings_Page::section_callback()
S
59 3 14
Logger::prepare_log()
S
58 3 14
Slack_Notifications\Notifications\User::new_user()
S
51 2 29
Slack_Notifications\Notifications\User::administrator_login()
S
51 2 28
Slack_Notifications\Notifications\WooCommerce::order_transition()
S
56 2 18
Slack_Notifications\Notifications\WooCommerce::new_order()
S
56 2 18
Slack_Notifications\Settings\General::generate_settings()
S
50 1 33
Slack_Notifications\Notifications\User::__construct()
S
51 1 31
Slack_Notifications\Settings\Field::test_integration_field()
S
64 3 8
Admin::register_scripts()
S
59 2 14
Slack_Notifications\Settings\Settings_Page::print_settings_page()
S
59 2 13
Slack_Notifications\Settings\Support::get_plugins_versions()
S
60 2 13
Slack_Notifications\Notifications\System::__construct()
S
52 1 28
Admin::__construct()
S
62 2 11
Plugin::load_classes()
S
55 1 23
Slack_Notifications\Settings\Settings_Page::register_page()
S
58 1 17
AJAX::slack_clear_logs()
S
79 2 3
Slack_Bot::get_instance()
S
72 2 6
Slack_Notifications\Settings\Field::media_field()
S
61 2 10
Slack_Notifications\Notifications\Contact_Form_7::__construct()
S
59 1 15
AJAX::slack_test_integration()
S
69 2 6
Logger::get_log_file_contents()
S
69 2 7
Slack_Bot::parse_channels()
S
66 2 8
Slack_Notifications\Notifications\Comment::__construct()
S
59 1 15
Admin::register_styles()
S
71 2 5
Plugin::get_instance()
S
72 2 6
Logger::clear_log_file()
S
69 2 7
Plugin::init_classes()
S
60 1 14
Slack_Notifications\Settings\Notifications::__construct()
S
62 1 11
Admin::display_connect_problem()
S
72 1 5
Plugin::__wakeup()
S
70 1 7
Slack_Notifications\Settings\Settings_Page::generate_settings()
S
81 1 3
Slack_Bot::__construct()
S
70 1 6
sn_wp_version_no_supported()
S
71 1 5
Logger::get_file()
S
74 1 4
Plugin::__clone()
S
70 1 7
Slack_Notifications\Settings\Field::input_field()
S
69 1 5
Admin::remove_settings_submenu()
S
80 1 3
Slack_Notifications\Settings\Support::__construct()
S
68 1 7
sn_php_version_not_supported()
S
71 1 5
sn_load_text_domain()
S
82 1 3
Admin::register_settings_pages()
S
69 1 7
Slack_Notifications\Notifications\Notification_Type::get_notifications()
S
79 1 3
Admin::register_settings_menu()
S
77 1 3
Slack_Notifications\Settings\Settings_Page::__construct()
S
72 1 5
AJAX::__construct()
S
75 1 4
Plugin::__construct()
S
75 1 4
Logger::get_file_url()
S
74 1 4
Slack_Notifications\Settings\General::__construct()
S
68 1 7
Slack_Notifications\Settings\Support::get_active_theme_data()
S
66 1 8