89% blazing-woocommerce-shipment-tracking

Code Review | BLAZING Shipment Tracking

WordPress plugin BLAZING Shipment Tracking scored89%from 54 tests.

About plugin

  • Plugin page: blazing-woocommer...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Sep 24, 2023
  • Number of updates: 13
  • Update frequency: every 185.3 days
  • Top authors: massoudshakeri (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

500+ active /5,651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by BLAZING Shipment Tracking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.89 ▲4.57
Dashboard /wp-admin3.36 ▲0.0149.07 ▼14.19
Posts /wp-admin/edit.php3.47 ▲0.1146.24 ▼9.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.12 ▼26.92
Media Library /wp-admin/upload.php3.28 ▲0.0534.78 ▲1.79

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, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by BLAZING Shipment Tracking
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.151.76 ▲0.2443.19 ▲3.84
Dashboard /wp-admin2,195 ▲185.61 ▲0.0088.05 ▼1.3241.98 ▲0.31
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0134.44 ▼3.4936.01 ▼3.02
Add New Post /wp-admin/post-new.php1,526 ▼223.05 ▼0.15644.64 ▼43.2451.51 ▼10.59
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0195.65 ▼14.2941.41 ▼1.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 93% 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 92% from 13 tests

"BLAZING Shipment Tracking" version 2.1.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")

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,450 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP113726531,034
PO File36972266
JavaScript4227137
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.44
Average class complexity21.71
▷ Minimum class complexity7.00
▷ Maximum class complexity61.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods59
▷ Static methods46.78%
▷ Public methods4779.66%
▷ Protected methods610.17%
▷ Private methods610.17%
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.png0.53KB0.88KB0.00%
assets/plugin/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%