10% clean-up-booster

Code Review | Clean Up Booster - Database Optimizer & Login Security

WordPress plugin Clean Up Booster - Database Optimizer & Login Security scored 10% from 54 tests.

About plugin

  • Plugin page: clean-up-booster
  • Plugin version: 3.0.22
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.3
  • WordPress version: 5.9.2
  • First release: Jan 12, 2016
  • Latest release: Nov 18, 2019
  • Number of updates: 127
  • Update frequency: every 11.4 days
  • Top authors: wordpress-empire (70.87%)contact-banker (29.92%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active / 81,234 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/clean-up-booster/clean-up-booster.php+533
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼2.07MB] [CPU: ▼342.63ms] Passed 4 tests

This is a short check of server-side resources used by Clean Up Booster - Database Optimizer & Login Security
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.214.99 ▼52.12
Dashboard /wp-admin2.32 ▼1.095.03 ▼30.49
Posts /wp-admin/edit.php2.32 ▼1.325.46 ▼37.36
Add New Post /wp-admin/post-new.php2.32 ▼4.655.25 ▼1,250.56
Media Library /wp-admin/upload.php2.32 ▼0.974.02 ▼19.85
/wp-admin/admin.php?page=cub_manage_ip_addresses2.324.73
/wp-admin/admin.php?page=cub_database_scheduled_clean_up2.324.70
/wp-admin/admin.php?page=cub_visitor_logs2.325.03
/wp-admin/admin.php?page=cub_manage_ip_ranges2.324.63
/wp-admin/admin.php?page=cub_add_new_schedule_clean_up2.324.80
/wp-admin/admin.php?page=cub_country_blocks2.324.31
System Information /wp-admin/admin.php?page=cub_system_information2.324.86
WordPress Data /wp-admin/admin.php?page=cub_clean_up_booster2.324.52
/wp-admin/admin.php?page=cub_core_cron_jobs2.325.04
Advance Security /wp-admin/admin.php?page=cub_blocking_options2.324.51

Server storage [IO: ▲1.81MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 112 new files
Database: 3 new tables, 2 new options
New tables
wp_clean_up_booster
wp_clean_up_booster_meta
wp_clean_up_booster_ip_locations
New WordPress options
cub_admin_notice
clean_up_booster_version_number

Browser metrics Passed 4 tests

Checking browser requirements for Clean Up Booster - Database Optimizer & Login Security
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,852 ▲13015.38 ▼0.135.88 ▲0.364.70 ▲2.48
Dashboard /wp-admin2,960 ▲996.14 ▼0.03119.88 ▼14.01181.59 ▼61.85
Posts /wp-admin/edit.php2,724 ▲393.25 ▲0.0167.25 ▲5.51148.12 ▲6.59
Add New Post /wp-admin/post-new.php1,706 ▲1616.10 ▼4.53417.86 ▼29.63232.50 ▲46.71
Media Library /wp-admin/upload.php1,761 ▲645.57 ▲0.07127.19 ▼46.26227.78 ▲29.58
/wp-admin/admin.php?page=cub_manage_ip_addresses1,4053.5173.11197.27
/wp-admin/admin.php?page=cub_database_scheduled_clean_up1,4053.5273.12189.33
/wp-admin/admin.php?page=cub_visitor_logs1,4023.4463.85184.75
/wp-admin/admin.php?page=cub_manage_ip_ranges1,4023.4668.16195.60
/wp-admin/admin.php?page=cub_add_new_schedule_clean_up1,4013.5574.18193.29
/wp-admin/admin.php?page=cub_country_blocks1,3703.5266.67199.20
System Information /wp-admin/admin.php?page=cub_system_information1,4023.5167.84193.95
WordPress Data /wp-admin/admin.php?page=cub_clean_up_booster1,4013.5471.15194.82
/wp-admin/admin.php?page=cub_core_cron_jobs1,4023.5965.88182.55
Advance Security /wp-admin/admin.php?page=cub_blocking_options1,4013.5467.73255.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/clean-up-booster/clean-up-booster.php+533
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 60 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cub_blocking_options
    • > Deprecated in wp-content/plugins/clean-up-booster/clean-up-booster.php+907
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cub_blocking_options
    • > Network (severe)
    http://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #23 (System Information Screen), #24 (Error Logs Screen)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

clean-up-booster/clean-up-booster.php 92% from 13 tests

The main file in "Clean Up Booster - Database Optimizer & Login Security" v. 3.0.22 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin29,023 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP3726481712,982
CSS14301519,206
PO File31,3881,9133,189
JavaScript8294642,205
SVG2001,441

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.40
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions84
▷ Named functions8398.81%
▷ Anonymous functions11.19%
Constants23
▷ Global constants23100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
35 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/global/img/icon.png1.71KB0.97KB▼ 43.44%
assets/global/img/portlet-reload-icon-white.png0.32KB0.35KB0.00%
assets/global/img/ribbon_green_right_top.png4.20KB1.18KB▼ 71.86%
assets/admin/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/admin/images/ui-bg_flat_10_000000_40x100.png0.20KB0.08KB▼ 57.56%