83% wuco-wp-ultimate-cleanup-optimization

Code Review | WUCO - WP Ultimate Cleanup & Optimization

WordPress plugin WUCO - WP Ultimate Cleanup & Optimization scored83%from 54 tests.

About plugin

  • Plugin page: wuco-wp-ultimate-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: May 7, 2015
  • Number of updates: 5
  • Update frequency: every 4.6 days
  • Top authors: pranacoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,064 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.52ms] Passed 4 tests

Analyzing server-side resources used by WUCO - WP Ultimate Cleanup & Optimization
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.59 ▼7.10
Dashboard /wp-admin3.43 ▲0.1249.21 ▼5.96
Posts /wp-admin/edit.php3.54 ▲0.1854.58 ▲3.55
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.22 ▼5.94
Media Library /wp-admin/upload.php3.35 ▲0.1239.87 ▲0.94

Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
wuco_version
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WUCO - WP Ultimate Cleanup & Optimization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.70 ▲0.361.86 ▼0.0742.22 ▼2.50
Dashboard /wp-admin2,210 ▲335.59 ▼0.0394.82 ▲3.8246.01 ▲2.79
Posts /wp-admin/edit.php2,121 ▲212.02 ▲0.0240.34 ▲0.4840.11 ▲3.68
Add New Post /wp-admin/post-new.php1,544 ▲1823.31 ▲0.38681.76 ▼50.9965.07 ▲9.04
Media Library /wp-admin/upload.php1,421 ▲214.17 ▲0.01106.84 ▼0.8047.85 ▼0.58

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • wuco_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wuco-wp-ultimate-cleanup-optimization/lib/wuco-admin-panel.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wuco-wp-ultimate-cleanup-optimization/templates/wuco-about.php:1
    • > PHP Warning
      Use of undefined constant WUCO_PATH - assumed 'WUCO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wuco-wp-ultimate-cleanup-optimization/lib/wuco-admin-panel.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wuco-wp-ultimate-cleanup-optimization/lib/wuco-database-cleanup.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wuco-wp-ultimate-cleanup-optimization/templates/wuco-dashboard.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (WUCO Admin Panel), #2 (Either run cleanup or schedule it for later), #3 (Monitor the plugin activity)
You can look at the official readme.txt

wuco-wp-ultimate-cleanup-optimization/index.php 92% from 13 tests

The main PHP script in "WUCO - WP Ultimate Cleanup & Optimization" version 2.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wuco-wp-ultimate-cleanup-optimization.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin855 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9181103597
CSS100193
JavaScript122065

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity34.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected