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.05MB] [CPU: ▼4.42ms] Passed 4 tests
An overview of server-side resources used by TT Extra Fee Option for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.45 ▼2.90 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.26 ▲4.00 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.66 ▼4.63 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.90 ▼12.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.35 ▲2.71 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
TT Extra Fee Option for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.78 ▲0.35 | 2.01 ▲0.21 | 45.17 ▼0.66 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.02 | 83.18 ▼7.07 | 41.67 ▲0.40 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.00 | 35.18 ▼8.18 | 31.64 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.32 ▲0.13 | 668.14 ▼42.18 | 59.22 ▼1.33 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.10 ▼0.12 | 98.40 ▼5.39 | 45.45 ▼1.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Plugin Name: Please specify the plugin name on the first line (
=== woocommerce-extra-fee-option ===
) - Screenshots: These screenshots require images: #1 ([screenhot-1.png] Screenshot Admin WooCommerce Settings - TT Extra Fee Option), #2 ([screenhot-2.png] Screenshot Frontend WooCommerce - Cart page), #3 ([screenhot-3.png] Screenshot Frontend WooCommerce - Checkout page)
woocommerce-extra-fee-option/wc-extra-fee-option.php 92% from 13 tests
"TT Extra Fee Option for WooCommerce" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-extra-fee-option.php" instead of "wc-extra-fee-option.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 detected552 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 76 | 73 | 285 |
CSS | 1 | 8 | 9 | 163 |
PO File | 2 | 32 | 33 | 104 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.61MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-woocommerce-product-badge.png | 8.45KB | 4.08KB | ▼ 51.70% |
assets/images/icon-woocommerce-donation-checkout.png | 9.24KB | 4.20KB | ▼ 54.56% |
assets/images/icon-woocommerce-add-to-cart-buy-now.png | 8.33KB | 3.56KB | ▼ 57.30% |
logo-terrytsang.png | 9.73KB | 4.28KB | ▼ 56.03% |
assets/images/icon-woocommerce-product-catalog.png | 6.78KB | 3.49KB | ▼ 48.47% |