Code Analysis: Perfecty Push Notifications 1.1.1

Function Rating Maintainability Complexity Lines of code
Perfecty_Push_Admin::sanitize()
B
42 19 57
Perfecty_Push_Admin::on_transition_post_status()
A
44 12 41
Perfecty_Push_Lib_Push_Server::execute_broadcast_batch()
A
42 10 52
Perfecty_Push::define_constants()
A
54 11 19
Perfecty_Push_Lib_Push_Server::send_notification()
A
46 9 38
Perfecty_Push_Users::register()
A
43 8 46
Perfecty_Push_Activator::default_options()
A
51 9 25
Perfecty_Push_Lib_Push_Server::schedule_broadcast_async()
A
50 8 27
Perfecty_Push_Admin_Notifications_Table::process_bulk_action()
A
53 8 22
Class_Perfecty_Push_Lib_Utils::check_gmp()
S
58 8 12
Perfecty_Push_Admin::register_options()
S
36 1 117
Perfecty_Push_Global::upgrade_check()
S
53 7 23
Perfecty_Push_Admin::on_save_post()
S
53 7 21
Perfecty_Push_Users::validate()
S
57 7 18
Perfecty_Push_Admin::get_attachment_id()
S
48 6 32
Perfecty_Push_Lib_Db::db_create()
S
45 5 47
Perfecty_Push_Users::update_preferences()
S
51 6 25
Perfecty_Push_Admin::print_send_notification_page()
S
46 5 40
Perfecty_Push::load_push_server()
S
53 6 22
Perfecty_Push_Admin_Users_Table::prepare_items()
S
52 6 22
Perfecty_Push_Admin_Notifications_Table::prepare_items()
S
52 6 22
Perfecty_Push_Admin_Users_Table::process_bulk_action()
S
58 6 14
Perfecty_Push_Users::validate_set_user_active()
S
61 6 12
Perfecty_Push_Users::get_user()
S
54 5 20
Perfecty_Push_Admin::show_admin_notice()
S
58 5 15
Perfecty_Push_Admin::print_notifications_page()
S
58 5 14
Perfecty_Push_Admin::print_users_page()
S
58 5 13
Perfecty_Push_Users::extract_data()
S
62 5 11
Perfecty_Push_Lib_Push_Server::getPushServer()
S
52 4 25
Perfecty_Push_Lib_Payload::build()
S
55 4 21
Perfecty_Push_Lib_Db::get_users()
S
55 4 19
Perfecty_Push_Admin::validate_notification_message()
S
60 4 14
Perfecty_Push_Admin::register_admin_menu()
S
45 1 58
Perfecty_Push_Loader::run()
S
61 4 12
Perfecty_Push_Lib_Db::get_notifications_daily_stats()
S
52 3 26
Perfecty_Push_Public::register_rest_endpoints()
S
47 1 50
Perfecty_Push_Lib_Db::get_notifications()
S
56 3 17
Perfecty_Push::__construct()
S
58 3 17
Perfecty_Push_Admin_Notifications_Table::column_created_at()
S
56 3 16
Perfecty_Push_Lib_Db::create_user()
S
55 2 20
Perfecty_Push_Lib_Db::create_notification()
S
56 2 18
Perfecty_Push_Admin_Notifications_Table::mark_notifications_failed()
S
66 3 9
Perfecty_Push_Admin_Notifications_Table::limit_text()
S
68 3 7
Perfecty_Push_Admin::print_widget_enabled()
S
63 3 10
Perfecty_Push_Admin::print_widget_debugging_enabled()
S
63 3 10
Perfecty_Push_Admin::print_unregister_conflicts()
S
63 3 10
Perfecty_Push_Admin_Users_Table::column_default()
S
66 3 8
Perfecty_Push_Lib_Db::get_total_users()
S
64 3 9
Perfecty_Push_Admin::get_first_image_url()
S
59 2 14
Perfecty_Push_Lib_Db::get_user_by_uuid()
S
61 2 13
Perfecty_Push_Lib_Db::update_notification()
S
57 1 17
Perfecty_Push_Lib_Db::delete_notifications()
S
64 2 9
Perfecty_Push_Admin::print_dialog_title()
S
65 2 9
Perfecty_Push_Admin::print_dialog_submit()
S
65 2 9
Perfecty_Push_Admin::print_dialog_cancel()
S
65 2 9
Perfecty_Push_Admin::print_settings_opt_in()
S
65 2 9
Perfecty_Push_Lib_Push_Server::bootstrap()
S
67 2 8
Perfecty_Push_Lib_Db::has_tables()
S
72 2 5
Perfecty_Push_Admin::print_settings_update_error()
S
65 2 9
Class_Perfecty_Push_Lib_Utils::is_disabled()
S
78 2 3
Class_Perfecty_Push_Lib_Utils::disable()
S
74 2 5
Class_Perfecty_Push_Lib_Utils::check_database()
S
72 2 5
Perfecty_Push_Lib_Db::update_user()
S
59 1 15
Perfecty_Push_Admin_Users_Table::column_is_active()
S
77 2 3
Perfecty_Push_Users::validate_get_user()
S
70 2 6
Perfecty_Push_Lib_Db::delete_users()
S
64 2 9
Perfecty_Push_Admin::print_batch_size()
S
65 2 9
Perfecty_Push_Admin::print_service_worker_scope()
S
65 2 9
Perfecty_Push_Admin::print_settings_title()
S
65 2 9
Perfecty_Push_Admin::print_vapid_public_key()
S
65 2 9
Perfecty_Push_Admin::print_vapid_private_key()
S
65 2 9
Perfecty_Push_Admin::print_server_url()
S
64 2 10
Perfecty_Push::load_dependencies()
S
60 1 14
Perfecty_Push_Lib_Db::mark_notification_completed_untake()
S
61 1 13
Perfecty_Push_Admin_Users_Table::column_uuid()
S
59 1 13
Perfecty_Push_Lib_Db::get_jobs_stats()
S
60 1 13
Perfecty_Push::define_admin_hooks()
S
60 1 12
Perfecty_Push_Lib_Db::mark_notification_completed()
S
62 1 12
Perfecty_Push_Lib_Db::mark_notification_failed()
S
62 1 12
Perfecty_Push_Lib_Db::mark_notification_running()
S
64 1 11
Perfecty_Push_Admin_Users_Table::get_columns()
S
62 1 11
Perfecty_Push_Admin_Notifications_Table::column_payload()
S
61 1 11
Perfecty_Push_Admin_Notifications_Table::get_columns()
S
62 1 11
Perfecty_Push_Admin::print_send_notification_metabox()
S
79 1 3
Perfecty_Push_Lib_Push_Server::create_vapid_keys()
S
76 1 4
Perfecty_Push_Lib_Db::with_prefix()
S
76 1 4
Perfecty_Push_Admin::execute_broadcast_batch()
S
81 1 3
Perfecty_Push_Admin_Notifications_Table::__construct()
S
67 1 9
Perfecty_Push_Activator::activate()
S
77 1 4
Perfecty_Push_Lib_Db::get_notifications_stats()
S
63 1 10
Perfecty_Push_Users::terminate()
S
79 1 3
Perfecty_Push_Public::__construct()
S
77 1 4
Perfecty_Push_Deactivator::deactivate()
S
77 1 4
Perfecty_Push_Lib_Db::notifications_table()
S
79 1 3
Class_Perfecty_Push_Lib_Utils::is_enabled()
S
79 1 3
Perfecty_Push_Lib_Db::take_notification()
S
78 1 3
Perfecty_Push_Admin_Users_Table::__construct()
S
67 1 9
Perfecty_Push_Admin_Notifications_Table::get_sortable_columns()
S
66 1 9
Perfecty_Push_Admin_Users_Table::filter_array()
S
66 1 10
Perfecty_Push_Admin::print_about_page()
S
79 1 3
Perfecty_Push_Lib_Db::take_untake_notification()
S
66 1 9
Perfecty_Push_Admin_Users_Table::get_sortable_columns()
S
70 1 7
Perfecty_Push_Loader::add()
S
64 1 10
Perfecty_Push_Admin::print_dialog_section()
S
79 1 3
Perfecty_Push_Lib_Db::untake_notification()
S
78 1 3
Perfecty_Push_Loader::__construct()
S
77 1 4
Perfecty_Push_Lib_Db::get_users_stats()
S
63 1 10
Perfecty_Push::define_public_hooks()
S
67 1 7
Perfecty_Push_Admin_Notifications_Table::get_bulk_actions()
S
69 1 7
Perfecty_Push::set_locale()
S
75 1 4
Perfecty_Push_Admin_Notifications_Table::column_cb()
S
72 1 6
Class_Perfecty_Push_Lib_Utils::show_message()
S
69 1 7
Perfecty_Push_Admin_Users_Table::get_bulk_actions()
S
71 1 6
Perfecty_Push_Loader::add_filter()
S
77 1 3
Perfecty_Push_Lib_Db::set_user_active()
S
67 1 8
Perfecty_Push_Lib_Db::users_table()
S
79 1 3
Perfecty_Push::define_global_hooks()
S
75 1 4
Perfecty_Push::get_loader()
S
82 1 3
activate_perfecty_push()
S
76 1 4
Perfecty_Push_Admin::print_self_hosted_section()
S
79 1 3
Perfecty_Push_Lib_Db::delete_user_by_endpoint()
S
71 1 5
run_perfecty_push()
S
77 1 4
Perfecty_Push::run()
S
82 1 3
Perfecty_Push_Admin_Users_Table::column_cb()
S
72 1 6
Perfecty_Push_Loader::add_action()
S
77 1 3
Perfecty_Push_Lib_Db::get_notification()
S
64 1 10
Perfecty_Push_Admin::print_dashboard_page()
S
63 1 10
Perfecty_Push_Lib_Db::get_user()
S
65 1 9
Perfecty_Push::get_version()
S
82 1 3
Perfecty_Push_Admin::register_metaboxes()
S
77 1 3
Perfecty_Push_Admin::print_options_page()
S
79 1 3
Perfecty_Push_i18n::load_plugin_textdomain()
S
69 1 7
Perfecty_Push_Admin::display_post_metabox()
S
66 1 7
Perfecty_Push_Public::enqueue_scripts()
S
77 1 3
Perfecty_Push_Admin_Notifications_Table::filter_array()
S
66 1 10
Perfecty_Push::get_plugin_name()
S
82 1 3
Perfecty_Push_Public::print_head()
S
75 1 4
Perfecty_Push_Admin_Notifications_Table::column_default()
S
80 1 3
Perfecty_Push_Admin::enqueue_styles()
S
77 1 3
Perfecty_Push_Lib_Db::get_notifications_total()
S
72 1 5
Perfecty_Push_Public::enqueue_styles()
S
77 1 3
Perfecty_Push_Admin::__construct()
S
77 1 4
Class_Perfecty_Push_Lib_Utils::clean_messages()
S
80 1 3
Perfecty_Push_Admin::enqueue_scripts()
S
73 1 4
deactivate_perfecty_push()
S
76 1 4