84% woocommerce-remove-all-products

Code Review | WooCommerce Remove All Products

WordPress plugin WooCommerce Remove All Products scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-remov...
  • Plugin version: 8.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2014
  • Latest release: Oct 5, 2023
  • Number of updates: 34
  • Update frequency: every 98.8 days
  • Top authors: Gabriel Reguly (100%)

Code review

54 tests

User reviews

39 reviews

Install metrics

6,000+ active /93,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.07ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Remove All Products
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.93 ▼5.30
Dashboard /wp-admin3.35 ▲0.0053.62 ▼9.96
Posts /wp-admin/edit.php3.40 ▲0.0450.49 ▲3.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.21 ▼6.89
Media Library /wp-admin/upload.php3.27 ▲0.0437.33 ▲1.88

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Remove All Products
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.461.73 ▼0.3041.81 ▼1.72
Dashboard /wp-admin2,206 ▲184.83 ▼0.98103.78 ▼9.4844.96 ▼3.41
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0036.95 ▼1.1436.93 ▲1.16
Add New Post /wp-admin/post-new.php1,542 ▲1318.53 ▲0.32637.74 ▼9.8354.33 ▼5.44
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.0998.26 ▼9.2947.64 ▲0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/woocommerce-remove-all-products/woocommerce-remove-all-products.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: remove, woocommerce, products

woocommerce-remove-all-products/woocommerce-remove-all-products.php 92% from 13 tests

This is the main PHP file of "WooCommerce Remove All Products" version 8.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "3.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin250 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113734250

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin