Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼169.51ms] Passed 4 tests
A check of server-side resources used by Invoice System for WooCommerce- Automate & Manage PDF Invoices, Packing Slips, Shipping Labels and Delivery Notes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 32.83 ▲10.29 |
Dashboard /wp-admin | 3.06 ▲0.00 | 44.76 ▲0.55 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.14 ▲4.49 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 87.06 ▼683.73 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 32.37 ▲0.66 |
Server storage [IO: ▲22.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 576 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Invoice System for WooCommerce- Automate & Manage PDF Invoices, Packing Slips, Shipping Labels and Delivery Notes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.87 ▲0.28 | 9.76 ▼1.82 | 46.73 ▼1.24 |
Dashboard /wp-admin | 2,970 ▲39 | 5.91 ▼0.08 | 139.26 ▼3.02 | 114.72 ▼2.36 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 63.79 ▼1.22 | 89.85 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,500 ▼91 | 18.48 ▼0.33 | 364.92 ▼28.04 | 107.04 ▼1.11 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.06 ▲0.04 | 160.20 ▲18.21 | 115.23 ▲1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/invoice-system-for-woocommerce/public/partials/invoice-system-for-woocommerce-public-display.php
- 185× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/RuleSet.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/Value.php:9
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/src/FrameReflower/Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Renderer/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Positioner/TableRow.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/DirectoryEntry.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Dompdf\\Canvas' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Adapter/PDFLib.php:34
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/FrameDecorator/Image.php:20
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Ellipse.php:11
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/invoice-system-for-woocommerce/package/lib/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Shape.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: woo invoices, packing slips, invoice, invoices, print invoice...
invoice-system-for-woocommerce/invoice-system-for-woocommerce.php Passed 13 tests
The main PHP script in "Invoice System for WooCommerce- Automate & Manage PDF Invoices, Packing Slips, Shipping Labels and Delivery Notes" version 1.0.5 is automatically included on every request by WordPress
128 characters long description:
Generate Invoices and packing slips automatically and sent them to your customers via email with Invoice System for WooCommerce.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin72,317 lines of code in 340 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 238 | 10,008 | 18,615 | 66,320 |
CSS | 56 | 496 | 122 | 2,815 |
JavaScript | 13 | 167 | 244 | 1,074 |
Markdown | 6 | 265 | 0 | 947 |
PO File | 1 | 204 | 331 | 485 |
JSON | 6 | 0 | 0 | 378 |
XML | 6 | 3 | 2 | 200 |
YAML | 3 | 12 | 2 | 64 |
HTML | 1 | 0 | 0 | 17 |
SVG | 10 | 0 | 0 | 17 |
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.44 |
Average class complexity | 43.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 797.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 272 | |
▷ Abstract classes | 16 | 5.88% |
▷ Concrete classes | 256 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 3,321 | |
▷ Static methods | 178 | 5.36% |
▷ Public methods | 2,835 | 85.37% |
▷ Protected methods | 356 | 10.72% |
▷ Private methods | 130 | 3.91% |
Functions | 47 | |
▷ Named functions | 19 | 40.43% |
▷ Anonymous functions | 28 | 59.57% |
Constants | 277 | |
▷ Global constants | 5 | 1.81% |
▷ Class constants | 272 | 98.19% |
▷ Public constants | 272 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
27 compressed PNG files occupy 0.51MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/image/mwb-logo.png | 0.25KB | 0.26KB | 0.00% |
admin/image/invoice_customizable_icon.png | 3.59KB | 3.59KB | 0.00% |
admin/image/email-icon.png | 2.01KB | 2.03KB | 0.00% |
package/lib/colorpicker-js/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
package/lib/dompdf/vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |