84% list-backorders-for-woocommerce

Code Review | List Orders with Backorders for WooCommerce

WordPress plugin List Orders with Backorders for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: list-backorders-f...
  • Plugin version: 2.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Jan 27, 2022
  • Number of updates: 35
  • Update frequency: every 50.6 days
  • Top authors: thehowarde (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,045 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.02MB] [CPU: ▼4.90ms] Passed 4 tests

A check of server-side resources used by List Orders with Backorders for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.18 ▼3.35
Dashboard /wp-admin3.32 ▲0.0249.09 ▼10.25
Posts /wp-admin/edit.php3.37 ▲0.0248.78 ▲1.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.92 ▼3.43
Media Library /wp-admin/upload.php3.24 ▲0.0236.80 ▼2.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by List Orders with Backorders for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.35 ▼0.001.71 ▼0.1245.43 ▼5.09
Dashboard /wp-admin2,192 ▲125.63 ▲0.0493.39 ▼4.5142.39 ▼1.72
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0439.85 ▲3.3835.86 ▲0.42
Add New Post /wp-admin/post-new.php1,537 ▲1117.91 ▼4.98639.82 ▼43.4471.20 ▲15.38
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0797.15 ▼18.0544.71 ▼7.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/list-backorders-for-woocommerce/includes/list-backorder-admin-callback.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: admin functions, backorders, woocommerce

list-backorders-for-woocommerce/list-backorders-for-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "List Orders with Backorders for WooCommerce" version 2.3.2
84 characters long description:
Get a list of backordered items and orders with backorders from the Woocommerce Tab.

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
No dangerous file extensions were detected1,692 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS21470952
JavaScript457120591
PHP42225149

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/css/DataTables-1.11.4/images/sort_both.png0.20KB0.29KB0.00%
includes/css/DataTables-1.11.4/images/sort_desc.png0.15KB0.25KB0.00%
includes/css/DataTables-1.11.4/images/sort_desc_disabled.png0.14KB0.25KB0.00%
includes/css/DataTables-1.11.4/images/sort_asc.png0.16KB0.25KB0.00%
includes/css/DataTables-1.11.4/images/sort_asc_disabled.png0.14KB0.25KB0.00%