10% boxtons-woocommerce-order-fullfilment

Code Review | BOXTONS WooCommerce Fulfillment Integration

WordPress plugin BOXTONS WooCommerce Fulfillment Integration scored10%from 54 tests.

About plugin

  • Plugin page: boxtons-woocommer...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Mar 8, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: boxtons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /706 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php+64
    Undefined index: bfs_APIKey

Server metrics [RAM: ▼1.83MB] [CPU: ▼54.92ms] Passed 4 tests

Server-side resources used by BOXTONS WooCommerce Fulfillment Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.30 ▼34.75
Dashboard /wp-admin2.19 ▼1.156.14 ▼53.00
Posts /wp-admin/edit.php2.19 ▼1.166.19 ▼43.29
Add New Post /wp-admin/post-new.php2.19 ▼3.696.70 ▼88.64
Media Library /wp-admin/upload.php2.19 ▼1.047.60 ▼29.05
BOXTONS Integration /wp-admin/admin.php?page=boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php2.195.61

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
woocommerce_bfs_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BOXTONS WooCommerce Fulfillment Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4413.20 ▼1.091.73 ▲0.1044.21 ▲2.32
Dashboard /wp-admin2,206 ▲185.81 ▲0.9394.06 ▼8.5335.48 ▼7.15
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0035.33 ▼3.0330.17 ▼5.81
Add New Post /wp-admin/post-new.php1,543 ▲2423.92 ▲0.61590.03 ▼54.9162.97 ▼1.37
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0894.19 ▼17.7841.67 ▼7.13
BOXTONS Integration /wp-admin/admin.php?page=boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php8612.1825.8529.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php+64
    Undefined index: bfs_APIKey
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • woocommerce_bfs_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php+362
    Undefined index: bfs_APIKey
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php+368
    Undefined index: bfs_APISecret

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php:46

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 90% 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:
  • Screenshots: Screenshot #1 (Coming Soon) image required
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

boxtons-woocommerce-order-fullfilment/boxtons-woocommerce-fulfillment.php 92% from 13 tests

This is the main PHP file of "BOXTONS WooCommerce Fulfillment Integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("boxtons-woocommerce-order-fullfilment.php" instead of "boxtons-woocommerce-fulfillment.php")

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
Success! There were no dangerous files found in this plugin303 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1387303

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/boxtons-logo-on-white-570x90.png11.04KB6.95KB▼ 37.08%