Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼140.85ms] Passed 4 tests
This is a short check of server-side resources used by PDF Invoices and Packing Slips For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▲0.35 | 31.00 ▲7.36 |
Dashboard /wp-admin | 3.64 ▲0.57 | 48.70 ▲5.29 |
Posts /wp-admin/edit.php | 3.69 ▲0.57 | 44.91 ▲9.97 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.58 | 86.34 ▼580.76 |
Media Library /wp-admin/upload.php | 3.52 ▲0.51 | 30.74 ▲4.73 |
Server storage [IO: ▲64.94MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Total filesystem usage should be limited to 25MB (currently using 64.94MB)
Filesystem: 707 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 For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,670 ▲69 | 15.62 ▼0.17 | 4.80 ▼1.83 | 75.69 ▼1.39 |
Dashboard /wp-admin | 2,935 ▲39 | 6.00 ▼0.21 | 129.94 ▼5.17 | 173.68 ▼6.45 |
Posts /wp-admin/edit.php | 2,739 ▲2 | 3.22 ▼0.14 | 76.54 ▲12.63 | 143.78 ▲0.76 |
Add New Post /wp-admin/post-new.php | 3,589 ▼117 | 18.04 ▼0.88 | 501.27 ▲80.98 | 237.27 ▲70.05 |
Media Library /wp-admin/upload.php | 1,754 ▲2 | 5.53 ▲0.05 | 138.52 ▼0.80 | 194.64 ▲13.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 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
- 210× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > 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/Code.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Barcode/Imb.php:34
- > 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/Tr.php:7
- > 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/H1.php:5
- > 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/Q.php:5
- > 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/BaseWriter.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/mpdf/mpdf/src/Exception/InvalidArgumentException.php:5
- > 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/BarCode.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\TypeFilter\\TypeFilter' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/ReplaceFilter.php:8
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/pdf-invoices-and-packing-slips-for-woocommerce/includes/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php:19
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
pdf-invoices-and-packing-slips-for-woocommerce/start.php 92% from 13 tests
The entry point to "PDF Invoices and Packing Slips For WooCommerce" version 1.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- 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 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin83,410 lines of code in 487 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 407 | 10,916 | 12,797 | 79,669 |
JSON | 7 | 32 | 0 | 1,129 |
Markdown | 8 | 373 | 0 | 1,127 |
SVG | 53 | 0 | 0 | 484 |
CSS | 4 | 92 | 19 | 449 |
PO File | 1 | 201 | 201 | 425 |
YAML | 3 | 19 | 2 | 71 |
XML | 2 | 11 | 0 | 54 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 7,009)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 58.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,009.00 |
Average method complexity | 13.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 10 | |
Traits | 6 | |
Classes | 300 | |
▷ Abstract classes | 9 | 3.00% |
▷ Concrete classes | 291 | 97.00% |
▷ Final classes | 12 | 4.12% |
Methods | 1,406 | |
▷ Static methods | 127 | 9.03% |
▷ Public methods | 1,223 | 86.98% |
▷ Protected methods | 54 | 3.84% |
▷ Private methods | 129 | 9.17% |
Functions | 48 | |
▷ Named functions | 23 | 47.92% |
▷ Anonymous functions | 25 | 52.08% |
Constants | 441 | |
▷ Global constants | 19 | 4.31% |
▷ Class constants | 422 | 95.69% |
▷ Public constants | 422 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/myclabs/deep-copy/doc/deep-clone.png | 13.68KB | 6.54KB | ▼ 52.22% |
includes/vendor/myclabs/deep-copy/doc/clone.png | 12.09KB | 5.48KB | ▼ 54.70% |
includes/vendor/myclabs/deep-copy/doc/deep-copy.png | 10.64KB | 5.23KB | ▼ 50.84% |
assets/images/doc-settings-active-arrow.png | 1.14KB | 0.29KB | ▼ 74.66% |
assets/images/invoice-temp1.png | 3.93KB | 4.10KB | 0.00% |