78% boxful-fulfillment

Code Review | BOXFUL電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce

WordPress plugin BOXFUL電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: boxful-fulfillment
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.2
  • WordPress version: 6.3.1
  • First release: May 16, 2021
  • Latest release: Feb 20, 2023
  • Number of updates: 40
  • Update frequency: every 16.1 days
  • Top authors: boxfultw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by BOXFUL電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.71 ▲2.98
Dashboard /wp-admin3.54 ▲0.2056.67 ▼2.56
Posts /wp-admin/edit.php3.59 ▲0.2452.95 ▲4.04
Add New Post /wp-admin/post-new.php6.07 ▲0.1996.37 ▼14.27
Media Library /wp-admin/upload.php3.40 ▲0.1837.77 ▲2.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BOXFUL電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼1.531.91 ▼0.0342.35 ▲3.97
Dashboard /wp-admin2,208 ▲175.85 ▲0.7897.44 ▼10.8138.29 ▼9.02
Posts /wp-admin/edit.php2,091 ▼12.05 ▼0.0040.07 ▼0.9835.77 ▼0.51
Add New Post /wp-admin/post-new.php1,530 ▲623.20 ▲0.10654.76 ▼13.1358.27 ▼0.08
Media Library /wp-admin/upload.php1,390 ▲24.29 ▲0.0598.45 ▼15.6544.38 ▼2.72

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/boxful-fulfillment/templates/cart/chooseSevenCVS.php
    • > /wp-content/plugins/boxful-fulfillment/templates/cart/chooseFamilyMartCVS.php
    • > /wp-content/plugins/boxful-fulfillment/view/admin/index.php
    • > /wp-content/plugins/boxful-fulfillment/templates/cart/chooseHiLifeCVS.php
  • 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boxful-fulfillment/templates/cart/chooseFamilyMartCVS.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment/controller/shipping-method/class/BoxfulChungHwaPost.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'BOXFUL_FULFILLMENT_PLUGIN_DIRcontroller/shipping-method/AdminShippingMethodController.php' (include_path='.:/usr/share/php') in wp-content/plugins/boxful-fulfillment/controller/shipping-method/ShippingMethodController.php on line 49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment/controller/order-list/OrderListController.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/boxful-fulfillment/templates/cart/chooseFamilyMartCVS.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment/controller/shipping-method/class/BoxfulCrossBorder.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment/api/BoxfulApiRouter.php:3
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/boxful-fulfillment/templates/cart/chooseSevenCVS.php on line 6
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/boxful-fulfillment/templates/cart/chooseHiLifeCVS.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment/controller/shipping-method/class/BoxfulSevenEleven.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires php: Invalid plugin version format
  • Screenshots: Please a description for screenshot #1 in boxful-fulfillment/assets to your readme.txt
The official readme.txt might help

boxful-fulfillment/boxful-fulfillment.php Passed 13 tests

The main file in "BOXFUL電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce" v. 1.3.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
18 characters long description:
Boxful Fulfillment

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
Success! There were no dangerous files found in this plugin1,286 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP24126191,235
CSS18051

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.47
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods6098.36%
▷ Protected methods00.00%
▷ Private methods11.64%
Functions28
▷ Named functions1657.14%
▷ Anonymous functions1242.86%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ready-to-ship.png52.01KB23.06KB▼ 55.66%
img/boxful_3pl_logo.png19.94KB20.16KB0.00%
img/shipment.png44.73KB18.71KB▼ 58.18%
img/bff_logo.png5.65KB2.75KB▼ 51.23%