79% disable-dashboard-for-woocommerce

Code Review | Disable Bloat for WordPress & WooCommerce

WordPress plugin Disable Bloat for WordPress & WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: disable-dashboard...
  • Plugin version: 3.4.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Mar 17, 2020
  • Latest release: Sep 19, 2023
  • Number of updates: 191
  • Update frequency: every 6.8 days
  • Top authors: disablebloat (52.36%)ospiotr (48.17%)

Code review

54 tests

User reviews

96 reviews

Install metrics

20,000+ active /351,643 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲5.23MB] [CPU: ▲30.88ms] 75% from 4 tests

This is a short check of server-side resources used by Disable Bloat for WordPress & WooCommerce
It is recommended to improve the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.23MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.94 ▲5.4875.25 ▲27.01
Dashboard /wp-admin8.96 ▲5.6689.27 ▲33.70
Posts /wp-admin/edit.php8.96 ▲5.6083.18 ▲29.07
Add New Post /wp-admin/post-new.php10.06 ▲4.17129.47 ▲33.72
Media Library /wp-admin/upload.php8.96 ▲5.7383.81 ▲47.39
Contact Us /wp-admin/admin.php?page=disable-dashboard-for-woocommerce-contact8.9676.60
Disable Bloat /wp-admin/options-general.php?page=disable-bloat8.9668.80
Upgrade  ➤ /wp-admin/admin.php?page=disable-dashboard-for-woocommerce-pricing8.9682.63
Support Forum /wp-admin/admin.php?page=disable-dashboard-for-woocommerce-wp-support-forum8.9667.43
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius8.9671.83

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 196 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
fs_accounts
theysaidso_admin_options
db_upgraded
can_compress_scripts
fs_active_plugins
widget_recent-posts
fs_debug_mode

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Bloat for WordPress & WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.26 ▼0.091.68 ▼0.1140.44 ▼5.50
Dashboard /wp-admin2,201 ▲245.67 ▲0.1590.22 ▼11.6143.12 ▲0.08
Posts /wp-admin/edit.php2,109 ▲61.99 ▼0.0334.97 ▼2.2732.50 ▼3.69
Add New Post /wp-admin/post-new.php1,533 ▲723.43 ▲0.64701.31 ▲34.1751.84 ▼8.51
Media Library /wp-admin/upload.php1,406 ▲34.23 ▲0.01107.27 ▲1.9347.73 ▲0.65
Contact Us /wp-admin/admin.php?page=disable-dashboard-for-woocommerce-contact1,3282.4844.9849.86
Disable Bloat /wp-admin/options-general.php?page=disable-bloat1,3941.7428.2252.06
Upgrade  ➤ /wp-admin/admin.php?page=disable-dashboard-for-woocommerce-pricing2,0212.7950.69201.80
Support Forum /wp-admin/admin.php?page=disable-dashboard-for-woocommerce-wp-support-forum2,8463.9580.4973.51
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0761.6624.1327.76

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
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/disable-dashboard-for-woocommerce/includes/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • fs_debug_mode
    • can_compress_scripts
    • fs_active_plugins
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • fs_accounts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

disable-dashboard-for-woocommerce/disable-dashboard-for-woocommerce.php 92% from 13 tests

"Disable Bloat for WordPress & WooCommerce" version 3.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.5")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected36,673 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,39217,62036,343
JavaScript54864241
CSS1412073
XML13016

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity93.38
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,259
▷ Static methods19815.73%
▷ Public methods86969.02%
▷ Protected methods171.35%
▷ Private methods37329.63%
Functions269
▷ Named functions26397.77%
▷ Anonymous functions62.23%
Constants146
▷ Global constants9967.81%
▷ Class constants4732.19%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
includes/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/disable-dashboard-for-woocommerce.png2.70KB2.58KB▼ 4.27%