Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-clean-up-optimizer/wp-cleanup-optimizer.php+576
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.50MB] [CPU: ▼47.51ms] Passed 4 tests
This is a short check of server-side resources used by WP Clean Up Optimizer: Optimize Database & WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.49 ▼0.97 | 6.03 ▼30.29 |
Dashboard /wp-admin | 2.51 ▼0.80 | 6.97 ▼39.29 |
Posts /wp-admin/edit.php | 2.51 ▼0.85 | 7.22 ▼40.51 |
Add New Post /wp-admin/post-new.php | 2.51 ▼3.38 | 7.80 ▼79.94 |
Media Library /wp-admin/upload.php | 2.51 ▼0.72 | 13.01 ▼24.15 |
/wp-admin/admin.php?page=cpo_wizard_optimizer | 2.51 | 6.97 |
/wp-admin/admin.php?page=cpo_live_traffic | 2.51 | 7.10 |
Roles & Capabilities /wp-admin/admin.php?page=cpo_roles_and_capabilities | 2.51 | 8.40 |
Cron Jobs /wp-admin/admin.php?page=cpo_core_jobs | 2.51 | 6.39 |
/wp-admin/admin.php?page=cpo_ip_addresses | 2.51 | 7.02 |
/wp-admin/admin.php?page=cpo_add_new_database_schedule | 2.51 | 7.46 |
/wp-admin/admin.php?page=cpo_schedule_db_optimizer | 2.51 | 6.96 |
Other Settings /wp-admin/admin.php?page=cpo_other_settings | 2.51 | 6.88 |
/wp-admin/admin.php?page=cpo_block_unblock_countries | 2.51 | 8.39 |
/wp-admin/admin.php?page=cpo_message_settings | 2.51 | 6.94 |
Server storage [IO: ▲3.11MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 127 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_clean_up_optimizer |
wp_clean_up_optimizer_ip_locations |
wp_clean_up_optimizer_meta |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
cpo_admin_notice |
wp-cleanup-optimizer-version-number |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Clean Up Optimizer: Optimize Database & WordPress: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 13.23 ▼1.07 | 1.58 ▼0.12 | 35.50 ▼6.04 |
Dashboard /wp-admin | 2,224 ▲36 | 4.93 ▼0.10 | 100.23 ▼17.87 | 75.39 ▲29.12 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 1.96 ▼0.04 | 36.73 ▼3.07 | 33.16 ▼2.80 |
Add New Post /wp-admin/post-new.php | 1,680 ▲147 | 20.18 ▼2.80 | 660.43 ▲11.80 | 66.68 ▲8.74 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.11 ▼0.12 | 92.01 ▼10.32 | 72.38 ▲26.68 |
/wp-admin/admin.php?page=cpo_wizard_optimizer | 1,032 | 3.04 | 61.80 | 42.41 |
/wp-admin/admin.php?page=cpo_live_traffic | 1,034 | 3.18 | 59.67 | 35.97 |
Roles & Capabilities /wp-admin/admin.php?page=cpo_roles_and_capabilities | 1,034 | 3.02 | 40.97 | 36.05 |
Cron Jobs /wp-admin/admin.php?page=cpo_core_jobs | 1,037 | 2.98 | 40.29 | 35.93 |
/wp-admin/admin.php?page=cpo_ip_addresses | 1,031 | 3.09 | 39.27 | 35.72 |
/wp-admin/admin.php?page=cpo_add_new_database_schedule | 1,031 | 3.06 | 40.63 | 35.55 |
/wp-admin/admin.php?page=cpo_schedule_db_optimizer | 1,031 | 2.96 | 38.50 | 33.70 |
Other Settings /wp-admin/admin.php?page=cpo_other_settings | 1,031 | 3.07 | 40.84 | 38.00 |
/wp-admin/admin.php?page=cpo_block_unblock_countries | 1,031 | 3.04 | 38.81 | 35.36 |
/wp-admin/admin.php?page=cpo_message_settings | 1,037 | 3.02 | 41.25 | 37.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-clean-up-optimizer/wp-cleanup-optimizer.php+576
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 60 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cpo_message_settings
- > Deprecated in wp-content/plugins/wp-clean-up-optimizer/wp-cleanup-optimizer.php+891
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cpo_message_settings
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?v=3&libraries=places&key=AIzaSyDOpCmwYFyneS7t5j8d6lNE1kRxL9vzsCI&ver=6.3.1 334:267 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #24 in wp-clean-up-optimizer/assets to your readme.txt
wp-clean-up-optimizer/wp-cleanup-optimizer.php 85% from 13 tests
"WP Clean Up Optimizer: Optimize Database & WordPress" version 4.0.28's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 176 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-clean-up-optimizer.php" instead of "wp-cleanup-optimizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin42,350 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 4,994 | 5,950 | 13,285 |
PHP | 37 | 379 | 914 | 13,094 |
JavaScript | 8 | 2,197 | 7,219 | 8,160 |
CSS | 14 | 231 | 127 | 6,370 |
SVG | 2 | 0 | 0 | 1,441 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 81 | |
▷ Named functions | 81 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/global/img/error.png | 0.21KB | 0.21KB | 0.00% |
assets/admin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
assets/global/img/logo.png | 12.30KB | 5.48KB | ▼ 55.48% |
assets/global/plugins/datatables/media/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/global/img/portlet-collapse-icon.png | 0.26KB | 0.25KB | ▼ 5.20% |