Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼303.67ms] Passed 4 tests
Analyzing server-side resources used by Pdf Invoices and Packing Slips Bundle Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.40 ▲1.58 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.80 ▼1.82 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.68 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 90.01 ▼1,209.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.18 ▼1.17 |
PDF Packing Slip /wp-admin/admin.php?page=pdf-packing-slip | 3.10 | 17.62 |
Essential Kit /wp-admin/admin.php?page=ocpsw_kit | 3.10 | 18.98 |
Server storage [IO: ▲10.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 348 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pdf Invoices and Packing Slips Bundle Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,038 ▲294 | 17.60 ▲1.98 | 5.52 ▼1.00 | 1.98 ▼0.19 |
Dashboard /wp-admin | 2,888 ▲27 | 6.13 ▼0.03 | 114.24 ▼18.82 | 157.23 ▼4.40 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▼0.00 | 68.13 ▲3.08 | 138.19 ▼8.13 |
Add New Post /wp-admin/post-new.php | 1,719 ▲8 | 22.05 ▲0.76 | 404.27 ▼28.54 | 160.76 ▲1.93 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.49 ▲0.02 | 102.07 ▼48.90 | 180.62 ▼3.29 |
PDF Packing Slip /wp-admin/admin.php?page=pdf-packing-slip | 28 | 0.94 | 0.03 | 16.68 |
Essential Kit /wp-admin/admin.php?page=ocpsw_kit | 28 | 0.94 | 0.04 | 17.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/oc-packing-slip.php
- > /wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/demo2.php
- 185× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/fonts/dompdf_font_family_cache.php on line 54
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/src/FrameDecorator/Table.php:21
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\Block' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/src/FrameReflower/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/php-svg-lib/src/Svg/Tag/Polyline.php:11
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/fonts/dompdf_font_family_cache.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/php-svg-lib/src/Svg/Tag/StyleTag.php:13
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/fonts/dompdf_font_family_cache.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/src/FrameDecorator/Page.php:22
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/lib/php-css-parser/tests/Sabberworm/CSS/RuleSet/DeclarationBlockTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-invoices-and-packing-slips-bundle-woocommerce/includes/dompdf/src/FrameDecorator/Inline.php:22
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=pdf-packing-slip
- > Network (severe)
wp-admin/admin.php?page=pdf-packing-slip - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=ocpsw_kit
- > Network (severe)
wp-admin/admin.php?page=ocpsw_kit - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in pdf-invoices-and-packing-slips-bundle-woocommerce/assets to your readme.txt
- Contributors: Plugin contributors field is missing
pdf-invoices-and-packing-slips-bundle-woocommerce/oc-packing-slip.php 92% from 13 tests
"Pdf Invoices and Packing Slips Bundle Woocommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pdf-invoices-and-packing-slips-bundle-woocommerce.php" instead of "oc-packing-slip.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin43,532 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 204 | 8,865 | 15,394 | 41,079 |
CSS | 35 | 137 | 62 | 984 |
Markdown | 6 | 261 | 0 | 930 |
XML | 6 | 3 | 2 | 202 |
JSON | 5 | 0 | 0 | 148 |
JavaScript | 3 | 9 | 5 | 100 |
YAML | 4 | 16 | 3 | 63 |
HTML | 1 | 0 | 0 | 17 |
SVG | 2 | 0 | 0 | 9 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 37.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 797.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 181 | |
▷ Abstract classes | 12 | 6.63% |
▷ Concrete classes | 169 | 93.37% |
▷ Final classes | 0 | 0.00% |
Methods | 2,056 | |
▷ Static methods | 84 | 4.09% |
▷ Public methods | 1,753 | 85.26% |
▷ Protected methods | 210 | 10.21% |
▷ Private methods | 93 | 4.52% |
Functions | 15 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 15 | 100.00% |
Constants | 181 | |
▷ Global constants | 9 | 4.97% |
▷ Class constants | 172 | 95.03% |
▷ Public constants | 172 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
images/pdf.png | 0.37KB | 0.30KB | ▼ 18.18% |
images/bill.png | 0.50KB | 0.50KB | ▼ 1.36% |
images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |