Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.51ms] Passed 4 tests
A check of server-side resources used by Print Invoice & Delivery Notes for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.35 ▼5.57 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.89 ▼4.13 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.89 ▼1.71 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.77 ▼6.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.36 ▲0.48 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Print Invoice & Delivery Notes for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.59 ▲0.19 | 1.74 ▼0.25 | 43.46 ▼0.97 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▲0.04 | 81.49 ▼21.54 | 37.86 ▼5.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.00 | 35.01 ▼1.31 | 33.15 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.09 ▼5.52 | 589.06 ▼113.15 | 66.04 ▲9.93 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.16 ▼0.03 | 95.09 ▼3.96 | 42.79 ▼4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php
- 61× 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/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 96
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 96
- > PHP Notice
Undefined variable: ts_faq in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 64
- > PHP Notice
Undefined variable: ts_faq in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 101
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 94
- > PHP Notice
Undefined variable: ts_plugin_name in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 58
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 76
- > PHP Notice
Undefined variable: ts_faq in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 94
- > PHP Notice
Undefined variable: ts_faq in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 96
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-delivery-notes/includes/component/faq-support/templates/faq-page/faq-page.php on line 89
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The clean invoice print view.), #2 (Print panel.), #3 (Quick print actions.), #4 (Bulk print orders.), #5 (Enter company and contact information.), #6 (Customers can also print the order.), #7 (The clean Delivery note view.)
woocommerce-delivery-notes/woocommerce-delivery-notes.php 92% from 13 tests
The entry point to "Print Invoice & Delivery Notes for WooCommerce" version 4.8.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin11,013 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 3,331 | 5,904 | 7,187 |
PHP | 21 | 745 | 1,320 | 3,267 |
CSS | 2 | 88 | 22 | 397 |
JavaScript | 4 | 44 | 74 | 134 |
SVG | 1 | 0 | 0 | 15 |
Markdown | 2 | 11 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 23.73 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 118 | |
▷ Static methods | 37 | 31.36% |
▷ Public methods | 106 | 89.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 10.17% |
Functions | 38 | |
▷ Named functions | 37 | 97.37% |
▷ Anonymous functions | 1 | 2.63% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.60MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 7.69KB | 5.40KB | ▼ 29.74% |
assets/images/wcdn-invoice-numbering.png | 22.24KB | 6.71KB | ▼ 69.82% |
screenshot-4.png | 14.00KB | 8.67KB | ▼ 38.04% |
screenshot-1.png | 66.09KB | 37.82KB | ▼ 42.77% |
assets/images/icon-256x256.png | 104.10KB | 22.45KB | ▼ 78.43% |