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.20MB] [CPU: ▼4.98ms] Passed 4 tests
A check of server-side resources used by HDInvoice | Create Invoices
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 39.72 ▼0.06 |
Dashboard /wp-admin | 3.51 ▲0.20 | 50.04 ▲1.20 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 44.79 ▼3.02 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 82.84 ▼18.02 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.77 ▲4.07 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 152 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
hdv_PLUGIN_VERSION |
hdv_dashboard |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by HDInvoice | Create Invoices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.27 ▼1.16 | 1.98 ▲0.30 | 43.42 ▲2.37 |
Dashboard /wp-admin | 2,205 ▲17 | 5.87 ▼0.03 | 112.54 ▲12.65 | 67.41 ▲23.49 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.13 ▲0.10 | 33.64 ▼7.89 | 31.57 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 23.51 ▲5.30 | 762.99 ▲155.68 | 53.37 ▲3.03 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.13 ▼0.06 | 92.85 ▼6.99 | 66.46 ▲22.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- hdv_PLUGIN_VERSION
- widget_recent-comments
- widget_theysaidso_widget
- hdv_dashboard
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/hdinvoice/includes/templates/settings/global.php
- > /wp-content/plugins/hdinvoice/hdinvoice.php
- > /wp-content/plugins/hdinvoice/includes/templates/settings/eCommerce.php
- > /wp-content/plugins/hdinvoice/includes/templates/tools.php
- > /wp-content/plugins/hdinvoice/includes/templates/add-new-customer.php
- > /wp-content/plugins/hdinvoice/includes/templates/help.php
- > /wp-content/plugins/hdinvoice/includes/templates/view-customer.php
- 55× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/hdinvoice/includes/templates/settings/company.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/hdinvoice/includes/templates/save-new-customer.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function hdv_get_settings_values() in wp-content/plugins/hdinvoice/includes/templates/save-current-invoice.php:9
- > PHP Notice
Undefined index: hdv_customer_id in wp-content/plugins/hdinvoice/includes/templates/view-customer.php on line 7
- > PHP Notice
Trying to get property 'currency_position' of non-object in wp-content/plugins/hdinvoice/includes/templates/settings/global.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/hdinvoice/includes/templates/settings/customizer.php:16
- > PHP Notice
Undefined variable: hdv_setting in wp-content/plugins/hdinvoice/includes/templates/settings/customizer.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function hdv_get_tax_percent() in wp-content/plugins/hdinvoice/includes/templates/add-invoice.php:8
- > PHP Notice
Trying to get property 'state' of non-object in wp-content/plugins/hdinvoice/includes/templates/settings/company.php on line 66
- > PHP Notice
Trying to get property 'currency_symbol' of non-object in wp-content/plugins/hdinvoice/includes/templates/settings/global.php on line 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 on the user side
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
6 plugin tags: invoices, ecommerce, send invoice, invoice, hdinvoice...
hdinvoice/hdinvoice.php Passed 13 tests
The main PHP script in "HDInvoice | Create Invoices" version 0.2 is automatically included on every request by WordPress
32 characters long description:
The ultimate invoicing solution.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin12,432 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 89 | 602 | 825 | 6,470 |
PHP | 31 | 333 | 387 | 3,049 |
CSS | 16 | 274 | 99 | 1,972 |
Sass | 7 | 114 | 1 | 940 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 50 | 96.15% |
▷ Anonymous functions | 2 | 3.85% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 2.96KB | 2.09KB | ▼ 29.35% |
images/logo-16.png | 0.44KB | 0.44KB | 0.00% |