Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.12MB] [CPU: ▼5.51ms] Passed 4 tests
This is a short check of server-side resources used by PDF Invoices and Packing Slips For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.11 ▲2.51 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.98 ▼0.79 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 59.67 ▲7.71 |
Add New Post /wp-admin/post-new.php | 5.26 ▼0.63 | 69.99 ▼24.32 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 41.01 ▲0.55 |
Server storage [IO: ▲77.90MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 77.90MB)
Filesystem: 1,005 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for PDF Invoices and Packing Slips For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,786 ▲25 | 14.23 ▼0.18 | 1.86 ▲0.24 | 45.66 ▲1.19 |
Dashboard /wp-admin | 2,194 ▲20 | 5.65 ▲0.06 | 79.96 ▼20.62 | 51.20 ▲7.98 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.99 ▼0.02 | 39.14 ▼5.39 | 50.19 ▲13.74 |
Add New Post /wp-admin/post-new.php | 45 ▼1,486 | 0.44 ▼22.57 | 0.13 ▼693.18 | 12.70 ▼44.83 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.17 ▼0.04 | 95.82 ▼9.27 | 55.75 ▲7.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/views/admin-root.php
- 218× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Writer/ObjectWriter.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Tag/I.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php:18
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Writer/BookmarkWriter.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Tag/Details.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Tag/Dl.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\BlockTag' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Tag/FieldSet.php:5
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php:33
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyMatcher.php:8
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Tag/Select.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
pdf-invoices-and-packing-slips-for-woocommerce/start.php 92% from 13 tests
Analyzing the main PHP file in "PDF Invoices and Packing Slips For WooCommerce" version 1.3.6
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pdf-invoices-and-packing-slips-for-woocommerce.php" instead of "start.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected85,245 lines of code in 500 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 405 | 11,566 | 12,560 | 80,796 |
JSON | 8 | 15 | 0 | 1,350 |
Markdown | 10 | 391 | 0 | 1,181 |
PO File | 1 | 234 | 234 | 491 |
SVG | 53 | 0 | 0 | 484 |
CSS | 4 | 92 | 19 | 450 |
YAML | 7 | 62 | 6 | 196 |
XML | 5 | 19 | 0 | 123 |
JavaScript | 3 | 0 | 2 | 86 |
HTML | 3 | 0 | 0 | 85 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,016)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 59.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,016.00 |
Average method complexity | 13.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 296 | |
▷ Abstract classes | 9 | 3.04% |
▷ Concrete classes | 287 | 96.96% |
▷ Final classes | 13 | 4.53% |
Methods | 1,441 | |
▷ Static methods | 142 | 9.85% |
▷ Public methods | 1,251 | 86.81% |
▷ Protected methods | 55 | 3.82% |
▷ Private methods | 135 | 9.37% |
Functions | 37 | |
▷ Named functions | 12 | 32.43% |
▷ Anonymous functions | 25 | 67.57% |
Constants | 442 | |
▷ Global constants | 16 | 3.62% |
▷ Class constants | 426 | 96.38% |
▷ Public constants | 426 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.60MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-L-250.png | 183.72KB | 0.33KB | ▼ 99.82% |
includes/vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-L-100.png | 29.52KB | 0.25KB | ▼ 99.14% |
includes/vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-L-250-noborder.png | 183.72KB | 0.32KB | ▼ 99.82% |
assets/images/woocommerce-placeholder.png | 4.13KB | 2.42KB | ▼ 41.32% |
includes/vendor/mpdf/qrcode/tests/reference/LOREM-IPSUM-2019-Q-250.png | 183.72KB | 0.33KB | ▼ 99.82% |