Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.87MB] [CPU: ▼36.87ms] Passed 4 tests
Analyzing server-side resources used by Order Invoice PDF for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.00 ▲4.86 |
Dashboard /wp-admin | 3.09 ▼0.26 | 22.51 ▼36.48 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 26.86 ▼23.75 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 23.37 ▼81.89 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 24.31 ▼5.34 |
Invoices /wp-admin/admin.php?page=invoices | 3.09 | 21.02 |
Server storage [IO: ▲5.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 287 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Invoice PDF for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.35 ▲0.17 | 1.55 ▲0.04 | 38.24 ▼3.31 |
Dashboard /wp-admin | 2,200 ▲20 | 5.63 ▼0.03 | 91.40 ▲1.61 | 35.62 ▼7.57 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.08 ▲0.05 | 40.71 ▲4.09 | 34.26 ▼4.86 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.16 ▲0.05 | 603.68 ▼47.87 | 50.51 ▼6.59 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.21 ▲0.02 | 92.65 ▼0.85 | 42.52 ▼0.20 |
Invoices /wp-admin/admin.php?page=invoices | 1,130 | 3.21 | 49.88 | 65.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=invoices
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% 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 take a closer look at the following
- 133× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Document.php:30
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Header' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/EOT/Header.php:21
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Glyph/Outline.php:20
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/Page.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\DirectoryEntry' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/TrueType/TableDirectoryEntry.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/Page.php:22
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/Table/Type/os2.php:17
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\RuleSet\\RuleSet' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/RuleSet/DeclarationBlock.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/dompdf/dompdf/src/Renderer.php:27
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\Header' not found in wp-content/plugins/order-invoice-pdf-for-woocommerce/vendor/phenx/php-font-lib/src/FontLib/WOFF/Header.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
order-invoice-pdf-for-woocommerce/wpe-wc-invoice-pdf.php 85% from 13 tests
This is the main PHP file of "Order Invoice PDF for WooCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("order-invoice-pdf-for-woocommerce.php" instead of "wpe-wc-invoice-pdf.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin48,244 lines of code in 221 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 189 | 8,255 | 15,221 | 34,486 |
CSS | 6 | 98 | 71 | 7,712 |
SVG | 2 | 0 | 0 | 2,959 |
JavaScript | 3 | 582 | 204 | 1,611 |
Markdown | 6 | 255 | 0 | 905 |
JSON | 7 | 0 | 0 | 324 |
XML | 4 | 3 | 2 | 185 |
YAML | 3 | 12 | 2 | 45 |
HTML | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 35.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 173 | |
▷ Abstract classes | 12 | 6.94% |
▷ Concrete classes | 161 | 93.06% |
▷ Final classes | 0 | 0.00% |
Methods | 1,898 | |
▷ Static methods | 82 | 4.32% |
▷ Public methods | 1,617 | 85.19% |
▷ Protected methods | 186 | 9.80% |
▷ Private methods | 95 | 5.01% |
Functions | 14 | |
▷ Named functions | 1 | 7.14% |
▷ Anonymous functions | 13 | 92.86% |
Constants | 158 | |
▷ Global constants | 3 | 1.90% |
▷ Class constants | 155 | 98.10% |
▷ Public constants | 155 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/invoice.png | 0.29KB | 0.25KB | ▼ 15.10% |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |