Code Analysis: Posts Bridge 2.4.0

Function Rating Maintainability Complexity Lines of code
POSTS_BRIDGE\WP_Remote_Relation::remote_data()
B
35 22 85
POSTS_BRIDGE\Posts_Synchronizer::sync()
A
39 12 71
POSTS_BRIDGE\JSON_Finger::parse()
A
42 13 54
POSTS_BRIDGE\Google_Sheets_Service::read_rows()
A
37 10 83
POSTS_BRIDGE\Remote_Relation::map_remote_fields()
A
45 11 41
POSTS_BRIDGE\Remote_Featured_Media::attach()
A
42 10 53
POSTS_BRIDGE\REST_Remote_Posts_Controller::on_rest_insert()
A
43 10 51
POSTS_BRIDGE\Abstracts\Settings_Store::input_render()
A
43 10 50
POSTS_BRIDGE\REST_Remote_Posts_Controller::rest_pre_dispatch()
A
43 10 50
POSTS_BRIDGE\JSON_Finger::set()
A
44 10 46
POSTS_BRIDGE\Abstracts\Settings_Store::sanitize_value()
A
49 11 30
POSTS_BRIDGE\Posts_Synchronizer::schedule()
A
47 10 37
POSTS_BRIDGE\Remote_CPT::do_shortcode()
A
43 8 53
POSTS_BRIDGE\Settings_Store::validate_relations()
A
47 9 38
POSTS_BRIDGE\Posts_Synchronizer::ajax_callback()
A
46 8 37
POSTS_BRIDGE\Remote_Relation::get_post_categories()
A
51 8 26
POSTS_BRIDGE\WP_Addon::validate_relations()
S
50 7 30
POSTS_BRIDGE\Odoo_Addon::validate_relations()
S
50 7 29
POSTS_BRIDGE\Abstracts\Plugin::construct()
S
47 6 38
POSTS_BRIDGE\I18n::do_detacheds()
S
47 6 37
POSTS_BRIDGE\Logger::logs()
S
58 7 16
POSTS_BRIDGE\Logger::construct()
S
46 5 45
POSTS_BRIDGE\Posts_Bridge::custom_hooks()
S
47 5 41
POSTS_BRIDGE\Abstracts\Menu::render_page()
S
46 5 39
POSTS_BRIDGE\Posts_Synchronizer::construct()
S
48 5 37
POSTS_BRIDGE\Addon::load()
S
48 5 36
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::set_settings()
S
54 6 20
POSTS_BRIDGE\Settings_Store::config()
S
39 1 92
POSTS_BRIDGE\Posts_Synchronizer::add_schedule()
S
52 5 31
POSTS_BRIDGE\Abstracts\Settings_Store::register_settings()
S
43 3 55
POSTS_BRIDGE\Odoo_Remote_Relation::rpc_response()
S
54 5 24
POSTS_BRIDGE\Odoo_Addon::custom_hooks()
S
54 5 24
POSTS_BRIDGE\Google_Sheets_Addon::validate_relations()
S
54 5 22
POSTS_BRIDGE\JSON_Finger::get()
S
55 5 21
POSTS_BRIDGE\Remote_Featured_Media::handle()
S
55 5 21
POSTS_BRIDGE\I18n::translate_post()
S
58 5 17
POSTS_BRIDGE\I18n::do_translations()
S
50 4 32
POSTS_BRIDGE\Abstracts\Settings_Store::_field_render()
S
57 5 17
POSTS_BRIDGE\Remote_CPT::do_remote_callback()
S
58 5 16
POSTS_BRIDGE\WP_Remote_Relation::get_paged()
S
50 4 29
POSTS_BRIDGE\Remote_Featured_Media::src_type()
S
60 5 14
POSTS_BRIDGE\Google_Sheets_Service::get_spreadsheets()
S
51 4 28
POSTS_BRIDGE\Posts_Bridge::sync_http_settings()
S
51 4 27
POSTS_BRIDGE\Logger::setup()
S
61 5 12
POSTS_BRIDGE\Posts_Bridge::rest_hooks()
S
53 4 26
POSTS_BRIDGE\Remote_CPT::fetch()
S
53 4 26
POSTS_BRIDGE\Abstracts\Setting::__construct()
S
55 4 21
POSTS_BRIDGE\REST_Remote_Posts_Controller::filter_prepared_post()
S
55 4 20
POSTS_BRIDGE\Google_Sheets_Remote_Relation::fetch()
S
56 4 19
POSTS_BRIDGE\Google_Sheets_Ajax_Controller::ajax_handler()
S
56 4 18
POSTS_BRIDGE\Remote_Featured_Media::remove_default_thumbnail()
S
57 4 17
POSTS_BRIDGE\Odoo_Remote_Relation::__get()
S
58 4 16
POSTS_BRIDGE\Addon::registry()
S
57 4 16
POSTS_BRIDGE\I18n::detach_translation()
S
57 4 16
POSTS_BRIDGE\Remote_Relation::__get()
S
58 4 16
POSTS_BRIDGE\Settings_Store::validate_setting()
S
59 4 15
POSTS_BRIDGE\Abstracts\Setting::proxy()
S
60 4 14
POSTS_BRIDGE\Remote_Featured_Media::attach_b64()
S
59 4 14
POSTS_BRIDGE\Google_Sheets_Service::is_authorized()
S
60 4 13
POSTS_BRIDGE\Google_Sheets_Addon::custom_hooks()
S
53 3 27
POSTS_BRIDGE\Posts_Bridge::the_post()
S
62 4 12
POSTS_BRIDGE\Remote_Featured_Media::setup_default_thumbnail()
S
55 3 23
POSTS_BRIDGE\Posts_Bridge::admin_enqueue_scripts()
S
48 2 37
POSTS_BRIDGE\Odoo_Remote_Relation::foreign_ids()
S
54 3 22
POSTS_BRIDGE\Odoo_Remote_Relation::rpc_login()
S
54 3 21
POSTS_BRIDGE\Google_Sheets_Service::get_sheets()
S
55 3 21
POSTS_BRIDGE\Google_Sheets_Store::construct()
S
57 3 21
POSTS_BRIDGE\Google_Sheets_Ajax_Controller::add_credentials()
S
56 3 19
POSTS_BRIDGE\Google_Sheets_Service::add_sheet()
S
56 3 19
POSTS_BRIDGE\Abstracts\Settings_Store::fieldset_render()
S
56 3 17
POSTS_BRIDGE\Odoo_Addon::setting_config()
S
47 1 47
POSTS_BRIDGE\Google_Sheets_Remote_Relation::foreign_ids()
S
58 3 17
POSTS_BRIDGE\Remote_Relation::endpoint()
S
57 3 17
POSTS_BRIDGE\Odoo_Addon::validate_databases()
S
58 3 16
POSTS_BRIDGE\Addon::construct()
S
60 3 15
POSTS_BRIDGE\WP_Addon::setting_config()
S
48 1 45
POSTS_BRIDGE\Remote_Featured_Media::file_type()
S
63 4 10
POSTS_BRIDGE\I18n::drop_translations()
S
61 3 13
POSTS_BRIDGE\Remote_CPT::__get()
S
61 3 13
POSTS_BRIDGE\Abstracts\Settings_Store::sanitize_setting()
S
60 3 13
POSTS_BRIDGE\Remote_Relation::get_post_tags()
S
61 3 13
POSTS_BRIDGE\Abstracts\Singleton::get_instance()
S
61 3 12
POSTS_BRIDGE\Logger::lines()
S
60 3 12
POSTS_BRIDGE\Addon::admin_scripts()
S
52 2 26
POSTS_BRIDGE\Remote_Relation::foreign_ids()
S
62 3 11
POSTS_BRIDGE\Addon::handle_settings()
S
56 2 21
POSTS_BRIDGE\Google_Sheets_Addon::setting_config()
S
51 1 34
POSTS_BRIDGE\Odoo_Remote_Relation::fetch()
S
56 2 18
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::init()
S
51 1 32
POSTS_BRIDGE\WP_Remote_Relation::fetch()
S
58 2 17
POSTS_BRIDGE\Posts_Bridge::register_shortcodes()
S
59 2 17
POSTS_BRIDGE\Abstracts\Settings_Store::kses()
S
52 1 31
POSTS_BRIDGE\REST_Remote_Posts_Controller::__construct()
S
51 1 31
is_list()
S
65 3 9
POSTS_BRIDGE\Odoo_DB::__get()
S
64 3 10
POSTS_BRIDGE\Addon::update_registry()
S
63 3 10
POSTS_BRIDGE\Abstracts\Plugin::load_textdomain()
S
64 3 9
POSTS_BRIDGE\Logger::deactivate()
S
68 3 8
POSTS_BRIDGE\Logger::activate()
S
67 3 8
POSTS_BRIDGE\Google_Sheets_Remote_Relation::__get()
S
65 3 10
POSTS_BRIDGE\Remote_CPT::post_types()
S
59 2 15
POSTS_BRIDGE\Remote_CPT::get()
S
64 3 10
POSTS_BRIDGE\Remote_Featured_Media::attach_url()
S
63 3 10
POSTS_BRIDGE\Remote_Relation::remote_post_fields()
S
64 3 10
POSTS_BRIDGE\Remote_Relation::remote_custom_fields()
S
64 3 10
POSTS_BRIDGE\Remote_CPT::__construct()
S
62 2 13
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::construct()
S
62 2 12
POSTS_BRIDGE\Remote_Relation::register_meta()
S
62 2 11
POSTS_BRIDGE\Addon::relations()
S
64 2 11
POSTS_BRIDGE\Remote_CPT::language_interceptor()
S
64 2 11
POSTS_BRIDGE\Remote_Featured_Media::memory()
S
62 2 11
POSTS_BRIDGE\Google_Sheets_Store::secret()
S
63 2 11
POSTS_BRIDGE\Abstracts\Settings_Store::field_render()
S
62 2 11
POSTS_BRIDGE\Abstracts\Settings_Store::control_render()
S
58 1 18
POSTS_BRIDGE\Abstracts\Settings_Store::add_setting_field()
S
58 1 17
POSTS_BRIDGE\Abstracts\Setting::data()
S
70 2 6
POSTS_BRIDGE\Abstracts\Plugin::settings()
S
69 2 7
POSTS_BRIDGE\Logger::permission_callback()
S
70 2 6
POSTS_BRIDGE\Posts_Synchronizer::register_custom_schedules()
S
59 1 15
POSTS_BRIDGE\Abstracts\Plugin::setting()
S
69 2 7
POSTS_BRIDGE\Google_Sheet_REST_Controller::permission_callback()
S
66 2 8
POSTS_BRIDGE\Remote_CPT::foreign_id()
S
65 2 10
POSTS_BRIDGE\Remote_Relation::backend()
S
68 2 7
POSTS_BRIDGE\Abstracts\Settings_Store::setting()
S
68 2 7
POSTS_BRIDGE\Google_Sheets_Store::data()
S
70 2 6
POSTS_BRIDGE\Google_Sheets_Store::load()
S
71 2 5
POSTS_BRIDGE\Google_Sheets_Store::forget()
S
66 2 8
POSTS_BRIDGE\Remote_Relation::fetch()
S
67 2 8
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::get_settings()
S
67 2 8
POSTS_BRIDGE\Posts_Bridge::register_meta()
S
70 2 6
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::permission_callback()
S
66 2 9
POSTS_BRIDGE\WP_Remote_Relation::__get()
S
64 2 10
POSTS_BRIDGE\WP_Remote_Relation::endpoint()
S
65 2 9
POSTS_BRIDGE\Abstracts\Plugin::dependencies()
S
63 2 10
POSTS_BRIDGE\Abstracts\Setting::__set()
S
69 2 7
POSTS_BRIDGE\Addon::do_validation()
S
70 2 6
POSTS_BRIDGE\Posts_Synchronizer::unschedule()
S
70 2 6
POSTS_BRIDGE\JSON_Finger::__construct()
S
71 2 6
POSTS_BRIDGE\JSON_Finger::__get()
S
73 2 5
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::schema()
S
60 1 14
POSTS_BRIDGE\Posts_Bridge::wp_hooks()
S
63 1 13
POSTS_BRIDGE\I18n::construct()
S
63 1 13
POSTS_BRIDGE\Google_Sheet_REST_Controller::init()
S
61 1 13
POSTS_BRIDGE\REST_Settings_Controller::register_post_types_route()
S
61 1 13
POSTS_BRIDGE\Odoo_Remote_Relation::rpc_payload()
S
62 1 12
POSTS_BRIDGE\Abstracts\Menu::add_menu()
S
66 1 11
POSTS_BRIDGE\Settings_Store::construct()
S
64 1 11
POSTS_BRIDGE\Google_Sheets_Ajax_Controller::localize_script()
S
64 1 11
POSTS_BRIDGE\Logger::register_log_route()
S
63 1 11
POSTS_BRIDGE\Posts_Synchronizer::ajax_localization()
S
63 1 11
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::namespace()
S
78 1 3
POSTS_BRIDGE\Abstracts\Singleton::construct()
S
100 1 0
POSTS_BRIDGE\Posts_Bridge::activate()
S
77 1 4
POSTS_BRIDGE\Abstracts\Plugin::name()
S
79 1 3
POSTS_BRIDGE\Abstracts\Plugin::is_active()
S
79 1 3
POSTS_BRIDGE\Abstracts\Menu::construct()
S
64 1 10
POSTS_BRIDGE\Odoo_Remote_Relation::database()
S
70 1 7
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::group()
S
79 1 3
POSTS_BRIDGE\Abstracts\Settings_Store::control_script()
S
81 1 3
POSTS_BRIDGE\Google_Sheets_Service::service()
S
80 1 3
POSTS_BRIDGE\Posts_Bridge::init()
S
77 1 4
POSTS_BRIDGE\JSON_Finger::data()
S
82 1 3
POSTS_BRIDGE\Abstracts\Plugin::activate()
S
89 1 2
POSTS_BRIDGE\Posts_Bridge::construct()
S
69 1 8
POSTS_BRIDGE\Posts_Synchronizer::setup()
S
80 1 3
POSTS_BRIDGE\Google_Sheets_Client::__construct()
S
65 1 9
POSTS_BRIDGE\Odoo_DB::backend()
S
70 1 7
POSTS_BRIDGE\Abstracts\Plugin::setup()
S
79 1 3
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::settings()
S
79 1 3
POSTS_BRIDGE\Abstracts\Menu::name()
S
80 1 3
POSTS_BRIDGE\Abstracts\Setting::schema()
S
79 1 3
POSTS_BRIDGE\Settings_Store::validate_general()
S
63 1 10
POSTS_BRIDGE\Google_Sheets_Ajax_Controller::setup()
S
80 1 3
POSTS_BRIDGE\Remote_Relation::__construct()
S
77 1 4
POSTS_BRIDGE\Odoo_DB::__construct()
S
81 1 3
POSTS_BRIDGE\I18n::setup()
S
80 1 3
POSTS_BRIDGE\Logger::is_active()
S
75 1 4
POSTS_BRIDGE\Google_Sheets_Store::store()
S
80 1 3
POSTS_BRIDGE\Google_Sheet_REST_Controller::spreadsheets()
S
80 1 3
POSTS_BRIDGE\REST_Settings_Controller::init()
S
77 1 4
POSTS_BRIDGE\Google_Sheets_Store::encrypt()
S
75 1 4
POSTS_BRIDGE\Remote_CPT::terms()
S
79 1 3
POSTS_BRIDGE\Odoo_Addon::construct()
S
76 1 4
POSTS_BRIDGE\Abstracts\Plugin::textdomain()
S
79 1 3
POSTS_BRIDGE\Remote_CPT::meta()
S
79 1 3
POSTS_BRIDGE\Abstracts\Plugin::is_plugin_active()
S
75 1 4
POSTS_BRIDGE\Abstracts\Setting::__get()
S
75 1 4
POSTS_BRIDGE\Google_Sheet_REST_Controller::setup()
S
80 1 3
POSTS_BRIDGE\Logger::log_path()
S
78 1 3
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::error()
S
72 1 5
POSTS_BRIDGE\Google_Sheets_Client::use_credentials()
S
72 1 5
POSTS_BRIDGE\REST_Remote_Posts_Controller::handle_featured_media()
S
75 1 4
POSTS_BRIDGE\Abstracts\Plugin::menu()
S
80 1 3
POSTS_BRIDGE\Google_Sheets_Service::construct()
S
80 1 3
POSTS_BRIDGE\WP_Remote_Relation::foreign_ids()
S
81 1 3
POSTS_BRIDGE\JSON_Finger::isset()
S
79 1 3
posts_bridge_remote_fields_block_init()
S
80 1 3
POSTS_BRIDGE\REST_Remote_Posts_Controller::unalias()
S
79 1 3
POSTS_BRIDGE\Google_Sheets_Store::delete()
S
80 1 3
POSTS_BRIDGE\Abstracts\Settings_Store::group()
S
80 1 3
POSTS_BRIDGE\Abstracts\Plugin::version()
S
79 1 3
POSTS_BRIDGE\Google_Sheets_Addon::construct()
S
74 1 5
POSTS_BRIDGE\REST_Settings_Controller::get_post_types()
S
66 1 9
POSTS_BRIDGE\Google_Sheet_REST_Controller::construct()
S
74 1 5
POSTS_BRIDGE\Google_Sheets_Remote_Relation::relations()
S
73 1 5
POSTS_BRIDGE\Remote_Featured_Media::default_thumbnail()
S
80 1 3
POSTS_BRIDGE\Abstracts\Menu::settings()
S
80 1 3
POSTS_BRIDGE\Remote_Featured_Media::default_thumbnail_id()
S
79 1 3
POSTS_BRIDGE\Settings_Store::validate_api()
S
67 1 8
POSTS_BRIDGE\Google_Sheets_Addon::validate_setting()
S
75 1 4
POSTS_BRIDGE\Google_Sheets_Client::flush_credentials()
S
76 1 4
POSTS_BRIDGE\Abstracts\Plugin::init()
S
89 1 2
POSTS_BRIDGE\Abstracts\Singleton::__wakeup()
S
80 1 3
POSTS_BRIDGE\Odoo_DB::relations()
S
67 1 8
POSTS_BRIDGE\Addon::validate_setting()
S
100 1 0
POSTS_BRIDGE\Addon::setting_name()
S
79 1 3
POSTS_BRIDGE\Abstracts\Setting::delete()
S
80 1 3
POSTS_BRIDGE\WP_Remote_Relation::authorization()
S
68 1 7
POSTS_BRIDGE\Abstracts\Plugin::slug()
S
79 1 3
POSTS_BRIDGE\Odoo_Remote_Relation::__construct()
S
67 1 8
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::setup()
S
79 1 3
POSTS_BRIDGE\Odoo_Remote_Relation::backend()
S
81 1 3
POSTS_BRIDGE\Abstracts\Plugin::data()
S
71 1 5
POSTS_BRIDGE\Odoo_Remote_Relation::endpoint()
S
82 1 3
POSTS_BRIDGE\WP_Remote_Relation::relations()
S
73 1 5
POSTS_BRIDGE\Google_Sheets_Remote_Relation::__construct()
S
76 1 4
POSTS_BRIDGE\Abstracts\Singleton::__construct()
S
81 1 3
POSTS_BRIDGE\Abstracts\REST_Settings_Controller::version()
S
78 1 3
POSTS_BRIDGE\Addon::setting_config()
S
100 1 0
POSTS_BRIDGE\Google_Sheets_Service::client()
S
82 1 3
POSTS_BRIDGE\Abstracts\Setting::name()
S
82 1 3
POSTS_BRIDGE\Google_Sheets_Addon::wp_hooks()
S
70 1 6
POSTS_BRIDGE\Abstracts\Menu::slug()
S
80 1 3
POSTS_BRIDGE\Odoo_Addon::databases()
S
73 1 5
POSTS_BRIDGE\Abstracts\Settings_Store::store()
S
79 1 3
POSTS_BRIDGE\Remote_Featured_Media::memorize()
S
74 1 4
POSTS_BRIDGE\Abstracts\Setting::update()
S
79 1 3
POSTS_BRIDGE\Remote_CPT::relation()
S
79 1 3
POSTS_BRIDGE\Posts_Bridge::deactivate()
S
77 1 4
POSTS_BRIDGE\Odoo_Remote_Relation::relations()
S
73 1 5
POSTS_BRIDGE\Google_Sheets_Store::save()
S
65 1 9
POSTS_BRIDGE\Abstracts\Setting::full_name()
S
80 1 3
POSTS_BRIDGE\Google_Sheets_Store::decrypt()
S
79 1 3
POSTS_BRIDGE\Abstracts\Setting::group()
S
82 1 3
POSTS_BRIDGE\WP_Remote_Relation::__construct()
S
67 1 8
POSTS_BRIDGE\Google_Sheets_Ajax_Controller::construct()
S
68 1 8
POSTS_BRIDGE\JSON_Finger::unset()
S
79 1 3
POSTS_BRIDGE\Remote_Relation::remote_fields()
S
72 1 6
POSTS_BRIDGE\REST_Remote_Posts_Controller::is_alias()
S
79 1 3
POSTS_BRIDGE\Abstracts\Plugin::deactivate()
S
89 1 2
POSTS_BRIDGE\Google_Sheets_Store::get()
S
79 1 3
POSTS_BRIDGE\Abstracts\Plugin::path()
S
75 1 4
POSTS_BRIDGE\Google_Sheets_Ajax_Controller::revoke_credentials()
S
76 1 4
POSTS_BRIDGE\WP_Addon::validate_setting()
S
67 1 8
POSTS_BRIDGE\Abstracts\Singleton::__clone()
S
89 1 2
POSTS_BRIDGE\Abstracts\Settings_Store::config()
S
100 1 0
POSTS_BRIDGE\Addon::setting()
S
80 1 3
POSTS_BRIDGE\Abstracts\Settings_Store::construct()
S
65 1 9
POSTS_BRIDGE\Menu::render_page()
S
72 1 6
POSTS_BRIDGE\REST_Remote_Posts_Controller::alias()
S
80 1 3
POSTS_BRIDGE\Abstracts\Setting::add()
S
79 1 3
POSTS_BRIDGE\Odoo_Addon::validate_setting()
S
67 1 8
POSTS_BRIDGE\REST_Remote_Posts_Controller::is_own_route()
S
68 1 7
POSTS_BRIDGE\Abstracts\Plugin::index()
S
72 1 5
POSTS_BRIDGE\JSON_Finger::__set()
S
80 1 3
POSTS_BRIDGE\Google_Sheets_Client::get_sheets_service()
S
79 1 3
POSTS_BRIDGE\Addon::setup()
S
79 1 3
POSTS_BRIDGE\Abstracts\Settings_Store::settings()
S
80 1 3
POSTS_BRIDGE\Google_Sheets_Store::setup()
S
80 1 3
POSTS_BRIDGE\Remote_Relation::relations()
S
73 1 5
POSTS_BRIDGE\Google_Sheets_Store::set()
S
79 1 3
POSTS_BRIDGE\Abstracts\Settings_Store::control_style()
S
65 1 10
POSTS_BRIDGE\Google_Sheets_Client::get_drive_service()
S
79 1 3
POSTS_BRIDGE\REST_Remote_Posts_Controller::get_item_schema()
S
72 1 5
POSTS_BRIDGE\Google_Sheets_Service::setup()
S
80 1 3