Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.90ms] Passed 4 tests
Server-side resources used by WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 37.72 ▼2.29 |
Dashboard /wp-admin | 3.44 ▲0.13 | 49.59 ▲0.12 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.81 ▲0.53 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.02 ▼1.96 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.51 ▲8.12 |
Server storage [IO: ▲18.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 665 new files
Database: 1 new table, 19 new options
New tables |
---|
wp_wfpklist_template_data |
New WordPress options |
---|
widget_recent-comments |
wt_pklist_common_modules |
theysaidso_admin_options |
wf_woocommerce_packing_list_shippinglabel |
Wf_Woocommerce_Packing_List |
widget_recent-posts |
wf_woocommerce_packing_list_invoice |
wf_woocommerce_packing_list_packinglist |
wf_pklist_module_status_migrated |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲39 | 14.15 ▼0.21 | 1.51 ▼0.24 | 36.61 ▼9.01 |
Dashboard /wp-admin | 2,206 ▲26 | 5.62 ▲0.09 | 94.54 ▲5.98 | 39.73 ▲1.45 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▼0.04 | 39.91 ▼0.85 | 38.69 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.33 ▼0.05 | 657.61 ▲35.20 | 62.59 ▲5.25 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.29 ▲0.08 | 109.08 ▲10.83 | 48.24 ▲4.05 |
Uninstaller [IO: ▲18.52MB] [DB: ▲0.01MB] 0% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the followingZombie tables detected upon uninstall: 1 table This plugin does not fully uninstall, leaving 20 options in the database
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/class-wf-woocommerce-packing-list-deactivator.php+37
Uncaught Error: Call to undefined function as_unschedule_all_actions() in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/class-wf-woocommerce-packing-list-deactivator.php:37
Stack trace:
#0 wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/print-invoices-packing-slip-labels-for-woocommerce.php(100): Wf_Woocommerce_Packing_List_Deactivator::deactivate()
#1 wp-includes/class-wp-hook.php(310): deactivate_wf_woocommerce_packing_list()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(816): do_action() - Uninstaller has failed for this plugin, leaving 665 files (18.52MB) in the plugin directory
- (new file) admin/data/data.filters-help.php
- (new file) admin/data/data.language-list.php
- (new file) admin/css/wf-woocommerce-packing-list-admin.css
- (new file) admin/class-wf-woocommerce-packing-list-admin.php
- (new file) admin/css/wf-woocommerce-packing-list-admin-addons-page.css
- (new file) admin/data/data.tooltip.php
- (new file) admin/images/banner/webtoffee_logo.svg
- (new file) admin/class-wt-promotion-banner.php
- (new file) admin/images/addresslabel_logo.png
- (new file) admin/images/addresslabel.png
- ...
- wp_wfpklist_template_data
- wt_pklist_new_install
- wf_woocommerce_packing_list_dispatchlabel
- wf_pklist_options_migrated
- wf_pklist_templates_migrated
- wf_woocommerce_packing_list_packinglist
- wf_woocommerce_packing_list_shippinglabel
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/admin/modules/migrator/data/data.invoice.migrator.template.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/invoice/data/data.template2.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/invoice/data/data.template0.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/invoice/data/data.template1.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/invoice/data/data.template3.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/shippinglabel/data/data.template1.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/partials/wf-woocommerce-packing-list-public-display.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/deliverynote/data/data.template1.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/dispatchlabel/data/data.template1.php
- > /wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/masterminds/html5/bin/entities.php
- 151× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/dompdf/src/FrameReflower/Table.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/dompdf/src/Renderer/Text.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/phenx/php-svg-lib/src/Svg/Tag/Ellipse.php:13
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/phenx/php-font-lib/src/FontLib/Header.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/dompdf/src/Renderer/ListBullet.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Glyph\\Outline' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/phenx/php-font-lib/src/FontLib/Glyph/OutlineSimple.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/dompdf/src/FrameDecorator/Image.php:19
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/phenx/php-svg-lib/src/Svg/Tag/Rect.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/public/modules/invoice/data/data.tooltip.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/sabberworm/php-css-parser/src/Comment/Comment.php:8
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
print-invoices-packing-slip-labels-for-woocommerce/print-invoices-packing-slip-labels-for-woocommerce.php 92% from 13 tests
The main PHP script in "WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels" version 4.2.1 is automatically included on every request by WordPress
The following require your attention:
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 75 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin157,026 lines of code in 400 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 330 | 10,629 | 19,800 | 91,067 |
PO File | 16 | 16,786 | 29,230 | 37,427 |
JSON | 13 | 0 | 0 | 22,802 |
JavaScript | 11 | 210 | 90 | 3,556 |
Markdown | 13 | 398 | 0 | 1,333 |
CSS | 4 | 115 | 58 | 655 |
SVG | 10 | 0 | 0 | 106 |
YAML | 1 | 9 | 0 | 35 |
XML | 1 | 0 | 0 | 28 |
HTML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 38.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 811.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 234 | |
▷ Abstract classes | 13 | 5.56% |
▷ Concrete classes | 221 | 94.44% |
▷ Final classes | 2 | 0.90% |
Methods | 2,769 | |
▷ Static methods | 376 | 13.58% |
▷ Public methods | 2,210 | 79.81% |
▷ Protected methods | 444 | 16.03% |
▷ Private methods | 115 | 4.15% |
Functions | 150 | |
▷ Named functions | 120 | 80.00% |
▷ Anonymous functions | 30 | 20.00% |
Constants | 277 | |
▷ Global constants | 28 | 10.11% |
▷ Class constants | 249 | 89.89% |
▷ Public constants | 243 | 97.59% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
116 PNG files occupy 1.55MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/wt_adc_logo.png | 3.17KB | 2.20KB | ▼ 30.54% |
admin/images/other_solutions/wt_pi_logo.png | 4.67KB | 2.66KB | ▼ 43.01% |
assets/images/shippinglabel.png | 0.60KB | 0.62KB | 0.00% |
admin/images/packinglist_logo.png | 1.83KB | 1.16KB | ▼ 36.82% |
admin/images/other_solutions/WordPress-backup-and-migration-plugin.png | 19.77KB | 19.77KB | 0.01% |