Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/smart-shipment-tracking/includes/class-smart-shipment-tracking-install.php+83
Uncaught Error: Call to undefined function WC() in wp-content/plugins/smart-shipment-tracking/includes/class-smart-shipment-tracking-install.php:83
Stack trace:
#0 wp-content/plugins/smart-shipment-tracking/includes/class-smart-shipment-tracking-install.php(49): wfsxc_Install->shippment_tracking_install()
#1 wp-content/plugins/smart-shipment-tracking/includes/class-smart-shipment-tracking-install.php(27): wfsxc_Install->init()
#2 wp-content/plugins/smart-shipment-tracking/includes/class-smart-shipment-tracking-activator.php(11): wfsxc_Install->__construct()
#3 wp-content/plugins/smart-shipment-tracking/smart-shipment-tracking.php(29): Tracking_Addon_Activator::activate()
#4 wp-includes/class-wp-hook.php(303): wfsxc3dsa_activatewootracking()
#5 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(470): WP_Hook->do_action()
#7 /
Server metrics [RAM: ▼0.00MB] [CPU: ▼152.81ms] Passed 4 tests
Server-side resources used by Smart Shipment Tracking
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 25.45 ▼1.34 |
Dashboard /wp-admin | 3.06 ▼0.00 | 33.27 ▼18.56 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 32.82 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 70.56 ▼589.76 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 23.62 ▼0.48 |
Server storage [IO: ▲5.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 317 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_wfsxc_shippment_provider |
New WordPress options |
---|
send_email |
create_shipped_status |
Browser metrics Passed 4 tests
Smart Shipment Tracking: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,676 ▲75 | 15.59 ▼0.02 | 5.99 ▲0.02 | 74.52 ▼17.08 |
Dashboard /wp-admin | 2,930 ▲31 | 6.16 ▼0.03 | 116.28 ▼34.70 | 167.04 ▼28.11 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.24 ▲0.01 | 61.78 ▼1.69 | 139.44 ▼2.87 |
Add New Post /wp-admin/post-new.php | 3,735 ▼81 | 18.54 ▼0.84 | 438.68 ▲10.10 | 163.07 ▼6.49 |
Media Library /wp-admin/upload.php | 1,752 ▼3 | 5.49 ▼0.04 | 156.29 ▲9.59 | 184.70 ▼2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_wfsxc_shippment_provider
- The uninstall procedure has failed, leaving 2 options in the database
- send_email
- create_shipped_status
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smart-shipment-tracking/admin/emails/shipped-new-order.php
- > /wp-content/plugins/smart-shipment-tracking/public/partials/plugin-name-public-display.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_options_addons.php on line 9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_options_settings_part.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/smart-shipment-tracking/admin/partials/woo-ship_admin_sidebar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/smart-shipment-tracking/admin/partials/woo-ship_admin_sidebar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_download_sample_sheet.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_options_settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_options_shipping_provider.php:12
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_options_addons.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smart-shipment-tracking/admin/partials/woo-tracking-addon-admin-display.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/smart-shipment-tracking/admin/partials/admin_options_bulk_upload.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
smart-shipment-tracking/smart-shipment-tracking.php 92% from 13 tests
The main PHP file in "Smart Shipment Tracking" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
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
Success! There were no dangerous files found in this plugin12,838 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,550 | 210 | 4,872 |
JavaScript | 26 | 660 | 507 | 4,439 |
CSS | 8 | 121 | 42 | 3,527 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 28.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 10 | 7.30% |
▷ Public methods | 130 | 94.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 5.11% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
242 PNG files occupy 3.24MB with 1.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/provider-img/malaysia-post.png | 3.46KB | 2.12KB | ▼ 38.70% |
admin/provider-img/sicepat.png | 20.67KB | 2.27KB | ▼ 89.03% |
admin/provider-img/shadowfax.png | 1.86KB | 1.13KB | ▼ 39.29% |
admin/provider-img/spee-dee.png | 4.39KB | 3.22KB | ▼ 26.58% |
admin/provider-img/laos-post.png | 3.51KB | 1.88KB | ▼ 46.33% |