Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/remove-checkout-fields/index.php+68
Undefined variable: userfName
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.12ms] Passed 4 tests
Analyzing server-side resources used by Remove Checkout Fields
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.56 ▲2.32 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.56 ▼0.60 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.57 ▲3.73 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.44 ▼6.80 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 33.26 ▼3.38 |
Remove Checkout fields /wp-admin/options-general.php?page=RemoveCheckoutFieldsAdminMainPage | 3.26 | 32.27 |
Server storage [IO: ▲2.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 92 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_checkout_remove |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
test_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Remove Checkout Fields
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲42 | 13.22 ▼1.16 | 1.70 ▼0.35 | 41.81 ▼1.95 |
Dashboard /wp-admin | 2,222 ▲34 | 4.89 ▲0.01 | 100.86 ▼11.60 | 36.95 ▼4.88 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.03 ▲0.03 | 35.51 ▼4.48 | 29.28 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 18.11 ▼4.99 | 614.50 ▼36.12 | 57.57 ▼2.18 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.19 ▲0.02 | 97.06 ▼7.19 | 37.48 ▼7.34 |
Remove Checkout fields /wp-admin/options-general.php?page=RemoveCheckoutFieldsAdminMainPage | 915 | 2.04 | 23.75 | 33.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_checkout_remove
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- test_db_version
- widget_recent-posts
- can_compress_scripts
- 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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-checkout-fields/admin/admin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3 in remove-checkout-fields/assets to your readme.txt
remove-checkout-fields/index.php 92% from 13 tests
The main PHP file in "Remove Checkout Fields" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("remove-checkout-fields.php" instead of "index.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 detected17,824 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 444 | 115 | 7,572 |
SVG | 2 | 0 | 0 | 3,356 |
Sass | 16 | 38 | 37 | 3,238 |
LESS | 16 | 38 | 49 | 3,226 |
PHP | 2 | 1 | 42 | 350 |
JavaScript | 2 | 7 | 17 | 82 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 18 | |
▷ Named functions | 18 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sale.png | 16.24KB | 6.06KB | ▼ 62.66% |
admin/images/count1/imglike1.png | 8.26KB | 3.46KB | ▼ 58.11% |
admin/images/count7/img.png | 14.06KB | 8.68KB | ▼ 38.27% |
admin/images/count13/back13.png | 3.05KB | 1.44KB | ▼ 52.77% |
admin/images/count2/btn-like2.png | 10.22KB | 5.44KB | ▼ 46.77% |