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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.38ms] Passed 4 tests
A check of server-side resources used by DN Checkout Extra Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.98 ▼3.58 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.08 ▲1.57 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.04 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 95.57 ▲1.44 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.28 ▲2.10 |
Checkout Extra Fields /wp-admin/admin.php?page=dn_checkout_extra_fields_manage | 3.30 | 30.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
DN Checkout Extra Fields: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.26 ▼1.12 | 2.00 ▲0.26 | 45.30 ▲0.67 |
Dashboard /wp-admin | 2,208 ▲17 | 4.80 ▼1.13 | 107.56 ▲6.18 | 42.97 ▼2.73 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.02 | 39.49 ▲4.46 | 34.29 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,515 ▼18 | 22.72 ▲1.13 | 632.54 ▼58.78 | 48.97 ▲2.47 |
Media Library /wp-admin/upload.php | 1,387 ▼1 | 4.13 ▼0.05 | 94.77 ▼13.64 | 47.40 ▲1.39 |
Checkout Extra Fields /wp-admin/admin.php?page=dn_checkout_extra_fields_manage | 767 | 2.17 | 33.55 | 25.15 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dn-wc-extra-fields/dn-checkout-extra-fields.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dn-wc-extra-fields/includes/about.php:2
- > 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 93% 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: codice fiscale, custom field, partita iva, checkout field, woocommerce
dn-wc-extra-fields/dn-checkout-extra-fields.php 85% from 13 tests
The main PHP script in "DN Checkout Extra Fields" version 1.0.3 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: The principal plugin file should be the same as the plugin slug ("dn-wc-extra-fields.php" instead of "dn-checkout-extra-fields.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin457 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 7 | 24 | 326 |
PO File | 1 | 92 | 143 | 99 |
CSS | 1 | 6 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/action-delete.png | 5.63KB | 0.49KB | ▼ 91.25% |
images/action-edit.png | 5.84KB | 0.48KB | ▼ 91.70% |