Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.82ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Shipping Label
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.15 ▲3.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.53 ▲0.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.28 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.46 ▼19.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.11 ▼3.58 |
Server storage [IO: ▲3.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Shipping Label
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.41 ▲0.09 | 1.69 ▲0.11 | 41.98 ▼2.08 |
Dashboard /wp-admin | 2,192 ▲15 | 5.55 ▼0.09 | 82.21 ▼5.18 | 38.89 ▼0.03 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.94 ▼0.11 | 33.89 ▼3.13 | 34.04 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.30 ▲4.87 | 667.95 ▲69.96 | 53.58 ▼17.78 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.05 | 94.67 ▲0.62 | 42.45 ▼3.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/shipping-labels-for-woo/wf-template/wf-4-6-template-footer-label.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/shipping-labels-for-woo/includes/wf_print_invoice_welcome.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shipping-labels-for-woo/includes/settings/generic_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shipping-labels-for-woo/wf-template/wf-4-6-template-header-label.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/shipping-labels-for-woo/includes/settings/go-to-pdf-basic.php:3
- > PHP Warning
Use of undefined constant WT_PKL_SH_PLUGIN_URL - assumed 'WT_PKL_SH_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/shipping-labels-for-woo/includes/settings/go-to-pdf-basic.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shipping-labels-for-woo/wf-template/wf-4-6-template-body-label.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/shipping-labels-for-woo/market.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: pdf shipping label, print shipping label, print, slip, shipping...
shipping-labels-for-woo/wf-woocommerce-packing-list.php 92% from 13 tests
The primary PHP file in "WooCommerce Shipping Label" version 2.3.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shipping-labels-for-woo.php" instead of "wf-woocommerce-packing-list.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected26,841 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 233 | 68 | 17,167 |
JavaScript | 15 | 1,084 | 442 | 3,727 |
PHP | 30 | 290 | 343 | 3,626 |
PO File | 3 | 471 | 672 | 1,116 |
SVG | 4 | 0 | 0 | 986 |
Sass | 3 | 12 | 0 | 219 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 65.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 157 | |
▷ Static methods | 7 | 4.46% |
▷ Public methods | 112 | 71.34% |
▷ Protected methods | 38 | 24.20% |
▷ Private methods | 7 | 4.46% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Label-print-icon.png | 0.74KB | 0.88KB | 0.00% |
assets/images/icon-128x128.png | 62.47KB | 28.34KB | ▼ 54.64% |
assets/images/webtoffee-logo_small.png | 4.04KB | 2.85KB | ▼ 29.40% |
assets/images/pdf-icon.png | 1.66KB | 1.41KB | ▼ 15.05% |