99% bse-kronosexpress-shipping-woocommerce

Code Review | Kronos Express Shipping for WooCommerce

WordPress plugin Kronos Express Shipping for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: bse-kronosexpress...
  • Plugin version: 1.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.14-5.7.1
  • WordPress version: 5.8.1
  • First release: Nov 15, 2019
  • Latest release: May 6, 2021
  • Number of updates: 28
  • Update frequency: every 19.3 days
  • Top authors: bseltd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,116 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼135.09ms] Passed 4 tests

Server-side resources used by Kronos Express Shipping for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.17 ▲0.4536.97 ▲15.76
Dashboard /wp-admin3.46 ▲0.4147.58 ▲2.59
Posts /wp-admin/edit.php3.51 ▲0.4043.55 ▼1.05
Add New Post /wp-admin/post-new.php5.75 ▲0.32107.62 ▼540.04
Media Library /wp-admin/upload.php3.34 ▲0.3433.28 ▼1.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Kronos Express Shipping for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.92 ▲0.259.76 ▲1.1044.89 ▼3.19
Dashboard /wp-admin2,967 ▲305.91 ▼0.12144.33 ▼21.74113.25 ▲7.68
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0169.06 ▲0.6185.71 ▲5.41
Add New Post /wp-admin/post-new.php1,604 ▼8318.54 ▼0.27402.18 ▼13.29107.65 ▲4.72
Media Library /wp-admin/upload.php1,807 ▲715.00 ▲0.01154.83 ▼36.61121.88 ▼0.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 90% 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
These attributes need your attention: The official readme.txt is a good inspiration

bse-kronosexpress-shipping-woocommerce/kronosexpress-shipping-woocommerce.php 85% from 13 tests

The entry point to "Kronos Express Shipping for WooCommerce" version 1.0.14 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "2.6.14")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bse-kronosexpress-shipping-woocommerce.php" instead of "kronosexpress-shipping-woocommerce.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 plugin3,100 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File1490111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity27.88
▷ Minimum class complexity23.00
▷ Maximum class complexity45.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods23.33%
▷ Public methods60100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3196.88%
▷ Anonymous functions13.12%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin