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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.19ms] Passed 4 tests
This is a short check of server-side resources used by Checkout Field Editor and Manager for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.95 ▼1.18 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.34 ▼2.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.81 ▲4.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.98 ▼3.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.86 ▼5.52 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checkout Field Editor and Manager for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.19 ▼0.98 | 1.84 ▼0.40 | 43.43 ▼0.65 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼1.02 | 100.62 ▼6.60 | 40.61 ▼2.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.06 | 39.24 ▲5.10 | 34.75 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.32 ▲0.21 | 615.24 ▼54.16 | 47.42 ▼21.15 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.05 | 94.42 ▲0.22 | 42.50 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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 no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/extra-checkout-fields-for-woocommerce/config.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
extra-checkout-fields-for-woocommerce/extra-checkout-fields-for-woocommerce.php Passed 13 tests
The primary PHP file in "Checkout Field Editor and Manager for WooCommerce" version 1.1.2 is used by WordPress to initiate all plugin functionality
79 characters long description:
Helps to edit WooCommerce checkout fields, add custom checkout fields and more.
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
No dangerous file extensions were detected2,342 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 376 | 578 | 2,240 |
CSS | 2 | 16 | 1 | 74 |
JavaScript | 3 | 9 | 17 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 17.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 57 | 52.78% |
▷ Public methods | 107 | 99.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.93% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected