Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.16MB] [CPU: ▼8.01ms] Passed 4 tests
A check of server-side resources used by Conditional WooCommerce Checkout Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.04 ▼0.71 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.63 ▼5.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.32 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.16 ▼0.72 | 66.71 ▼23.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.95 ▼3.10 |
Conditional Field /wp-admin/admin.php?page=wc-conditional-field | 3.32 | 37.42 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by Conditional WooCommerce Checkout Field
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.54 ▼0.78 | 1.62 ▼0.19 | 38.20 ▼13.29 |
Dashboard /wp-admin | 2,230 ▲42 | 4.90 ▼0.02 | 109.40 ▼8.08 | 45.24 ▲1.73 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▼0.02 | 40.66 ▲5.83 | 38.66 ▲3.26 |
Add New Post /wp-admin/post-new.php | 45 ▼1,476 | 0.44 ▼22.73 | 0.08 ▼678.46 | 9.16 ▼47.53 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.22 ▼0.01 | 134.30 ▲35.80 | 49.15 ▲2.82 |
Conditional Field /wp-admin/admin.php?page=wc-conditional-field | 1,094 | 2.20 | 31.47 | 36.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/conditional-woo-checkout-field/conditional-woo-checkout-field.php:34
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: input, custom, plugin, input field, checkout...
conditional-woo-checkout-field/conditional-woo-checkout-field.php 92% from 13 tests
The primary PHP file in "Conditional WooCommerce Checkout Field" version 1.2.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("3.1.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin488 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 59 | 69 | 426 |
CSS | 1 | 0 | 0 | 40 |
JavaScript | 3 | 4 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG files were detected