Code Analysis: Watchful 1.5.3

Function Rating Maintainability Complexity Lines of code
Watchful\Controller\Plugins::update_plugin()
B
41 17 53
Watchful\Audit\Files\FilesScanner::check_signatures()
A
43 14 45
Watchful\Controller\Plugins::get_all_plugins()
A
43 14 44
Watchful\Helpers\WatchfulEncrypt::aes_encrypt()
A
42 13 48
Watchful\Helpers\BackupPlugins\AkeebaBackupPlugin::get_akeeba_secret_key()
A
46 12 41
Watchful\Controller\Plugins::install_plugin()
A
45 12 39
Watchful\Helpers\Files::get_zip_directories()
A
44 10 46
Watchful\Audit\Files\FilesScanner::need_to_check_this_file()
A
39 7 74
Watchful\Helpers\WatchfulEncrypt::key_expansion()
A
49 9 31
Watchful\Controller\Backups::register_routes()
A
35 1 146
Watchful\Audit\Files\Tools::rmdir()
A
53 9 23
Watchful\Controller\Core::upgrade_core()
A
48 8 31
Watchful\ExceptionHandler::exception()
A
52 8 24
Watchful\Helpers\BackupPluginHelper::get_backup_list()
A
57 8 18
Watchful\Helpers\Sso\UserManager::get_user_role_by_group_id()
S
59 8 15
Watchful\Controller\Themes::install_theme()
S
51 7 27
Watchful\Controller\Themes::update_theme()
S
48 6 32
Watchful\Controller\Core::get_files_properties()
S
49 6 32
Watchful\Helpers\Users::get_administrators_user()
S
49 6 30
Watchful\Main::watchful_page_posted()
S
59 7 12
Watchful\Audit\Files\FilesScanner::auditFoldersPermissions()
S
50 6 26
Watchful\Controller\Files::register_routes()
S
39 1 99
Watchful\Audit\Tests\HasThemesToUpdate::get_update_list()
S
53 6 23
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::step_backup()
S
55 6 22
Watchful\Audit\Tests\HasWpVersion::run()
S
54 6 21
Watchful\Audit\Tests\RobotsTxt::run()
S
54 6 21
Watchful\Helpers\Sso\Client::parse_error_response()
S
56 6 19
Watchful\Helpers\BackupPlugins\Ai1wmBackupPlugin::get_last_backup_date()
S
56 6 18
Watchful\Audit\Tests\HasPhpVersion::run()
S
57 6 16
Watchful\Helpers\Sso\Authenticator::authenticate()
S
60 6 13
Watchful\Audit\Files\RecursiveListing::get_structure()
S
51 5 28
Watchful\Controller\Plugins::register_routes()
S
41 1 84
Watchful\Audit\Files\FilesScanner::auditFilesPermissions()
S
52 5 24
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::step_database_recursion()
S
53 5 24
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::get_backup_list()
S
54 5 21
Watchful\Controller\Themes::get_themes()
S
47 4 34
Watchful\Helpers\Connection::get_hash()
S
54 5 19
Watchful\Audit\Files\Tools::write()
S
55 5 19
Watchful\Helpers\Sso\Client::perform_api_authentication()
S
55 5 18
Watchful\Main::watchful_admin_notice()
S
58 5 17
Watchful\Audit\Tests\HasInstallOnSubdirectory::run()
S
57 5 16
Watchful\Helpers\Authentification::check_key()
S
57 5 16
Watchful\Helpers\BackupPluginHelper::has_active_backup_plugin()
S
60 5 15
Watchful\Audit\Tests\HasBadKeys::get_bad_keys()
S
58 5 14
Watchful\Init::activation()
S
50 4 29
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::get_next_step()
S
61 5 14
Watchful\Helpers\Connection::get_curl()
S
51 4 26
Watchful\Audit\Files\Integrity::auditCoreIntegrity()
S
51 4 25
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::step_incremental_backup()
S
53 4 24
Watchful\Helpers\WatchfulEncrypt::cipher()
S
53 4 23
Watchful\Audit\Files\FilesScanner::auditMalwareScanner()
S
54 4 21
Watchful\Controller\Scanner::auditConfiguration()
S
55 4 19
Watchful\Helpers\BackupPlugins\AkeebaBackupPlugin::get_last_backup_date()
S
56 4 19
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::step_remote_storage()
S
55 4 19
Watchful\Controller\Backups::execute_all_in_one_migration_backup()
S
56 4 18
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::__construct()
S
59 4 15
Watchful\Audit\Files\Integrity::get_memory_limit_in_bytes()
S
59 4 15
Watchful\Audit\Files\Integrity::check_integrity_file()
S
59 4 15
Watchful\Audit\Files\Tools::is_valid_permission()
S
64 5 9
Watchful\Controller\Plugins::get_plugin_path()
S
63 5 9
Watchful\Controller\Themes::download_link_from_zip()
S
59 4 15
Watchful\Audit\Tests\BruteforceAdmin::check_passwords()
S
58 4 15
Watchful\Settings::sanitize()
S
63 5 10
Watchful\Helpers\WatchfulEncrypt::mix_columns()
S
58 4 15
Watchful\Audit\Files\RecursiveListing::get_non_core_files()
S
59 4 14
Watchful\Helpers\BackupPluginHelper::get_last_backup_date()
S
61 4 13
Watchful\Helpers\FSPermissions::is_higher()
S
60 4 13
Watchful\Skins\SkinCoreUpgrader::feedback()
S
61 4 13
Watchful\Skins\SkinPluginUpgrader::feedback()
S
61 4 13
Watchful\Skins\SkinThemeUpgrader::feedback()
S
61 4 13
Watchful\Helpers\Authentification::check()
S
62 4 12
Watchful\Helpers\WatchfulEncrypt::shift_rows()
S
61 4 12
Watchful\Init::plugins_loaded()
S
62 4 11
Watchful\Helpers\Authentification::validate_timestamp()
S
62 4 11
Watchful\Audit\Tests\HasWPHtaccess::run()
S
61 4 11
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::validate_parameters()
S
62 4 11
Watchful\Settings::create_admin_page()
S
54 3 25
watchful_class_loader()
S
55 3 20
Watchful\Audit\Tests\IsUploadBrowsable::run()
S
54 3 20
Watchful\Init::admin_init()
S
57 3 19
Watchful\Helpers\Sso\UserManager::upsert_wp_user()
S
57 3 17
Watchful\Controller\Themes::register_routes()
S
47 1 46
Watchful\Controller\Plugins::download_link_from_slug()
S
58 3 15
Watchful\Controller\Plugins::is_installed()
S
64 4 9
Watchful\Audit\Tests\HasDeactivatedThemes::run()
S
67 4 7
Watchful\Helpers\BackupPluginHelper::__construct()
S
71 4 5
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::update_action()
S
66 4 8
Watchful\Controller\Themes::download_link_from_slug()
S
59 3 14
Watchful\ShutdownHandler::shutdown()
S
59 3 14
Watchful\Controller\Plugins::activate_plugin()
S
60 3 13
Watchful\Audit\Tests\HasDeactivatedPlugins::get_inactive_plugins()
S
60 3 13
Watchful\Audit\Tests\HasDeactivatedThemes::get_inactive_theme()
S
60 3 13
Watchful\Helpers\Sso\UserManager::get_wp_user_by_data()
S
61 3 13
Watchful\Controller\Validation::validate()
S
51 2 27
Watchful\Audit\AuditProcess::calculate_max_execution_time()
S
63 3 11
Watchful\Settings::page_init()
S
49 1 41
Watchful\Helpers\WatchfulEncrypt::urs()
S
62 3 11
Watchful\Controller\Plugins::modify_mapping_plugin()
S
54 2 21
Watchful\Audit\Tests\HasBadKeys::run()
S
58 2 17
Watchful\Controller\Core::get_files_to_check()
S
57 2 17
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::step_file_recursion()
S
57 2 16
Watchful\Audit\Files\Tools::chmod()
S
63 3 10
Watchful\Audit\Files\Tools::__construct()
S
69 3 6
Watchful\Controller\Core::get_server_version()
S
66 3 9
Watchful\Controller\Core::get_latest_update()
S
64 3 10
Watchful\Controller\Files::chmod()
S
64 3 10
Watchful\Controller\Files::write()
S
63 3 10
Watchful\Audit\Tests\BruteforceSql::is_password_weak()
S
68 3 8
Watchful\Audit\Tests\BruteforceSql::run()
S
69 3 7
Watchful\Audit\Audit::checkFileAccess()
S
64 3 9
Watchful\Audit\Tests\HasConfigChmod::run()
S
62 3 10
Watchful\Controller\Plugins::get_slug_from_list()
S
68 3 8
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::get_last_backup_date()
S
65 3 9
Watchful\Exception::__construct()
S
67 3 7
Watchful\Helpers\BackupPluginHelper::has_akeeba_backup()
S
67 3 9
Watchful\Helpers\WatchfulEncrypt::sub_bytes()
S
66 3 8
Watchful\Helpers\FSPermissions::__construct()
S
65 3 9
Watchful\Settings::watchful_disable_timestamp_callback()
S
69 3 6
Watchful\Helpers\ResponseFormatter::add_response_delimiters()
S
70 3 6
Watchful\Audit\Tests\IsDebugEnabled::run()
S
71 3 6
Watchful\Audit\Tests\IsScriptDebugEnabled::run()
S
71 3 6
Watchful\Helpers\WatchfulEncrypt::add_round_key()
S
65 3 8
Watchful\Settings::watchful_maintenance_callback()
S
69 3 6
Watchful\Settings::watchful_sso_callback()
S
69 3 6
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::get_xcloner_main_class_path()
S
65 3 9
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::get_xcloner_container_instance()
S
66 3 9
Watchful\Controller\Backups::step_all_in_one_migration_backup()
S
59 2 15
Watchful\Controller\Backups::status_all_in_one_migration_backup()
S
59 2 15
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::step_cleanup()
S
63 3 10
Watchful\Controller\Scanner::register_routes()
S
52 1 29
Watchful\Audit\Tests\HasUnnecessaryLoginInfo::get_login_body()
S
59 2 14
Watchful\Audit\Audit::check_value()
S
59 2 14
Watchful\Audit\Tests\HasValidWpLocation::run()
S
62 2 13
Watchful\Audit\Tests\HasUnnecessaryLoginInfo::run()
S
61 2 12
Watchful\Init::wordpress_init()
S
61 2 12
Watchful\Audit\Audit::loadPasswords()
S
62 2 11
Watchful\Controller\Tests::register_routes()
S
55 1 24
Watchful\Settings::print_watchful_form()
S
56 1 23
Watchful\Routes::register_routes()
S
56 1 20
Watchful\Helpers\WatchfulEncrypt::rot_word()
S
66 2 8
Watchful\Skins\SkinCoreUpgrader::error()
S
69 2 7
Watchful\Controller\Plugins::download_link_from_zip()
S
69 2 7
Watchful\Audit\Tests\HasDeactivatedPlugins::run()
S
66 2 8
Watchful\Controller\Scanner::audit()
S
64 2 9
Watchful\Controller\Backups::step_xcloner_backup()
S
65 2 9
Watchful\Audit\Tests\HasPhpVersion::get_headers()
S
66 2 8
Watchful\Controller\Core::update_core()
S
66 2 8
Watchful\Audit\Tests\HasThemesToUpdate::run()
S
69 2 7
Watchful\Audit\Tests\HasWpVersion::get_body()
S
66 2 8
Watchful\Helpers\FSPermissions::from_path()
S
68 2 6
Watchful\Controller\Backups::list_all_in_one_migration_backup()
S
68 2 7
Watchful\Audit\Tests\RobotsTxt::loadSignatures()
S
65 2 9
Watchful\Controller\Core::get_status()
S
64 2 9
Watchful\Skins\SkinPluginUpgrader::error()
S
69 2 7
Watchful\Controller\Core::get_latest_backup_info()
S
73 2 5
Watchful\Controller\Files::read()
S
68 2 7
Watchful\Settings::watchful_secret_key_callback()
S
70 2 6
Watchful\Audit\Tests\HasDBPrefix::run()
S
64 2 9
Watchful\Helpers\InstalledPlugins::has()
S
66 2 8
Watchful\Controller\Files::delete()
S
68 2 7
Watchful\Audit\Tests\BruteforceAdmin::run()
S
69 2 7
Watchful\Controller\Plugins::update_from_zip()
S
66 2 8
Watchful\Skins\SkinThemeUpgrader::error()
S
69 2 7
Watchful\Helpers\Sso\UserManager::get_existing_wp_user()
S
68 2 7
Watchful\Controller\Core::get_wp_version()
S
71 2 6
Watchful\Audit\Tests\HasDeactivatedPlugins::__construct()
S
70 2 6
Watchful\Audit\Files\Tools::delete()
S
68 2 8
Watchful\Helpers\WatchfulEncrypt::sub_word()
S
70 2 6
Watchful\Helpers\Sso\Authenticator::__construct()
S
69 2 6
Watchful\Controller\Core::register_routes()
S
61 1 14
Watchful\Audit\Files\FilesScanner::generate_regex()
S
62 1 13
Watchful\Helpers\Authentification::get_arguments()
S
63 1 12
Watchful\Controller\Validation::register_routes()
S
62 1 12
Watchful\Helpers\AppAlerts::getAppAlerts()
S
61 1 12
Watchful\Routes::authentification()
S
63 1 11
Watchful\Controller\Core::remember_wp_version()
S
79 1 3
Watchful\Audit\AuditProcess::__construct()
S
76 1 4
Watchful\Helpers\Sso\Client::hash_secret_key()
S
79 1 3
Watchful\Helpers\FSPermissions::get_unix_full()
S
82 1 3
Watchful\Skins\SkinThemeUpgrader::after()
S
98 1 1
Watchful\Exception::getData()
S
82 1 3
Watchful\Controller\Backups::list_xcloner_backup()
S
80 1 3
Watchful\Helpers\Connection::get_passwords()
S
67 1 8
Watchful\Audit\Tests\HasUpgradeFile::run()
S
80 1 3
Watchful\Settings::init()
S
75 1 4
Watchful\Controller\Scanner::auditMalwareScanner()
S
73 1 5
Watchful\Skins\SkinThemeUpgrader::footer()
S
98 1 1
Watchful\Audit\ScannerResponse::send_ok()
S
79 1 3
Watchful\Audit\Audit::__construct()
S
74 1 5
Watchful\Audit\AuditProcess::have_time()
S
75 1 4
Watchful\Controller\Tests::test()
S
80 1 3
Watchful\Skins\SkinCoreUpgrader::header()
S
98 1 1
Watchful\Audit\Tests\HasReadme::run()
S
80 1 3
Watchful\Helpers\Connection::get_info()
S
70 1 6
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::get_available_remote_storage()
S
81 1 3
Watchful\Settings::print_activation_sucessful()
S
72 1 7
Watchful\Audit\Files\Tools::read()
S
76 1 4
Watchful\Audit\Files\FilesScanner::__construct()
S
66 1 8
Watchful\Skins\SkinPluginUpgrader::before()
S
98 1 1
Watchful\Skins\SkinThemeUpgrader::header()
S
98 1 1
Watchful\Helpers\Sso\Client::hash_password()
S
78 1 3
Watchful\Settings::addPluginPage()
S
67 1 9
Watchful\Controller\Scanner::__construct()
S
81 1 3
Watchful\Helpers\Files::file_exists()
S
71 1 5
Watchful\Controller\Core::get_versions()
S
65 1 9
Watchful\Controller\Scanner::init_audit()
S
80 1 3
Watchful\Controller\Backups::__construct()
S
80 1 3
Watchful\Audit\Tests\HasInstallOnSubdirectory::isAWordpressConfigFile()
S
74 1 4
Watchful\Skins\SkinPluginUpgrader::header()
S
98 1 1
Watchful\Helpers\Sso\Client::encrypt_password()
S
78 1 3
Watchful\Audit\AuditProcess::get_max_execution_time()
S
82 1 3
Watchful\Helpers\FSPermissions::get_unix()
S
79 1 3
Watchful\Helpers\BackupPlugins\AkeebaBackupPlugin::get_backup_list()
S
82 1 3
Watchful\Main::init()
S
72 1 5
Watchful\Controller\Core::check_filesystem_access()
S
71 1 6
Watchful\Helpers\InstalledPlugins::has_active()
S
80 1 3
Watchful\Controller\Scanner::auditFilesPermissions()
S
73 1 5
Watchful\Skins\SkinPluginUpgrader::after()
S
98 1 1
Watchful\Helpers\Authentification::__construct()
S
71 1 6
Watchful\Skins\SkinThemeUpgrader::before()
S
98 1 1
Watchful\Helpers\BackupPlugins\Ai1wmBackupPlugin::get_backup_list()
S
81 1 3
Watchful\Controller\Scanner::auditFoldersPermissions()
S
73 1 5
Watchful\Helpers\BackupPlugins\XClonerBackupPlugin::start_backup()
S
70 1 7
Watchful\Controller\Backups::data_xcloner()
S
74 1 5
Watchful\Audit\Tests\IsDBDebugEnabled::run()
S
76 1 4
Watchful\Audit\Files\RecursiveListing::clear_path_cache()
S
80 1 3
Watchful\Audit\AuditProcess::have_run()
S
80 1 3
Watchful\Audit\Tests\HasInstallOnSubdirectory::__construct()
S
73 1 5
Watchful\Skins\SkinPluginUpgrader::footer()
S
98 1 1
Watchful\Audit\ScannerResponse::send_unknow()
S
79 1 3
Watchful\Audit\Tests\HasWpVersion::get_meta_tags()
S
67 1 7
Watchful\Settings::print_section_info()
S
79 1 3
Watchful\Skins\SkinCoreUpgrader::before()
S
98 1 1
Watchful\Audit\AuditProcess::microtime_float()
S
74 1 4
Watchful\Skins\SkinCoreUpgrader::after()
S
98 1 1
Watchful\Helpers\Connection::get_signatures()
S
64 1 10
Watchful\Skins\SkinCoreUpgrader::footer()
S
98 1 1
Watchful\Helpers\Sso\Client::__construct()
S
72 1 5
Watchful\Controller\Scanner::auditCoreIntegrity()
S
73 1 5
Watchful\Audit\Tests\HasWPAdminUser::run()
S
79 1 3
Watchful\Controller\Plugins::do_update()
S
70 1 6
Watchful\Controller\Core::get_db_version()
S
77 1 4
Watchful\Audit\ScannerResponse::get_results()
S
71 1 6
Watchful\Main::__construct()
S
98 1 1
Watchful\Helpers\ResponseFormatter::format()
S
79 1 3
Watchful\Audit\ScannerResponse::send_ko()
S
79 1 3
Watchful\Controller\Backups::execute_xcloner_backup()
S
81 1 3
Watchful\Controller\Tests::error()
S
79 1 3
Watchful\ShutdownHandler::__construct()
S
80 1 3
Watchful\ExceptionHandler::__construct()
S
80 1 3
Watchful\Controller\Plugins::get_slug_from_zip()
S
73 1 5
Watchful\Init::uninstall()
S
80 1 3
Watchful\Audit\Tests\RobotsTxt::__construct()
S
77 1 4