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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.95 ▼3.95 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.04 ▼6.56 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 38.98 ▼3.47 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 91.65 ▼1,205.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲43 | 15.86 ▼0.12 | 6.95 ▲0.21 | 2.41 ▲0.55 |
Dashboard /wp-admin | 2,895 ▲40 | 6.09 ▼0.05 | 111.91 ▼24.09 | 151.34 ▼3.28 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.00 | 63.62 ▲1.77 | 140.39 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,666 ▲5 | 20.58 ▲4.39 | 399.07 ▼38.68 | 157.32 ▲4.41 |
Media Library /wp-admin/upload.php | 1,701 ▲9 | 5.52 ▼0.01 | 137.39 ▲3.69 | 187.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 120 | 74 | 1,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 code | 0.33 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controllors/views/brands/fedex.png | 142.85KB | 52.31KB | ▼ 63.38% |
hittracki.png | 2.44KB | 2.08KB | ▼ 14.83% |
controllors/views/brands/purolator.png | 82.52KB | 82.48KB | 0.05% |
controllors/views/brands/ups.png | 50.07KB | 54.07KB | 0.00% |
controllors/views/brands/dhl.png | 2.31KB | 1.37KB | ▼ 40.65% |