10% hit-tracki-multi-carrier-shipment-tracking

Code Review | HIT Tracki - Multi-carrier Shipment Tracking

WordPress plugin HIT Tracki - Multi-carrier Shipment Tracking scored 10% from 54 tests.

About plugin

  • Plugin page: hit-tracki-multi-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.8
  • WordPress version: 5.9.2
  • First release: Jul 7, 2021
  • Latest release: Jul 15, 2021
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: hitstacks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 154 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Error in wp-content/plugins/hit-tracki-multi-carrier-shipment-tracking/hit_tracki_basic.php+32
    Uncaught Error: Call to undefined function WC() in wp-content/plugins/hit-tracki-multi-carrier-shipment-tracking/hit_tracki_basic.php:32
    Stack trace:
    #0 wp-includes/class-wp-hook.php(309): hit_tracki_plugin_activation()
    #1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(474): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(716): do_action()

Server metrics [RAM: ▼0.02MB] [CPU: ▼304.88ms] Passed 4 tests

Analyzing server-side resources used by HIT Tracki - Multi-carrier Shipment Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.95 ▼3.95
Dashboard /wp-admin3.41 ▲0.0132.04 ▼6.56
Posts /wp-admin/edit.php3.64 ▲0.0138.98 ▼3.47
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.65 ▼1,205.52
Media Library /wp-admin/upload.php3.30 ▲0.0024.73 ▲2.66

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by HIT Tracki - Multi-carrier Shipment Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲4315.86 ▼0.126.95 ▲0.212.41 ▲0.55
Dashboard /wp-admin2,895 ▲406.09 ▼0.05111.91 ▼24.09151.34 ▼3.28
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0063.62 ▲1.77140.39 ▼6.03
Add New Post /wp-admin/post-new.php1,666 ▲520.58 ▲4.39399.07 ▼38.68157.32 ▲4.41
Media Library /wp-admin/upload.php1,701 ▲95.52 ▼0.01137.39 ▲3.69187.49 ▲6.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt is a good inspiration

hit-tracki-multi-carrier-shipment-tracking/hit_tracki_basic.php 77% from 13 tests

The main PHP script in "HIT Tracki - Multi-carrier Shipment Tracking" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Name the main plugin file the same as the plugin slug ("hit-tracki-multi-carrier-shipment-tracking.php" instead of "hit_tracki_basic.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,516 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9120741,516

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.40MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
controllors/views/brands/fedex.png142.85KB52.31KB▼ 63.38%
hittracki.png2.44KB2.08KB▼ 14.83%
controllors/views/brands/purolator.png82.52KB82.48KB0.05%
controllors/views/brands/ups.png50.07KB54.07KB0.00%
controllors/views/brands/dhl.png2.31KB1.37KB▼ 40.65%