99% blazing-woocommerce-shipment-tracking

Code Review | BLAZING WooCommerce Shipment Tracking

WordPress plugin BLAZING WooCommerce Shipment Tracking scored 99% from 54 tests.

About plugin

  • Plugin page: blazing-woocommer...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.7.2
  • WordPress version: 5.8.1
  • First release: Feb 18, 2017
  • Latest release: Mar 2, 2017
  • Number of updates: 12
  • Update frequency: every 1.0 days
  • Top authors: massoudshakeri (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

600+ active / 4,783 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by BLAZING WooCommerce Shipment Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1734.77 ▲14.44
Dashboard /wp-admin3.11 ▲0.0647.22 ▲2.12
Posts /wp-admin/edit.php3.20 ▲0.0941.02 ▼3.27
Add New Post /wp-admin/post-new.php5.47 ▲0.0488.21 ▼578.98
Media Library /wp-admin/upload.php3.06 ▲0.0535.39 ▲1.17

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by BLAZING WooCommerce Shipment Tracking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.26 ▲0.6610.39 ▼3.3642.91 ▼3.91
Dashboard /wp-admin2,970 ▲335.91 ▼0.22142.77 ▼30.95107.75 ▲4.04
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0063.98 ▼1.5485.24 ▼3.79
Add New Post /wp-admin/post-new.php1,498 ▼11718.85 ▼2.63379.67 ▲87.52106.49 ▲1.52
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.03175.29 ▲21.95113.17 ▼14.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt might help

blazing-woocommerce-shipment-tracking/bst-tracking.php 69% from 13 tests

"BLAZING WooCommerce Shipment Tracking" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("blazing-woocommerce-shipment-tracking.php" instead of "bst-tracking.php")
  • Domain Path: The domain path must begin with a forward slash character ("/")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,475 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP113736311,056
PO File36972272
JavaScript4265134
CSS24113

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.71
▷ Minimum class complexity7.00
▷ Maximum class complexity61.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods63
▷ Static methods46.35%
▷ Public methods5180.95%
▷ Protected methods69.52%
▷ Private methods69.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/plugin/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/plugin/chosen/chosen-sprite.png0.53KB0.88KB0.00%