Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.82MB] [CPU: ▼0.44ms] Passed 4 tests
A check of server-side resources used by WooCommerce Checkout Field Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.81 | 47.42 ▲6.61 |
Dashboard /wp-admin | 4.19 ▲0.85 | 61.62 ▼6.74 |
Posts /wp-admin/edit.php | 4.24 ▲0.85 | 55.31 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.79 | 105.60 ▼3.35 |
Media Library /wp-admin/upload.php | 4.12 ▲0.85 | 41.49 ▲6.56 |
Checkout Fields /wp-admin/admin.php?page=cfom | 4.04 | 42.32 |
Server storage [IO: ▲3.06MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 158 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cfom |
New WordPress options |
---|
cfom_db_version |
can_compress_scripts |
widget_theysaidso_widget |
cfom_default_sections_created |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Checkout Field Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.30 ▲0.08 | 2.14 ▲0.45 | 42.29 ▼4.94 |
Dashboard /wp-admin | 2,192 ▲12 | 5.48 ▼0.05 | 85.35 ▼9.92 | 39.19 ▼6.27 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.00 | 36.74 ▼3.57 | 33.31 ▼7.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.36 ▲0.32 | 654.33 ▲28.59 | 58.50 ▲1.95 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.08 ▼0.18 | 103.43 ▲0.77 | 44.28 ▼2.72 |
Checkout Fields /wp-admin/admin.php?page=cfom | 1,636 | 1.99 | 26.42 | 35.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_cfom
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- cfom_default_sections_created
- cfom_db_version
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 15× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/templates/admin/existing-meta.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/classes/cfom.order.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/classes/cfom.meta.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/inc/hooks.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/inc/functions.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/inc/arrays.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/templates/render-fields.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/classes/admin.class.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/templates/v10/file-modals.php
- > /wp-content/plugins/n-media-woocommerce-checkout-fields/classes/cfom.class.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/n-media-woocommerce-checkout-fields/classes/deactivate.class.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #7 in n-media-woocommerce-checkout-fields/assets to your readme.txt
n-media-woocommerce-checkout-fields/wc-checkout-fields.php 77% from 13 tests
The entry point to "WooCommerce Checkout Field Manager" version 18.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "3.0.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("n-media-woocommerce-checkout-fields.php" instead of "wc-checkout-fields.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin38,680 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 34 | 1,496 | 799 | 13,876 |
CSS | 18 | 159 | 285 | 13,026 |
PHP | 23 | 1,732 | 846 | 5,171 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
Markdown | 3 | 28 | 0 | 232 |
JSON | 3 | 0 | 0 | 151 |
HTML | 1 | 0 | 6 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 5 | 5.43% |
▷ Public methods | 89 | 96.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.26% |
Functions | 83 | |
▷ Named functions | 83 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
33 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jq-ui/smoothness/images/ui-icons_454545_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
js/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
js/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
images/minus.png | 3.32KB | 0.62KB | ▼ 81.33% |
images/delete_32.png | 4.37KB | 1.43KB | ▼ 67.31% |