Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.92ms] Passed 4 tests
Analyzing server-side resources used by PDF Invoice and Packing Slip for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.20 ▼2.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.93 ▼7.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.30 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.21 ▼14.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.37 ▲6.76 |
Server storage [IO: ▲13.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 425 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PDF Invoice and Packing Slip for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.65 ▼0.72 | 1.68 ▼0.15 | 39.42 ▼4.53 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.97 | 100.62 ▼0.45 | 39.54 ▲0.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.01 | 39.13 ▲1.33 | 34.76 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.78 ▼0.39 | 658.53 ▼1.73 | 60.09 ▲7.56 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.02 | 107.77 ▲7.11 | 46.05 ▲0.43 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/templates/default/packing/footer.php
- > /wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/templates/default/invoice/footer.php
- 133× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Table/Type/head.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Table/Type/kern.php:17
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/sabberworm/php-css-parser/src/Value/LineName.php:10
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Group.php:13
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Parser\\StringInputStream' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/masterminds/html5/src/HTML5/Parser/FileInputStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\Header' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/WOFF/Header.php:16
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Table/Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/wpwing-pdf-invoice-packing-slip-for-woocommerce/vendor/dompdf/dompdf/src/Renderer.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: pdf, invoice, packing list, delivery notes, shipping labels...
wpwing-pdf-invoice-packing-slip-for-woocommerce/wpwing-pdf-invoice-packing-slip-for-woocommerce.php 92% from 13 tests
The entry point to "PDF Invoice and Packing Slip for WooCommerce" version 1.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 detected65,885 lines of code in 251 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 9,087 | 17,281 | 41,409 |
JSON | 10 | 0 | 0 | 22,151 |
Markdown | 11 | 390 | 0 | 1,314 |
CSS | 5 | 147 | 42 | 637 |
JavaScript | 3 | 23 | 69 | 262 |
Sass | 1 | 11 | 0 | 52 |
YAML | 1 | 9 | 0 | 35 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 811.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 193 | |
▷ Abstract classes | 13 | 6.74% |
▷ Concrete classes | 180 | 93.26% |
▷ Final classes | 0 | 0.00% |
Methods | 2,269 | |
▷ Static methods | 139 | 6.13% |
▷ Public methods | 1,796 | 79.15% |
▷ Protected methods | 404 | 17.81% |
▷ Private methods | 69 | 3.04% |
Functions | 36 | |
▷ Named functions | 6 | 16.67% |
▷ Anonymous functions | 30 | 83.33% |
Constants | 227 | |
▷ Global constants | 13 | 5.73% |
▷ Class constants | 214 | 94.27% |
▷ Public constants | 209 | 97.66% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
103 PNG files occupy 2.81MB with 1.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/images/09.png | 70.03KB | 23.58KB | ▼ 66.32% |
assets/public/images/09-icon.png | 1.42KB | 0.38KB | ▼ 73.63% |
assets/src/images/04.png | 37.45KB | 13.92KB | ▼ 62.83% |
assets/src/images/04-icon.png | 1.35KB | 0.57KB | ▼ 57.72% |
assets/src/images/12-bg.png | 16.45KB | 1.24KB | ▼ 92.47% |