Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.92ms] Passed 4 tests
An overview of server-side resources used by Make Checkout required fields optional or Optional fields required for woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.07 ▲1.44 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.36 ▼2.82 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.55 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 95.58 ▼3.92 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.97 ▼0.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Make Checkout required fields optional or Optional fields required for woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲61 | 13.63 ▼0.37 | 1.85 ▼0.24 | 43.61 ▲0.75 |
Dashboard /wp-admin | 2,222 ▲31 | 4.85 ▼1.05 | 109.03 ▲6.14 | 39.48 ▼4.20 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.00 ▲0.03 | 40.29 ▲1.04 | 35.33 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 22.96 ▼0.27 | 646.91 ▲30.26 | 49.64 ▼1.13 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.25 ▼0.14 | 96.35 ▼3.05 | 40.00 ▼3.44 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/make-checkout-required-fields-optional-or-optional-fields-required/make-checkout-fields-optional.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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: woocommerce checkout field required, woocommerce, woocommerce checkout, woocommerce checkout field optional, make checkout fields optional in woocommerce
make-checkout-required-fields-optional-or-optional-fields-required/make-checkout-fields-optional.php 85% from 13 tests
The entry point to "Make Checkout required fields optional or Optional fields required for woocommerce" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 82 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("make-checkout-required-fields-optional-or-optional-fields-required.php" instead of "make-checkout-fields-optional.php")
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
No dangerous file extensions were detected328 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 8 | 328 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin