Benchmarks
Plugin footprint 82% 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: ▲7.32MB] [CPU: ▲33.35ms] 75% from 4 tests
Server-side resources used by InvoiceBoo - Invoices for WooCommerce
Please take the time to fix the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 7.32MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.98 ▲7.52 | 75.53 ▲35.91 |
Dashboard /wp-admin | 11.00 ▲7.70 | 77.56 ▲27.16 |
Posts /wp-admin/edit.php | 11.00 ▲7.64 | 87.19 ▲41.13 |
Add New Post /wp-admin/post-new.php | 12.32 ▲6.43 | 127.06 ▲29.18 |
Media Library /wp-admin/upload.php | 11.00 ▲7.77 | 76.85 ▲42.49 |
Server storage [IO: ▲6.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_invoiceboo |
New WordPress options |
---|
invoiceboo_data |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for InvoiceBoo - Invoices for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.09 ▼0.64 | 1.77 ▼0.00 | 38.73 ▼7.12 |
Dashboard /wp-admin | 2,201 ▲21 | 5.57 ▼0.02 | 89.79 ▲3.51 | 39.39 ▲0.92 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.04 | 40.54 ▲4.86 | 36.37 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 21.86 ▲3.94 | 706.86 ▲58.80 | 55.36 ▼3.18 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.18 ▲0.03 | 109.55 ▲12.07 | 49.01 ▲5.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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 | 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/invoiceboo-invoices-for-woocommerce/admin/partials/invoiceboo-admin-display.php
- > /wp-content/plugins/invoiceboo-invoices-for-woocommerce/public/partials/invoiceboo-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'InvoiceBoo_TCPDF' not found in wp-content/plugins/invoiceboo-invoices-for-woocommerce/includes/class-invoiceboo-pdf.php:110
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: pdf, woocommerce, woocommerce invoices, invoice, download
invoiceboo-invoices-for-woocommerce/invoiceboo.php 92% from 13 tests
The main PHP script in "InvoiceBoo - Invoices for WooCommerce" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("invoiceboo-invoices-for-woocommerce.php" instead of "invoiceboo.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin48,506 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,929 | 12,557 | 47,484 |
CSS | 2 | 161 | 22 | 826 |
JavaScript | 4 | 56 | 55 | 125 |
Markdown | 1 | 37 | 0 | 71 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,413)
- Method cyclomatic complexity should be reduced to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 277.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,413.00 |
Average method complexity | 9.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 795 | |
▷ Static methods | 112 | 14.09% |
▷ Public methods | 510 | 64.15% |
▷ Protected methods | 278 | 34.97% |
▷ Private methods | 7 | 0.88% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 111 | |
▷ Global constants | 111 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin