Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.84ms] Passed 4 tests
A check of server-side resources used by PDF Invoice for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.03 ▼4.72 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.66 ▼1.89 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 49.11 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.08 ▼9.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.07 ▲0.14 |
Server storage [IO: ▲10.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 319 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Invoice for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.44 ▲0.07 | 1.66 ▲0.01 | 41.10 ▼4.39 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼1.00 | 108.79 ▲7.93 | 40.60 ▼5.45 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.02 | 39.48 ▼2.84 | 38.18 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.37 ▲0.19 | 660.66 ▼67.59 | 51.90 ▼21.21 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▲0.01 | 96.92 ▼6.33 | 50.87 ▲5.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/pdf-invoice-for-woocommerce/preview/template-1.php
- 131× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/dompdf/dompdf/src/FrameDecorator/TableRow.php:18
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\PrimitiveValue' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/sabberworm/php-css-parser/src/Value/Size.php:10
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Type/maxp.php:17
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSList' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/sabberworm/php-css-parser/src/Property/AtRule.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pdf-invoice-for-woocommerce/templates/template-1.php:167
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/sabberworm/php-css-parser/src/Value/LineName.php:10
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/pdf-invoice-for-woocommerce/dompdf/vendor/dompdf/dompdf/src/FrameDecorator/ListBullet.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: Please describe screenshot #1 in pdf-invoice-for-woocommerce/assets to your readme.txt
pdf-invoice-for-woocommerce/invoice-for-wc.php 77% from 13 tests
The principal PHP file in "PDF Invoice for Woocommerce" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pdf-invoice-for-woocommerce.php" instead of "invoice-for-wc.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.8" instead of "5.4")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin57,227 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 212 | 8,587 | 16,760 | 40,884 |
JSON | 15 | 0 | 0 | 14,464 |
Markdown | 10 | 381 | 0 | 1,279 |
CSS | 1 | 92 | 38 | 391 |
PO File | 1 | 49 | 55 | 124 |
YAML | 1 | 9 | 0 | 35 |
JavaScript | 1 | 0 | 0 | 25 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 32.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 809.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 190 | |
▷ Abstract classes | 12 | 6.32% |
▷ Concrete classes | 178 | 93.68% |
▷ Final classes | 0 | 0.00% |
Methods | 2,210 | |
▷ Static methods | 145 | 6.56% |
▷ Public methods | 1,751 | 79.23% |
▷ Protected methods | 400 | 18.10% |
▷ Private methods | 59 | 2.67% |
Functions | 30 | |
▷ Named functions | 2 | 6.67% |
▷ Anonymous functions | 28 | 93.33% |
Constants | 217 | |
▷ Global constants | 3 | 1.38% |
▷ Class constants | 214 | 98.62% |
▷ Public constants | 209 | 97.66% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to 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 |
dompdf/vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |