Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲1.13MB] [CPU: ▲10.34ms] Passed 4 tests
Analyzing server-side resources used by WPCargo Track & Trace
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 54.12 ▲6.58 |
Dashboard /wp-admin | 4.45 ▲1.14 | 57.98 ▲9.33 |
Posts /wp-admin/edit.php | 4.56 ▲1.20 | 57.53 ▲10.52 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.16 | 105.25 ▲16.06 |
Media Library /wp-admin/upload.php | 4.37 ▲1.14 | 48.96 ▲14.92 |
Admin Email Settings /wp-admin/admin.php?page=wpcargo-admin-email-settings | 4.35 | 42.31 |
Print Layout /wp-admin/admin.php?page=wpcargo-print-layout | 4.55 | 45.06 |
Shipment Label /wp-admin/admin.php?page=wpcargo-print-label | 4.34 | 37.32 |
Map Settings /wp-admin/admin.php?page=wpc-shmap-settings | 4.41 | 48.16 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpcargo_shipment | 4.37 | 43.36 |
Reports /wp-admin/admin.php?page=wpc-ie-import | 4.34 | 40.28 |
Client Email Settings /wp-admin/admin.php?page=wpcargo-email-settings | 4.36 | 41.52 |
Reports /wp-admin/edit.php?post_type=wpcargo_shipment&page=wpc-report-export | 4.39 | 45.06 |
Multiple Package Settings /wp-admin/admin.php?page=wpc-multiple-package | 4.34 | 48.05 |
Add Shipment /wp-admin/post-new.php?post_type=wpcargo_shipment | 4.60 | 73.58 |
Server storage [IO: ▲6.37MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 741 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wpcargo_option_settings |
wpcargo_admin_mail_subject |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
wpcargo_admin_mail_to |
wpcargo_mail_settings |
wpcargo_admin_mail_active |
widget_recent-comments |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WPCargo Track & Trace
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲225 | 14.63 ▲0.23 | 7.59 ▲5.30 | 43.48 ▼0.90 |
Dashboard /wp-admin | 2,302 ▲114 | 5.53 ▼0.28 | 105.49 ▼2.53 | 37.61 ▼2.19 |
Posts /wp-admin/edit.php | 2,188 ▲99 | 2.35 ▲0.32 | 44.40 ▲2.52 | 35.71 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,605 ▲86 | 18.45 ▼4.30 | 646.78 ▼27.36 | 36.56 ▼21.95 |
Media Library /wp-admin/upload.php | 1,484 ▲99 | 4.76 ▲0.55 | 97.44 ▼4.51 | 43.68 ▼0.21 |
Admin Email Settings /wp-admin/admin.php?page=wpcargo-admin-email-settings | 1,198 | 2.29 | 30.58 | 37.24 |
Print Layout /wp-admin/admin.php?page=wpcargo-print-layout | 1,035 | 2.26 | 29.97 | 34.55 |
Shipment Label /wp-admin/admin.php?page=wpcargo-print-label | 854 | 2.28 | 27.35 | 19.98 |
Map Settings /wp-admin/admin.php?page=wpc-shmap-settings | 1,342 | 3.62 | 42.91 | 57.97 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=wpcargo_shipment | 1,403 | 2.36 | 33.22 | 30.46 |
Reports /wp-admin/admin.php?page=wpc-ie-import | 894 | 2.28 | 30.50 | 26.33 |
Client Email Settings /wp-admin/admin.php?page=wpcargo-email-settings | 1,230 | 2.25 | 29.73 | 35.21 |
Reports /wp-admin/edit.php?post_type=wpcargo_shipment&page=wpc-report-export | 2,233 | 2.72 | 55.32 | 31.42 |
Multiple Package Settings /wp-admin/admin.php?page=wpc-multiple-package | 1,066 | 2.26 | 27.66 | 27.98 |
Add Shipment /wp-admin/post-new.php?post_type=wpcargo_shipment | 8,391 | 5.43 | 139.73 | 42.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 13 options
- can_compress_scripts
- wpcargo_admin_mail_subject
- theysaidso_admin_options
- widget_theysaidso_widget
- wpcargo_option_settings
- wpcargo_admin_mail_active
- widget_recent-posts
- wpc_mp_settings
- wpcargo_mail_settings
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpcargo/lib/phpqrcode-master/index.php
- 92× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeRms4cc' not found in wp-content/plugins/wpcargo/lib/barcode-generator/vendor/picqer/php-barcode-generator/src/Types/TypeKix.php:13
- > PHP Notice
Trying to get property 'post_title' of non-object in wp-content/plugins/wpcargo/admin/templates/print-details-header.tpl.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wpcargo_brand_name() in wp-content/plugins/wpcargo/admin/templates/user-profile.tpl.php:1
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\BarcodeGenerator' not found in wp-content/plugins/wpcargo/lib/barcode-generator/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorDynamicHTML.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wpcargo_trackform_shipment_number() in wp-content/plugins/wpcargo/templates/result-form.tpl.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wpcargo/lib/barcode-generator/vendor/picqer/php-barcode-generator/tests/BarcodeHtmlTest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/wpcargo/lib/barcode-generator/vendor/picqer/php-barcode-generator/src/Types/TypeIntelligentMailBarcode.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpcargo/admin/templates/settings-fields-option.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function barcode() on null in wp-content/plugins/wpcargo/admin/templates/print-details-header.tpl.php:7
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeInterleaved25Checksum' not found in wp-content/plugins/wpcargo/lib/barcode-generator/vendor/picqer/php-barcode-generator/src/Types/TypeInterleaved25.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=wpcargo_shipment
- > Deprecation (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
- Screenshots: Screenshot #1 (All Shipments) image not found
wpcargo/wpcargo.php 92% from 13 tests
The entry point to "WPCargo Track & Trace" version 6.13.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 354 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wpcargo/lib/phpqrcode-master/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 147 | 2,355 | 3,256 | 17,112 |
JavaScript | 37 | 387 | 2,832 | 16,512 |
PO File | 12 | 4,464 | 5,988 | 10,371 |
SVG | 33 | 0 | 12 | 5,987 |
CSS | 14 | 8 | 132 | 4,993 |
Markdown | 4 | 142 | 0 | 329 |
HTML | 4 | 0 | 0 | 194 |
JSON | 3 | 0 | 0 | 140 |
XML | 1 | 0 | 0 | 23 |
YAML | 2 | 9 | 0 | 22 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 109 | |
▷ Abstract classes | 2 | 1.83% |
▷ Concrete classes | 107 | 98.17% |
▷ Final classes | 0 | 0.00% |
Methods | 656 | |
▷ Static methods | 148 | 22.56% |
▷ Public methods | 510 | 77.74% |
▷ Protected methods | 138 | 21.04% |
▷ Private methods | 8 | 1.22% |
Functions | 137 | |
▷ Named functions | 127 | 92.70% |
▷ Anonymous functions | 10 | 7.30% |
Constants | 139 | |
▷ Global constants | 106 | 76.26% |
▷ Class constants | 33 | 23.74% |
▷ Public constants | 32 | 96.97% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/phpqrcode-master/cache/frame_1.png | 0.12KB | 0.12KB | ▼ 1.59% |
assets/images/printer.png | 0.73KB | 0.49KB | ▼ 33.64% |
lib/phpqrcode-master/cache/frame_34.png | 0.25KB | 0.23KB | ▼ 8.59% |
lib/phpqrcode-master/cache/frame_4.png | 0.15KB | 0.14KB | ▼ 1.34% |
admin/assets/images/wpcmarker.png | 0.93KB | 0.44KB | ▼ 52.90% |