84% woo-backorder-manager

Code Review | WooCommerce Backorder Manager

WordPress plugin WooCommerce Backorder Manager scored84%from 54 tests.

About plugin

  • Plugin page: woo-backorder-man...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.9-6.4
  • WordPress version: 6.3.1
  • First release: Apr 13, 2017
  • Latest release: Nov 22, 2023
  • Number of updates: 85
  • Update frequency: every 28.4 days
  • Top authors: jeffrey-wp (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /15,246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WooCommerce Backorder Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.00 ▼9.93
Dashboard /wp-admin3.35 ▲0.0046.50 ▼15.93
Posts /wp-admin/edit.php3.40 ▲0.0447.09 ▼4.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.37 ▼20.44
Media Library /wp-admin/upload.php3.28 ▲0.0433.21 ▼1.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Backorder Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5014.25 ▼0.141.69 ▼0.1444.51 ▲1.02
Dashboard /wp-admin2,205 ▲275.66 ▼0.0292.02 ▼18.6540.32 ▼6.15
Posts /wp-admin/edit.php2,108 ▲82.07 ▲0.0738.83 ▼1.3336.81 ▲2.41
Add New Post /wp-admin/post-new.php1,533 ▲423.29 ▼0.02622.31 ▼43.3041.69 ▼13.47
Media Library /wp-admin/upload.php1,410 ▲134.13 ▼0.16100.38 ▲3.2546.15 ▲4.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-backorder-manager/include/csv-export-orders.php
    • > /wp-content/plugins/woo-backorder-manager/include/csv-export-products.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

woo-backorder-manager/woo-backorder-manager.php 92% from 13 tests

The primary PHP file in "WooCommerce Backorder Manager" version 2.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "3.0.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin483 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6168177483

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.33
▷ Minimum class complexity13.00
▷ Maximum class complexity17.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2492.31%
▷ Protected methods00.00%
▷ Private methods27.69%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin