72% boxful-fulfillment-hk

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

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

About plugin

  • Plugin page: boxful-fulfillmen...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 6, 2021
  • Latest release: Oct 6, 2021
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: boxful (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.82ms] Passed 4 tests

Server-side resources used by BOXFUL(HK)電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.11 ▼4.72
Dashboard /wp-admin3.37 ▲0.0344.55 ▼18.88
Posts /wp-admin/edit.php3.49 ▲0.1349.34 ▲4.37
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.36 ▼16.05
Media Library /wp-admin/upload.php3.30 ▲0.0737.80 ▲7.24
Boxful Fulfillment HK /wp-admin/admin.php?page=sub_boxful_fulfillment3.2630.41

Server storage [IO: ▲4.07MB] [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: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by BOXFUL(HK)電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.65 ▼1.101.80 ▲0.0844.07 ▲1.54
Dashboard /wp-admin2,202 ▲145.82 ▼0.04107.23 ▼12.1439.10 ▼3.93
Posts /wp-admin/edit.php2,091 ▲22.17 ▲0.1340.46 ▲5.5935.38 ▼2.51
Add New Post /wp-admin/post-new.php1,533 ▼123.40 ▲0.25670.19 ▲12.0950.92 ▼0.51
Media Library /wp-admin/upload.php1,390 ▼14.22 ▲0.0394.54 ▼3.1640.94 ▼3.52
Boxful Fulfillment HK /wp-admin/admin.php?page=sub_boxful_fulfillment8562.0330.6856.69

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

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/boxful-fulfillment-hk/view/admin/index.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant BOXFUL_FULFILLMENT_HK_PLUGIN_DIR - assumed 'BOXFUL_FULFILLMENT_HK_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/boxful-fulfillment-hk/controller/shipping-method/ShippingMethodController.php on line 37
    • > PHP Warning
      Use of undefined constant BOXFUL_FULFILLMENT_HK_PLUGIN_DIR - assumed 'BOXFUL_FULFILLMENT_HK_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/boxful-fulfillment-hk/controller/status/StatusController.php on line 59
    • > PHP Warning
      require_once(BOXFUL_FULFILLMENT_HK_PLUGIN_DIRcontroller/status/AdminStatusController.php): failed to open stream: No such file or directory in wp-content/plugins/boxful-fulfillment-hk/controller/status/StatusController.php on line 59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment-hk/controller/shipping-method/class/BoxfulSfExpress.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment-hk/controller/shipping-method/class/BoxfulLogistic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/boxful-fulfillment-hk/boxful-fulfillment-hk.php:12
    • > PHP Warning
      require_once(BOXFUL_FULFILLMENT_HK_PLUGIN_DIRcontroller/shipping-method/AdminShippingMethodController.php): failed to open stream: No such file or directory in wp-content/plugins/boxful-fulfillment-hk/controller/shipping-method/ShippingMethodController.php on line 37
    • > PHP Fatal error
      require_once(): Failed opening required 'BOXFUL_FULFILLMENT_HK_PLUGIN_DIRcontroller/shipping-method/AdminShippingMethodController.php' (include_path='.:/usr/share/php') in wp-content/plugins/boxful-fulfillment-hk/controller/shipping-method/ShippingMethodController.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boxful-fulfillment-hk/controller/order-list/OrderListController.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'BOXFUL_FULFILLMENT_HK_PLUGIN_DIRcontroller/status/AdminStatusController.php' (include_path='.:/usr/share/php') in wp-content/plugins/boxful-fulfillment-hk/controller/status/StatusController.php on line 59

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=sub_boxful_fulfillment
    • > Network (severe)
    img/bff_logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
  • Screenshots: Add a description for screenshot #1 in boxful-fulfillment-hk/assets to your readme.txt
The official readme.txt is a good inspiration

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

The main PHP script in "BOXFUL(HK)電商出貨小幫手:One-stop e-commerce Fulfillment for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
21 characters long description:
Boxful Fulfillment HK

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin513 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13679475
CSS15038

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3296.97%
▷ Protected methods00.00%
▷ Private methods13.03%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/bff_logo.png5.65KB2.75KB▼ 51.23%
img/boxful_3pl_logo.png19.94KB20.16KB0.00%
img/shipment.png25.98KB12.08KB▼ 53.51%
img/ready-to-ship.png23.98KB12.11KB▼ 49.49%