84% woocommerce-filter-orders-by-product

Code Review | WooCommerce Filter Orders by Product

WordPress plugin WooCommerce Filter Orders by Product scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-filte...
  • Plugin version: 3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Aug 20, 2023
  • Number of updates: 32
  • Update frequency: every 91.6 days
  • Top authors: kowsar89 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

5,000+ active /34,692 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WooCommerce Filter Orders by Product
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.67 ▼1.90
Dashboard /wp-admin3.31 ▲0.0144.35 ▼3.00
Posts /wp-admin/edit.php3.36 ▲0.0048.33 ▲5.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.18 ▲0.16
Media Library /wp-admin/upload.php3.23 ▲0.0034.97 ▼3.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Filter Orders by Product
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.511.75 ▲0.1242.79 ▼1.80
Dashboard /wp-admin2,209 ▲304.83 ▼1.04110.43 ▼6.5541.79 ▼6.02
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0240.07 ▼1.0337.24 ▼0.32
Add New Post /wp-admin/post-new.php1,547 ▲2817.93 ▼5.37653.82 ▲43.8770.37 ▲20.58
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0598.11 ▼9.5240.98 ▼3.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function flyoutapps\\wfobpp\\add_action() in wp-content/plugins/woocommerce-filter-orders-by-product/inc/init.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'flyoutapps\\wfobpp\\Filter_By' not found in wp-content/plugins/woocommerce-filter-orders-by-product/inc/filter-by-category.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'flyoutapps\\wfobpp\\Filter_By' not found in wp-content/plugins/woocommerce-filter-orders-by-product/inc/filter-by-product.php:10

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 Passed 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: filter, product, admin, order, woocommerce

woocommerce-filter-orders-by-product/woocommerce-filter-orders-by-product.php Passed 13 tests

The main PHP script in "WooCommerce Filter Orders by Product" version 3.3 is automatically included on every request by WordPress
73 characters long description:
This plugin lets you filter the WooCommrce Orders by any specific product

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin158 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP55448158

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.20
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes125.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods15.56%
▷ Private methods15.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin