Code Analysis: CatFolders – WP Media Folders 2.4.5

Function Rating Maintainability Complexity Lines of code
CatFolders\Models\FolderModel::updatePositionAndParent()
A
41 10 64
CatFolders\Internals\WPMedia::postsClauses()
A
46 11 37
CatFolders\Core\Base::getStartupFolder()
A
51 10 31
CatFolders\I18n::getTranslation()
A
27
1 164
CatFolders\Models\FolderModel::get_all()
A
46 9 39
CatFolders\Models\FolderModel::set_attachments()
A
44 8 48
CatFolders\Blocks\GalleryBlock::get_attachments()
A
44 8 43
CatFolders\Blocks\GalleryBlock::generate_html()
S
50 7 26
CatFolders\Classes\Vite::cssUrls()
S
55 7 19
CatFolders\Rest\Controllers\FolderController::sort_folders()
S
47 6 33
CatFolders\Rest\Controllers\MetaController::generate_size_api()
S
49 6 31
CatFolders\Backend\Enqueue::enqueueAdminScripts()
S
44 5 45
CatFolders\Integrations\PageBuilders::enqueueForDokan()
S
59 7 14
CatFolders\Rest\Controllers\ImportController::import_csv()
S
50 6 28
CatFolders\Rest\Controllers\ImportController::create_recursive_tree()
S
53 6 23
CatFolders\Rest\Controllers\ImportController::get_attachment_in_folder()
S
53 6 21
CatFolders\Rest\Controllers\FolderController::register_routes()
S
40 1 95
CatFolders\Classes\Svg::wp_handle_upload_prefilter()
S
54 6 20
CatFolders\Rest\Controllers\ImportController::get_folder_structure()
S
53 6 20
CatFolders\Internals\WPMedia::addAttachment()
S
55 6 19
CatFolders\Rest\Controllers\ImportController::get_folder_counter()
S
56 6 16
CatFolders\Classes\Vite::enqueueVite()
S
50 5 29
CatFolders\Models\FolderModel::createFolder()
S
46 4 43
CatFolders\Integrations\MediaLibraryAssistant::extranav_custom_action()
S
52 5 23
CatFolders\Rest\Controllers\ExportController::get_nested_tree()
S
57 5 18
CatFolders\Rest\Controllers\ImportController::get_rml_attachments()
S
56 5 16
CatFolders\Rest\Controllers\PublicAPIController::getAuthorizationHeader()
S
58 5 15
CatFolders\Rest\Controllers\PublicAPIController::getBearerToken()
S
60 5 13
CatFolders\Models\FolderModel::get_nested_tree()
S
60 5 13
CatFolders\Internals\WPMedia::restrictManagePosts()
S
52 4 24
CatFolders\Rest\Controllers\ImportController::__construct()
S
42 1 68
CatFolders\Rest\Controllers\FolderController::update_folder()
S
53 4 22
CatFolders\Rest\Controllers\ImportController::restore_folders()
S
53 4 22
CatFolders\Models\FolderModel::deleteFolder()
S
54 4 22
CatFolders\Rest\Controllers\ImportController::get_wmlf_folders()
S
54 4 21
CatFolders\Rest\Controllers\FolderController::new_folder()
S
55 4 19
CatFolders\Models\FolderModel::get_folders_counter()
S
49 3 32
CatFolders\Internals\WPMedia::restPrepareAttachment()
S
66 5 7
CatFolders\Rest\Controllers\ImportController::detect_import()
S
59 4 13
CatFolders\Classes\Vite::register()
S
60 4 13
CatFolders\Models\OptionModel::update_option()
S
61 4 12
CatFolders\Rest\Controllers\ImportController::get_fb_folders()
S
60 4 12
CatFolders\Rest\Controllers\ImportController::get_rml_folders()
S
60 4 12
CatFolders\Rest\Controllers\ImportController::register_routes()
S
48 1 47
CatFolders\Models\FolderModel::get_children_ids()
S
57 3 17
CatFolders\Rest\Controllers\ImportController::get_wmlf_attachments()
S
57 3 16
CatFolders\Rest\Controllers\ImportController::get_term_attachments()
S
57 3 16
CatFolders\Classes\Helpers::isListMode()
S
67 4 7
CatFolders\Models\OptionModel::get_option()
S
63 4 10
CatFolders\Classes\Helpers::getMediaMode()
S
64 4 9
CatFolders\Integrations\PageBuilders::enqueueForBricksBuilder()
S
68 4 7
CatFolders\Rest\Controllers\PublicAPIController::register_routes()
S
48 1 45
CatFolders\Classes\Vite::jsPreloadImports()
S
60 3 15
CatFolders\Integrations\PageBuilders::enqueueScripts()
S
62 3 14
CatFolders\Classes\Helpers::get_bytes()
S
61 3 13
CatFolders\Internals\Users\FolderUser::run_merge()
S
60 3 13
CatFolders\Rest\Controllers\ImportController::get_fb_attachments()
S
60 3 12
CatFolders\Models\FolderModel::group_parent_folders()
S
61 3 12
CatFolders\Classes\Vite::cssTag()
S
62 3 11
CatFolders\Install::getSchema()
S
55 2 24
CatFolders\Models\FolderModel::isExistingFolderName()
S
58 2 16
CatFolders\Rest\Controllers\FolderController::get_folder_property()
S
57 2 16
CatFolders\Rest\Controllers\ImportController::get_term_folders()
S
58 2 16
CatFolders\Rest\Init::register_routes()
S
59 2 16
CatFolders\Backend\Notices::admin_notices()
S
66 3 8
CatFolders\Classes\Helpers::sanitize_array()
S
68 3 7
CatFolders\Integrations\PageBuilders::enqueueForThrive()
S
72 3 5
CatFolders\Integrations\PageBuilders::enqueueForAvada()
S
71 3 5
CatFolders\Integrations\PageBuilders::enqueueForZionBuilder()
S
67 3 8
CatFolders\Internals\Modules\MediaMeta::added_post_meta()
S
67 3 8
CatFolders\Internals\Users\FolderUser::should_run_merge()
S
65 3 10
CatFolders\Backend\SettingsPage::adminEnqueueScripts()
S
59 2 15
CatFolders\Classes\Vite::importsUrls()
S
63 3 10
CatFolders\Models\FolderModel::create_or_get()
S
59 2 15
CatFolders\Core\Base::updateUserSettings()
S
64 3 9
CatFolders\I18n::load_text_domain()
S
62 3 10
CatFolders\Rest\Controllers\ImportController::clean_db()
S
58 2 14
CatFolders\Models\FolderModel::getAttachmentRelationship()
S
60 2 13
CatFolders\Classes\Svg::wp_check_filetype_and_ext()
S
62 2 12
CatFolders\Core\Base::initialize()
S
56 1 20
CatFolders\Integrations\PageBuilders::getPageBuilders()
S
58 1 18
CatFolders\Internals\WPMedia::__construct()
S
57 1 17
CatFolders\Internals\Users\FolderUser::get_restricted_folders()
S
59 1 16
CatFolders\Internals\WPMedia::loadModules()
S
70 2 6
CatFolders\Classes\Vite::assetUrl()
S
69 2 6
CatFolders\Internals\Users\FolderUser::get_folder_created_by()
S
69 2 7
CatFolders\Integrations\PageBuilders::enqueueForFusion()
S
73 2 5
CatFolders\Rest\Controllers\PublicAPIController::public_permission_callback()
S
68 2 7
CatFolders\Rest\Controllers\PublicAPIController::permission_callback()
S
79 2 3
CatFolders\Backend\Enqueue::doHooks()
S
70 2 6
CatFolders\Integrations\PageBuilders::enqueueForCornerstone()
S
73 2 5
CatFolders\Internals\WPMedia::ajaxQueryAttachmentsArgs()
S
70 2 6
CatFolders\Models\FolderModel::isFolderExist()
S
65 2 9
CatFolders\Integrations\PageBuilders::enqueueForOxygenBuilder()
S
73 2 5
CatFolders\Integrations\Init::registerClasses()
S
65 2 10
CatFolders\Rest\Controllers\FolderController::delete_folder()
S
69 2 6
CatFolders\Internals\Modules\MediaMeta::manage_media_custom_column()
S
69 2 6
CatFolders\Classes\Helpers::getInstance()
S
71 2 6
CatFolders\Integrations\MediaLibraryAssistant::mla_list_table_submenu_arguments()
S
70 2 6
CatFolders\Integrations\PageBuilders::prepareEnqueue()
S
71 2 6
CatFolders\Install::checkVersion()
S
72 2 5
CatFolders\Backend\SettingsPage::__construct()
S
64 2 9
CatFolders\Classes\Helpers::sanitize_intval_array()
S
69 2 7
CatFolders\Integrations\PageBuilders::enqueueForBeaver()
S
66 2 10
CatFolders\Integrations\PageBuilders::enqueueForBrizy()
S
73 2 5
CatFolders\Integrations\PageBuilders::enqueueForDivi()
S
66 2 10
CatFolders\Classes\Helpers::generateRandomString()
S
64 2 9
CatFolders\Integrations\PageBuilders::enqueueForTatsuBuilder()
S
73 2 5
CatFolders\Classes\Svg::__construct()
S
66 2 8
CatFolders\Integrations\PageBuilders::enqueueForElementor()
S
73 2 5
CatFolders\Backend\SettingsPage::pluginRowMeta()
S
63 2 10
CatFolders\Classes\Vite::getPublicURLBase()
S
79 2 3
CatFolders\Models\FolderModel::updateToMaxOrd()
S
60 1 15
CatFolders\Blocks\GalleryBlock::render_block()
S
68 2 7
CatFolders\Core\Base::getSettings()
S
71 2 6
CatFolders\Core\Base::updateSettings()
S
69 2 7
CatFolders\Core\Base::getUserSettings()
S
71 2 6
CatFolders\Internals\Users\FolderUser::__construct()
S
73 2 5
CatFolders\Core\Initialize::__construct()
S
60 1 14
CatFolders\Rest\Controllers\SettingController::register_routes()
S
62 1 13
CatFolders\Rest\Controllers\MetaController::register_routes()
S
62 1 13
CatFolders\Models\FolderModel::getRelationsWithFolderUser()
S
60 1 13
CatFolders\Rest\Controllers\BlockController::register_routes()
S
62 1 13
CatFolders\Models\FolderModel::get_all_counter()
S
61 1 13
CatFolders\Models\FolderModel::detail()
S
63 1 12
CatFolders\Backend\Notices::first_folder_notice()
S
61 1 12
CatFolders\Backend\SettingsPage::addActionLinks()
S
62 1 12
CatFolders\Rest\Controllers\ExportController::register_routes()
S
64 1 11
CatFolders\Rest\Controllers\FolderController::get_folders()
S
63 1 11
CatFolders\Models\FolderModel::getFolderCount()
S
64 1 11
CatFolders\Backend\Notices::__construct()
S
64 1 11
CatFolders\Models\FolderModel::getPostIdsFromFolder()
S
64 1 10
CatFolders\Rest\Init::__construct()
S
79 1 3
CatFolders\Rest\Controllers\FolderController::set_attachment_to_folder()
S
69 1 6
CatFolders\Rest\Controllers\SettingController::permission_callback()
S
80 1 3
CatFolders\Rest\Controllers\ExportController::permission_callback()
S
80 1 3
CatFolders\Rest\Controllers\SettingController::update()
S
69 1 6
CatFolders\Blocks\GalleryBlock::create_block_catfolders_block_init()
S
77 1 3
CatFolders\Rest\Controllers\FolderController::__construct()
S
81 1 3
CatFolders\Integrations\PageBuilders::enqueueForThemify()
S
68 1 9
CatFolders\Classes\Helpers::AutoOrderInListMode()
S
71 1 5
CatFolders\Install::install()
S
77 1 4
CatFolders\Backend\SettingsPage::adminMenu()
S
65 1 10
CatFolders\Rest\Controllers\BlockController::get_attachments_from_folders()
S
71 1 5
CatFolders\Internals\Modules\MediaMeta::manage_media_columns()
S
75 1 4
CatFolders\Backend\DashboardWidget::__construct()
S
79 1 3
CatFolders\Backend\SettingsPage::page_callback()
S
83 1 5
CatFolders\I18n::__construct()
S
79 1 3
CatFolders\Integrations\MediaLibraryAssistant::table_extranav_actions()
S
77 1 4
CatFolders\Blocks\GalleryBlock::__construct()
S
79 1 3
CatFolders\Classes\Svg::upload_mimes()
S
73 1 5
CatFolders\Internals\WPMedia::preUploadUi()
S
71 1 8
CatFolders\Rest\Controllers\MetaController::permission_callback()
S
80 1 3
CatFolders\Rest\Controllers\PublicAPIController::__construct()
S
80 1 3
CatFolders\Integrations\MediaLibraryAssistant::post_type_validator()
S
77 1 4
CatFolders\Core\Base::__construct()
S
91 1 2
CatFolders\Rest\Controllers\ExportController::get_attachments()
S
71 1 5
CatFolders\Models\FolderModel::unset_attachment()
S
69 1 8
CatFolders\Install::__construct()
S
78 1 3
CatFolders\Rest\Controllers\FolderController::permission_callback()
S
80 1 3
CatFolders\Rest\Controllers\ImportController::get_prefix_option()
S
75 1 4
CatFolders\Integrations\Init::__construct()
S
82 1 3
CatFolders\Integrations\MediaLibraryAssistant::__construct()
S
69 1 6
CatFolders\Install::updatePluginVersion()
S
79 1 3
CatFolders\Internals\Modules\MediaMeta::doHooks()
S
69 1 6
CatFolders\Classes\Vite::base_path()
S
80 1 3
CatFolders\Internals\Modules\MediaMeta::manage_upload_sortable_columns()
S
76 1 4
CatFolders\Rest\Controllers\ExportController::get_csv()
S
68 1 6
CatFolders\Internals\WPMedia::deleteAttachment()
S
81 1 3
CatFolders\Models\FolderModel::updateFolder()
S
71 1 6
CatFolders\Plugin::deactivate()
S
89 1 2
CatFolders\Integrations\PageBuilders::__construct()
S
75 1 4
CatFolders\Models\FolderModel::sort_natural_desc()
S
78 1 3
CatFolders\Rest\Controllers\ImportController::table_exist()
S
75 1 4
CatFolders\Rest\Controllers\ImportController::permission_callback()
S
80 1 3
CatFolders\Models\FolderModel::getFolderFromPostId()
S
68 1 8
CatFolders\Classes\Vite::getManifest()
S
74 1 4
CatFolders\Plugin::__construct()
S
91 1 2
CatFolders\Rest\Controllers\FolderController::update_folder_position()
S
68 1 7
init()
S
76 1 4
CatFolders\Backend\DashboardWidget::wp_dashboard_setup()
S
70 1 7
CatFolders\Rest\Controllers\PublicAPIController::generate_api_key()
S
72 1 5
CatFolders\Models\FolderModel::protected_properties()
S
80 1 3
CatFolders\Rest\Controllers\FolderController::set_settings()
S
66 1 9
CatFolders\Rest\Controllers\FolderController::get_inside_folder_detail()
S
65 1 9
CatFolders\Install::createTables()
S
70 1 6
CatFolders\Models\FolderModel::sort_natural_asc()
S
79 1 3
CatFolders\Rest\Controllers\ImportController::process()
S
63 1 9
CatFolders\Backend\DashboardWidget::add_dashboard_widget()
S
80 1 3
CatFolders\Rest\Controllers\BlockController::permission_callback()
S
82 1 3
CatFolders\Plugin::activate()
S
89 1 2
CatFolders\Classes\Vite::enqueuePreload()
S
69 1 8