Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.40MB] [CPU: ▼6.06ms] Passed 4 tests
Analyzing server-side resources used by PDF Invoices & Packing Slips for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 38.76 ▼3.03 |
Dashboard /wp-admin | 3.75 ▲0.41 | 47.88 ▼16.81 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 53.08 ▲8.53 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 96.43 ▼8.85 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 39.29 ▲4.44 |
Server storage [IO: ▲19.42MB] [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: 583 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by PDF Invoices & Packing Slips for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.69 ▲0.35 | 1.67 ▲0.04 | 37.38 ▼5.39 |
Dashboard /wp-admin | 2,204 ▲29 | 5.60 ▼0.10 | 93.01 ▼18.44 | 40.49 ▼2.50 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.95 ▼0.06 | 40.24 ▼2.76 | 36.19 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.08 ▲0.31 | 603.56 ▼23.86 | 57.26 ▲2.71 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▲0.02 | 96.50 ▼3.71 | 41.90 ▲1.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/masterminds/html5/bin/entities.php
- 142× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/phenx/php-svg-lib/src/Svg/Tag/Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/phenx/php-font-lib/src/FontLib/Table/Type/nameRecord.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/phenx/php-font-lib/src/FontLib/Table/Type/os2.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/ListBullet.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php:24
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/phenx/php-svg-lib/src/Svg/Tag/StyleTag.php:13
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/NullFrameReflower.php:17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/TableRow.php:17
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/sabberworm/php-css-parser/src/Value/CalcFunction.php:9
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/phenx/php-font-lib/src/FontLib/OpenType/File.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: pdf, packing slips, invoices, ubl, woocommerce
woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php 85% from 13 tests
The main file in "PDF Invoices & Packing Slips for WooCommerce" v. 3.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-pdf-invoices-packing-slips.php" instead of "woocommerce-pdf-invoices-packingslips.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin102,467 lines of code in 407 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 329 | 11,576 | 20,547 | 78,274 |
PO File | 19 | 6,916 | 9,795 | 18,552 |
CSS | 14 | 452 | 61 | 2,222 |
Markdown | 15 | 411 | 0 | 1,357 |
JavaScript | 19 | 168 | 129 | 1,284 |
JSON | 3 | 0 | 0 | 703 |
SVG | 7 | 0 | 1 | 58 |
HTML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 31.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 811.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 13 | |
Traits | 1 | |
Classes | 268 | |
▷ Abstract classes | 21 | 7.84% |
▷ Concrete classes | 247 | 92.16% |
▷ Final classes | 2 | 0.81% |
Methods | 2,873 | |
▷ Static methods | 225 | 7.83% |
▷ Public methods | 2,373 | 82.60% |
▷ Protected methods | 414 | 14.41% |
▷ Private methods | 86 | 2.99% |
Functions | 190 | |
▷ Named functions | 144 | 75.79% |
▷ Anonymous functions | 46 | 24.21% |
Constants | 239 | |
▷ Global constants | 19 | 7.95% |
▷ Class constants | 220 | 92.05% |
▷ Public constants | 214 | 97.27% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dropbox_logo.png | 4.27KB | 2.21KB | ▼ 48.19% |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
assets/images/cloud-print.png | 2.63KB | 2.55KB | ▼ 2.93% |
assets/images/wpo-helper.png | 17.86KB | 5.25KB | ▼ 70.62% |