83% wp-cleanfix

Code Review | WP CleanFix

WordPress plugin WP CleanFix scored 83% from 54 tests.

About plugin

  • Plugin page: wp-cleanfix
  • Plugin version: 5.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Mar 1, 2010
  • Latest release: Oct 20, 2021
  • Number of updates: 150
  • Update frequency: every 28.4 days
  • Top authors: gfazioli (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active / 175,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲8.95ms] Passed 4 tests

Server-side resources used by WP CleanFix
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1854.92 ▲12.35
Dashboard /wp-admin3.49 ▲0.1956.10 ▲8.60
Posts /wp-admin/edit.php3.60 ▲0.2563.19 ▲14.28
Add New Post /wp-admin/post-new.php6.07 ▲0.1897.52 ▲0.56
Media Library /wp-admin/upload.php3.41 ▲0.1851.77 ▲19.86
Tools /wp-admin/admin.php?page=wpcleanfix_13.5455.49
CleanFix /wp-admin/admin.php?page=wp_cleanfix_slug_menu3.4545.41
Settings /wp-admin/admin.php?page=wpcleanfix_settings3.4447.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 230 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
wp_cleanfix_slug

Browser metrics Passed 4 tests

WP CleanFix: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲12113.68 ▼0.702.18 ▲0.5043.20 ▼1.70
Dashboard /wp-admin2,237 ▲525.00 ▼0.88110.06 ▲4.2039.91 ▼4.25
Posts /wp-admin/edit.php2,120 ▲312.03 ▲0.0539.96 ▼0.8135.10 ▼1.47
Add New Post /wp-admin/post-new.php1,558 ▲2123.19 ▲5.00666.98 ▲56.0650.46 ▼3.79
Media Library /wp-admin/upload.php1,422 ▲314.22 ▲0.0099.03 ▲0.8042.11 ▼0.04
Tools /wp-admin/admin.php?page=wpcleanfix_11,3042.0528.0529.20
CleanFix /wp-admin/admin.php?page=wp_cleanfix_slug_menu2,5972.2544.4451.27
Settings /wp-admin/admin.php?page=wpcleanfix_settings9302.0424.5826.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • wp_cleanfix_slug
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 52× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Modules\\Test' not found in wp-content/plugins/wp-cleanfix/plugin/Modules/Posts/PostsWithoutUserTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\WPBones\\Support\\ServiceProvider' not found in wp-content/plugins/wp-cleanfix/plugin/Providers/WPCleanFixModulesProviders.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Http\\Controllers\\Controller' not found in wp-content/plugins/wp-cleanfix/plugin/Http/Controllers/SettingsController.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Modules\\Module' not found in wp-content/plugins/wp-cleanfix/plugin/Modules/Comments/CommentsModule.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Modules\\Test' not found in wp-content/plugins/wp-cleanfix/plugin/Modules/Users/OrphanUserMetaTest.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Modules\\Test' not found in wp-content/plugins/wp-cleanfix/plugin/Modules/Taxonomies/ConsistentTermsTaxonomiesTest.php:7
    • > PHP Fatal error
      Trait 'WPCleanFix\\WPBones\\Support\\Traits\\HasAttributes' not found in wp-content/plugins/wp-cleanfix/vendor/wpbones/wpbones/src/Html/HtmlTag.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Modules\\Module' not found in wp-content/plugins/wp-cleanfix/plugin/Modules/Users/UsersModule.php:7
    • > PHP Fatal error
      Trait 'WPCleanFix\\WPBones\\Support\\Traits\\HasAttributes' not found in wp-content/plugins/wp-cleanfix/vendor/wpbones/wpbones/src/Console/Command.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WPCleanFix\\Modules\\Test' not found in wp-content/plugins/wp-cleanfix/plugin/Modules/Options/ExpiredTransientTest.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
You can look at the official readme.txt

wp-cleanfix/index.php 77% from 13 tests

The main PHP file in "WP CleanFix" ver. 5.5.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-cleanfix.php" instead of "index.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("localization")
  • Domain Path: The domain path must begin with a forward slash character ("/localization")

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
Good job! No executable or dangerous file extensions detected12,730 lines of code in 180 files:
LanguageFilesBlank linesComment linesLines of code
PHP1352,6433,8849,206
PO File2335442936
CSS171146908
JavaScript7155152522
Markdown81980441
LESS55618360
JSON600357

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.61
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces34
Interfaces2
Traits1
Classes93
▷ Abstract classes1516.13%
▷ Concrete classes7883.87%
▷ Final classes11.28%
Methods540
▷ Static methods6812.59%
▷ Public methods45884.81%
▷ Protected methods5510.19%
▷ Private methods275.00%
Functions29
▷ Named functions1448.28%
▷ Anonymous functions1551.72%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
13 compressed PNG files occupy 0.35MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png41.20KB42.66KB0.00%
assets/screenshot-6.png17.91KB18.58KB0.00%
assets/screenshot-5.png28.18KB29.34KB0.00%
assets/screenshot-11.png35.72KB36.92KB0.00%
assets/screenshot-4.png54.59KB57.66KB0.00%