72% woocommerce-fulfillment-integration

Code Review | WooCommerce Fulfillment Integration

WordPress plugin WooCommerce Fulfillment Integration scored72%from 54 tests.

About plugin

  • Plugin page: woocommerce-fulfi...
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 27, 2013
  • Latest release: Sep 29, 2014
  • Number of updates: 29
  • Update frequency: every 20.1 days
  • Top authors: efulfillment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,227 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.52ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Fulfillment Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.84 ▼5.51
Dashboard /wp-admin3.34 ▲0.0445.65 ▼2.51
Posts /wp-admin/edit.php3.40 ▲0.0444.95 ▼5.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.86 ▼4.52
Media Library /wp-admin/upload.php3.27 ▲0.0434.53 ▼0.40
Fulfillment Integration /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php3.2130.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
woocommerce_efs_options

Browser metrics Passed 4 tests

WooCommerce Fulfillment Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.261.53 ▼0.4841.85 ▼2.03
Dashboard /wp-admin2,206 ▲215.79 ▼0.11100.55 ▼0.0537.92 ▼3.14
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0236.00 ▼4.8932.98 ▼3.33
Add New Post /wp-admin/post-new.php1,533 ▼923.21 ▲4.74618.60 ▲21.3947.22 ▼7.04
Media Library /wp-admin/upload.php1,388 ▲34.34 ▲0.1394.89 ▼7.4441.08 ▼2.86
Fulfillment Integration /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php1,0232.0521.6348.97

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • woocommerce_efs_options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+122
    Undefined index: woocommerce_efs_save
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+152
    Undefined index: efs_merchant_id
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+158
    Undefined index: efs_merchant_token
  • 30 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+216
    Trying to get property 'name' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+172
    Undefined index: efs_order_status
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+194
    Undefined index: efs_received_status
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+215
    Undefined index: efs_shipped_status
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocommerce-fulfillment-integration/woocommerce-fulfillment.php
    • > Notice in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php+229
    Undefined index: efs_tracking_note

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
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woocommerce-fulfillment-integration/ExportItems.php
    • > /wp-content/plugins/woocommerce-fulfillment-integration/ExportOrders.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-fulfillment-integration/woocommerce-fulfillment.php:16

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: fulfillment, order fulfillment, efulfillment service, shipping, warehousing...

woocommerce-fulfillment-integration/woocommerce-fulfillment.php 92% from 13 tests

The primary PHP file in "WooCommerce Fulfillment Integration" version 1.5.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-fulfillment-integration.php" instead of "woocommerce-fulfillment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin627 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP670147627

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin