Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.93ms] Passed 4 tests
A check of server-side resources used by WC always Show Shipping address
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.56 ▼3.77 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.88 ▼3.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.77 ▼5.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.02 ▼9.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.16 ▼5.27 |
WC Show Shipping address /wp-admin/options-general.php?page=wc_show_shipping_address | 3.20 | 30.56 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WC always Show Shipping address
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.10 | 4.87 ▲2.91 | 40.45 ▼0.21 |
Dashboard /wp-admin | 2,204 ▲13 | 5.80 ▲0.93 | 97.95 ▼7.77 | 37.84 ▼6.97 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.01 | 40.45 ▼0.28 | 35.34 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.37 ▲4.87 | 628.26 ▲25.40 | 55.58 ▼6.02 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▲0.02 | 93.16 ▼4.81 | 43.13 ▼0.56 |
WC Show Shipping address /wp-admin/options-general.php?page=wc_show_shipping_address | 753 | 2.05 | 23.47 | 23.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- 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 everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-always-show-shipping-address/wc_show_shipping_address.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-always-show-shipping-address/wc_show_shipping_address.php:27
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (This is screen1, this is how your shipping address checkbox will always be clicked.)
wc-always-show-shipping-address/wc_show_shipping_address.php 92% from 13 tests
Analyzing the main PHP file in "WC always Show Shipping address" version 1.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-always-show-shipping-address.php" instead of "wc_show_shipping_address.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
Good job! No executable or dangerous file extensions detected24 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 13 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 3 | |
▷ Named functions | 3 | 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 were not PNG files found in your plugin