73% wc-remove-tabs-and-fields

Code Review | Remove tabs and fields from WooCommerce

WordPress plugin Remove tabs and fields from WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: wc-remove-tabs-an...
  • Plugin version: 1.69
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 6.3.1
  • First release: Dec 20, 2018
  • Latest release: Jul 30, 2022
  • Number of updates: 92
  • Update frequency: every 14.3 days
  • Top authors: itasksoftware (44.57%)ttodua (40.22%)puvoxsoftware (17.39%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /4,491 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲2.38MB] [CPU: ▲15.44ms] Passed 4 tests

An overview of server-side resources used by Remove tabs and fields from WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.88 ▲2.4169.58 ▲25.04
Dashboard /wp-admin5.69 ▲2.3873.80 ▲14.29
Posts /wp-admin/edit.php5.74 ▲2.3869.22 ▲15.78
Add New Post /wp-admin/post-new.php8.27 ▲2.38111.37 ▲13.21
Media Library /wp-admin/upload.php5.61 ▲2.3858.16 ▲18.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_wc_remove_tabs_and_fields__errors_log
New WordPress options
wc-remove-tabs-and-fields
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove tabs and fields from WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.31 ▼0.232.31 ▲0.3343.26 ▼3.65
Dashboard /wp-admin2,198 ▲215.62 ▼0.0596.41 ▲5.0049.12 ▲8.02
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0435.41 ▼5.5431.58 ▼7.08
Add New Post /wp-admin/post-new.php1,529 ▲123.29 ▲0.20647.09 ▼3.9154.16 ▲7.90
Media Library /wp-admin/upload.php1,406 ▲34.19 ▼0.01100.68 ▲0.6247.35 ▲6.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_wc_remove_tabs_and_fields__errors_log
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • wc-remove-tabs-and-fields
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/wc-remove-tabs-and-fields/library_wp.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

wc-remove-tabs-and-fields/index.php 85% from 13 tests

The entry point to "Remove tabs and fields from WooCommerce" version 1.69 is a PHP file that has certain tags in its header comment area
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 ("wc-remove-tabs-and-fields.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 142 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected4,283 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31,4065,1744,283

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,076)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity358.60
▷ Minimum class complexity21.00
▷ Maximum class complexity1,076.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods863
▷ Static methods10211.82%
▷ Public methods85599.07%
▷ Protected methods00.00%
▷ Private methods80.93%
Functions117
▷ Named functions00.00%
▷ Anonymous functions117100.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
6 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/tabs_on_editor - orig.png9.33KB5.02KB▼ 46.16%
assets/fields_on_checkout - orig.png95.71KB31.60KB▼ 66.98%
assets/fields_on_checkout.png108.47KB33.36KB▼ 69.25%
assets/tabs_on_editor.png6.95KB3.71KB▼ 46.63%
assets/product_types.png5.93KB3.46KB▼ 41.78%