Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼7.23ms] Passed 4 tests
This is a short check of server-side resources used by Invoice Payment for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.48 | 39.34 ▲0.32 |
Dashboard /wp-admin | 3.79 ▲0.49 | 50.87 ▼0.14 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 51.16 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 82.38 ▼28.98 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 37.09 ▼0.10 |
Server storage [IO: ▲10.21MB] [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: 354 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Invoice Payment for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲55 | 14.34 ▼0.01 | 1.77 ▲0.16 | 38.62 ▼6.41 |
Dashboard /wp-admin | 2,207 ▲33 | 5.51 ▼0.07 | 84.50 ▼0.92 | 40.42 ▲3.99 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.97 ▲0.03 | 41.18 ▲1.10 | 40.06 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,547 ▲11 | 25.07 ▲1.97 | 681.51 ▼115.71 | 78.08 ▲25.73 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.24 ▲0.03 | 98.80 ▼19.41 | 42.13 ▼6.16 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/invoice-payment-for-woocommerce/public/partials/wc-invoice-payment-public-display.php
- > /wp-content/plugins/invoice-payment-for-woocommerce/admin/partials/wc-invoice-payment-admin-display.php
- 138× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\Block' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/dompdf/dompdf/src/FrameDecorator/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/phenx/php-font-lib/src/FontLib/Glyph/Outline.php:20
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Polygon.php:11
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/dompdf/dompdf/src/Positioner/Absolute.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/sabberworm/php-css-parser/src/Comment/Comment.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/sabberworm/php-css-parser/src/Value/Color.php:10
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\Value' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/sabberworm/php-css-parser/src/Value/ValueList.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/dompdf/dompdf/src/FrameDecorator/TableRowGroup.php:19
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/phenx/php-svg-lib/src/Svg/Tag/Circle.php:13
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/invoice-payment-for-woocommerce/includes/libs/dompdf/vendor/dompdf/dompdf/src/Positioner/NullPositioner.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Add new invoice utilizing our convenient invoice builder;), #2 (Get an URL for your client to pay;), #3 (See all generated invoices and their status.)
invoice-payment-for-woocommerce/wc-invoice-payment.php 85% from 13 tests
The main PHP file in "Invoice Payment for WooCommerce" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("invoice-payment-for-woocommerce.php" instead of "wc-invoice-payment.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected51,826 lines of code in 271 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 227 | 9,674 | 18,402 | 44,628 |
JSON | 19 | 0 | 0 | 4,632 |
Markdown | 13 | 422 | 0 | 1,367 |
CSS | 6 | 197 | 50 | 868 |
JavaScript | 2 | 44 | 36 | 171 |
PO File | 1 | 49 | 1 | 100 |
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
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 31.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 811.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 213 | |
▷ Abstract classes | 12 | 5.63% |
▷ Concrete classes | 201 | 94.37% |
▷ Final classes | 9 | 4.48% |
Methods | 2,396 | |
▷ Static methods | 201 | 8.39% |
▷ Public methods | 1,911 | 79.76% |
▷ Protected methods | 421 | 17.57% |
▷ Private methods | 64 | 2.67% |
Functions | 43 | |
▷ Named functions | 8 | 18.60% |
▷ Anonymous functions | 35 | 81.40% |
Constants | 252 | |
▷ Global constants | 38 | 15.08% |
▷ Class constants | 214 | 84.92% |
▷ Public constants | 209 | 97.66% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libs/dompdf/vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |