84% bulk-orders-remover-for-woocommerce

Code Review | Bulk Orders Remover for WooCommerce

WordPress plugin Bulk Orders Remover for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: bulk-orders-remov...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2019
  • Latest release: Nov 21, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: webgp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.56ms] Passed 4 tests

Analyzing server-side resources used by Bulk Orders Remover for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▲1.13
Dashboard /wp-admin3.31 ▲0.0053.69 ▲1.39
Posts /wp-admin/edit.php3.36 ▲0.0050.46 ▲2.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.43 ▼10.80
Media Library /wp-admin/upload.php3.23 ▲0.0038.89 ▲2.48

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
borfw_clean_frequency
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Orders Remover for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.021.72 ▼0.0438.55 ▼6.10
Dashboard /wp-admin2,198 ▲215.62 ▲0.0886.81 ▼14.9040.67 ▼2.65
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0239.66 ▲2.6934.89 ▼3.05
Add New Post /wp-admin/post-new.php1,528 ▲223.17 ▲0.17668.60 ▼36.5359.05 ▼6.89
Media Library /wp-admin/upload.php1,394 ▼64.13 ▼0.1098.94 ▼23.2345.91 ▼10.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function FPWD\\Bulk_Orders_Remover\\trailingslashit() in wp-content/plugins/bulk-orders-remover-for-woocommerce/classes/Admin_Options.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: orders, optimize database, clean, bulk remove, woocommerce

bulk-orders-remover-for-woocommerce/bulk-orders-remover-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Bulk Orders Remover for WooCommerce" version 1.0
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin1,055 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10198370909
PO File1272979
JavaScript1241366
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.67
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods63
▷ Static methods46.35%
▷ Public methods5993.65%
▷ Protected methods00.00%
▷ Private methods46.35%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin