90% wc-backorder-split

Code Review | WC Backorder Split

WordPress plugin WC Backorder Split scored90%from 54 tests.

About plugin

  • Plugin page: wc-backorder-split
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Feb 22, 2019
  • Latest release: Jun 9, 2022
  • Number of updates: 22
  • Update frequency: every 54.7 days
  • Top authors: akshayaswaroop (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.26ms] Passed 4 tests

A check of server-side resources used by WC Backorder Split
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.36 ▼0.87
Dashboard /wp-admin3.42 ▲0.0750.64 ▼13.42
Posts /wp-admin/edit.php3.54 ▲0.1756.84 ▲6.16
Add New Post /wp-admin/post-new.php6.00 ▲0.1198.72 ▲3.46
Media Library /wp-admin/upload.php3.35 ▲0.1135.32 ▼2.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WC Backorder Split
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5214.72 ▲0.561.72 ▼0.0644.39 ▲5.37
Dashboard /wp-admin2,204 ▲245.54 ▼0.1190.28 ▲2.7936.74 ▼3.04
Posts /wp-admin/edit.php2,109 ▲92.02 ▲0.0141.08 ▲2.9237.69 ▲5.56
Add New Post /wp-admin/post-new.php1,535 ▼1017.56 ▼5.83669.21 ▲14.9352.31 ▼15.37
Media Library /wp-admin/upload.php1,409 ▲124.23 ▲0.01102.73 ▼12.0643.80 ▼6.76

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: backorder split, backorder, wc backorder split, order split, split

wc-backorder-split/wc-backorder-split.php 92% from 13 tests

The primary PHP file in "WC Backorder Split" version 1.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected691 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6191286619
PO File1162067
CSS1005

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.37
Average class complexity15.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1860.00%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected