10% blaze-online-eparcel-for-woocommerce

Code Review | Blaze Online eParcel for WooCommerce

WordPress plugin Blaze Online eParcel for WooCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: blaze-online-epar...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Dec 7, 2018
  • Latest release: Jul 22, 2020
  • Number of updates: 22
  • Update frequency: every 27.0 days
  • Top authors: linksync (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 940 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory

Server metrics [RAM: ▲0.34MB] [CPU: ▼74.37ms] Passed 4 tests

An overview of server-side resources used by Blaze Online eParcel for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8723.12 ▼63.90
Dashboard /wp-admin4.35 ▲1.0528.95 ▼52.53
Posts /wp-admin/edit.php4.35 ▲1.0028.72 ▼51.06
Add New Post /wp-admin/post-new.php4.35 ▼1.5427.41 ▼129.97
Media Library /wp-admin/upload.php4.35 ▲1.1237.15 ▼25.99

Server storage [IO: ▲1.06MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: 9 new tables, 36 new options
New tables
wp_linksynceparcel_nonlinksync
wp_linksynceparcel_article_preset
wp_linksynceparcel_international_fields
wp_linksynceparcel_article
wp_linksynceparcel_order_statuses
wp_linksynceparcel_manifest
wp_linksynceparcel_consignment
wp_linksynceparcel_consignment_temp_cost
wp_linksynceparcel_address_valid
New WordPress options
db_upgraded
linksynceparcel_email_body
widget_recent-comments
linksynceparcel_product_unit
linksynceparcel_display_order_status
linksynceparcel_print_return_labels
linksynceparcel_label_format
widget_theysaidso_widget
linksynceparcel_mark_despatch
linksynceparcel_apply_to_all
...

Browser metrics Passed 4 tests

An overview of browser requirements for Blaze Online eParcel for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲6614.32 ▲0.043.23 ▼0.1276.27 ▼13.43
Dashboard /wp-admin2,210 ▲254.78 ▼0.14186.86 ▼32.6488.52 ▲5.56
Posts /wp-admin/edit.php2,094 ▲52.05 ▼0.0068.82 ▼6.3474.00 ▲1.10
Add New Post /wp-admin/post-new.php1,361 ▼017.85 ▲0.25959.76 ▼31.8482.61 ▲4.35
Media Library /wp-admin/upload.php1,390 ▲24.17 ▼0.06189.18 ▲5.4395.13 ▼6.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
  • This plugin does not fully uninstall, leaving 9 tables in the database
    • wp_linksynceparcel_nonlinksync
    • wp_linksynceparcel_address_valid
    • wp_linksynceparcel_order_statuses
    • wp_linksynceparcel_article_preset
    • wp_linksynceparcel_article
    • wp_linksynceparcel_international_fields
    • wp_linksynceparcel_consignment_temp_cost
    • wp_linksynceparcel_manifest
    • wp_linksynceparcel_consignment
  • This plugin does not fully uninstall, leaving 36 options in the database
    • linksynceparcel_order_value_insurance
    • linksynceparcel_active
    • linksynceparcel_int_insurance
    • widget_theysaidso_widget
    • linksynceparcel_print_return_labels
    • can_compress_scripts
    • linksynceparcel_mark_despatch
    • linksynceparcel_international_checker
    • linksynceparcel_insurance
    • linksynceparcel_notify_customers
    • ...

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (You'll see Blaze Online settings in the admin menu.)
The official readme.txt is a good inspiration

blaze-online-eparcel-for-woocommerce/blazeonlineeparcel.php 92% from 13 tests

The main PHP script in "Blaze Online eParcel for WooCommerce" version 1.3.3 is automatically included on every request by WordPress
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 ("blaze-online-eparcel-for-woocommerce.php" instead of "blazeonlineeparcel.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
No dangerous file extensions were detected20,874 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP611,97746318,378
JavaScript3143291,257
CSS4921101,131
XML900108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity49.12
▷ Minimum class complexity1.00
▷ Maximum class complexity463.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes41
▷ Abstract classes12.44%
▷ Concrete classes4097.56%
▷ Final classes00.00%
Methods473
▷ Static methods26756.45%
▷ Public methods473100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.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
9 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_gloss-wave_25_333333_500x100.png1.83KB1.14KB▼ 37.89%
assets/css/images/ui-bg_glass_40_0078a3_1x400.png0.13KB0.16KB0.00%
assets/css/images/ui-bg_inset-soft_25_000000_1x100.png0.10KB0.18KB0.00%
assets/css/images/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
assets/images/logo-blaze.png1.56KB1.08KB▼ 30.85%