Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.35ms] Passed 4 tests
Server-side resources used by EDD Checkout Invoice Fields
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.54 ▼8.57 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.29 ▼3.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.29 ▼4.70 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.29 ▼8.34 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.06 ▼2.25 |
EDD Checkout Invoice Fields /wp-admin/options-general.php?page=options_page_slug | 3.23 | 32.55 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for EDD Checkout Invoice Fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.23 ▼0.05 | 1.78 ▼0.36 | 44.06 ▲1.18 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.08 | 91.89 ▼8.32 | 37.54 ▼4.36 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▲0.04 | 39.48 ▲2.69 | 35.88 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.95 ▼0.01 | 646.67 ▼20.26 | 63.86 ▲10.25 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.21 ▼0.04 | 100.57 ▲1.73 | 47.22 ▲0.98 |
EDD Checkout Invoice Fields /wp-admin/options-general.php?page=options_page_slug | 759 | 2.02 | 25.59 | 28.86 |
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 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-checkout-invoice-fields/modules/validate-fields.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-checkout-invoice-fields/modules/required-fields.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-checkout-invoice-fields/modules/add-fields.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/edd-checkout-invoice-fields/edd-checkout-invoice-fields.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-checkout-invoice-fields/modules/view-details.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-checkout-invoice-fields/modules/save-fields.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: checkout, easy digital download, fattura, fiscalcode, iva...
edd-checkout-invoice-fields/edd-checkout-invoice-fields.php Passed 13 tests
The entry point to "EDD Checkout Invoice Fields" version 0.3.4 is a PHP file that has certain tags in its header comment area
41 characters long description:
Add invoice extra fields in checkout page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected172 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 68 | 81 | 131 |
PO File | 1 | 18 | 28 | 41 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin