Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼305.07ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Custom Checkout Fields Editor With Drag & Drop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▼0.02 | 50.93 ▼0.55 |
Dashboard /wp-admin | 3.46 ▲0.05 | 34.40 ▲0.76 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 37.69 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 93.08 ▼1,220.71 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 28.40 ▲3.36 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Custom Checkout Fields Editor With Drag & Drop
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,191 ▼563 | 16.12 ▲0.51 | 0.36 ▼6.35 | 32.96 ▲30.35 |
Dashboard /wp-admin | 2,888 ▲27 | 6.16 ▼0.02 | 127.29 ▼7.07 | 166.92 ▲0.23 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▼0.01 | 63.02 ▼3.27 | 133.78 ▼8.76 |
Add New Post /wp-admin/post-new.php | 1,711 ▼6 | 21.17 ▼0.69 | 413.91 ▼13.32 | 156.49 ▼7.06 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.04 | 148.29 ▼9.24 | 292.38 ▲95.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-custom-checkout-fields/include/update_checkout_fields_class.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woo-custom-checkout-fields/include/admin/forms/wcfew_admin_extra_fields_form.php:2
- > PHP Fatal error
Uncaught Error: Class 'WC_Countries' not found in wp-content/plugins/woo-custom-checkout-fields/include/admin/forms/wcfew_admin_shipping_fields_form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-custom-checkout-fields/include/admin/forms/wcfew_show_new_form.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-custom-checkout-fields/include/manage_extrafield_class.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Countries' not found in wp-content/plugins/woo-custom-checkout-fields/include/admin/forms/wcfew_admin_billing_fields_form.php:4
- > PHP Fatal error
Uncaught Error: Class 'WC_Countries' not found in wp-content/plugins/woo-custom-checkout-fields/include/admin/forms/wcfew_admin_additional_fields_form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-custom-checkout-fields/include/admin/wcfew_admin_settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-custom-checkout-fields/include/add_order_meta_fields_class.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in woo-custom-checkout-fields/assets to your readme.txt
woo-custom-checkout-fields/es-woo-custom-checkout-fields.php 85% from 13 tests
The principal PHP file in "Woocommerce Custom Checkout Fields Editor With Drag & Drop" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-custom-checkout-fields.php" instead of "es-woo-custom-checkout-fields.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7.3" instead of "3.3")
Code Analysis Passed 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 plugin10,479 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 65 | 59 | 7,511 |
PHP | 11 | 729 | 49 | 1,417 |
JavaScript | 5 | 152 | 14 | 1,322 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
A short review 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.55 |
Average class complexity | 75.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 9.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/css/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |