Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.09MB] [CPU: ▼10.61ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Checkout Extra options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▼0.59 | 22.32 ▼14.57 |
Dashboard /wp-admin | 3.42 ▲0.08 | 46.82 ▼1.17 |
Posts /wp-admin/edit.php | 3.45 ▲0.06 | 51.08 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.17 | 77.19 ▼24.05 |
Media Library /wp-admin/upload.php | 3.36 ▲0.10 | 34.55 ▼2.64 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Checkout Extra options
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,456 ▼290 | 13.26 ▼1.51 | 0.54 ▼1.03 | 15.91 ▼22.22 |
Dashboard /wp-admin | 2,209 ▲20 | 4.87 ▼0.07 | 99.47 ▼14.00 | 38.87 ▼4.44 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.04 ▲0.05 | 39.99 ▲4.57 | 34.65 ▲4.30 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.71 ▼5.50 | 617.36 ▼65.44 | 62.89 ▼1.19 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.28 ▼0.03 | 99.42 ▼7.12 | 44.58 ▼0.16 |
Uninstaller [IO: ✅] [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
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Stable tag: No value
woocommerce-checkout-extra-options/hs_woocommerce_option.php 85% from 13 tests
This is the main PHP file of "WooCommerce Checkout Extra options" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-checkout-extra-options.php" instead of "hs_woocommerce_option.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin117 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 27 | 66 |
CSS | 1 | 6 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 7 | |
▷ Named functions | 7 | 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
3 PNG files occupy 0.47MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 401.20KB | 105.69KB | ▼ 73.66% |
assets/screenshot-1.png | 18.15KB | 12.75KB | ▼ 29.74% |
assets/screenshot-2.png | 63.66KB | 34.74KB | ▼ 45.42% |