Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.66ms] Passed 4 tests
Analyzing server-side resources used by TT Donation Checkout for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.33 ▼4.87 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.85 ▼0.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.32 ▼4.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.03 ▼16.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.03 ▲0.72 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by TT Donation Checkout for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.73 ▲0.36 | 1.92 ▼0.06 | 46.89 ▼0.50 |
Dashboard /wp-admin | 2,200 ▲12 | 5.82 ▼0.08 | 104.78 ▼18.91 | 41.04 ▼0.88 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.00 ▼0.02 | 35.24 ▼9.16 | 31.86 ▼4.88 |
Add New Post /wp-admin/post-new.php | 1,513 ▼15 | 23.81 ▲5.58 | 590.06 ▼20.14 | 42.80 ▼24.19 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▼0.07 | 100.23 ▲0.23 | 43.80 ▼1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tt-donation-checkout-for-woocommerce/wc-donation-tip-checkout.php:37
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== tt-donation-checkout-for-woocommerce ===
) - Screenshots: These screenshots do not have images: #1 ([screenhot-1.png] Screenshot Admin WooCommerce - Donation/Tip Checkout options), #2 ([screenhot-2.png] Screenshot Frontend WooCommerce - Checkout page), #3 ([screenhot-3.png] Screenshot Frontend WooCommerce - Checkout page (Removed Added Donation By Putting 0 in The Form))
tt-donation-checkout-for-woocommerce/wc-donation-tip-checkout.php 92% from 13 tests
Analyzing the main PHP file in "TT Donation Checkout for WooCommerce" version 1.0.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 ("tt-donation-checkout-for-woocommerce.php" instead of "wc-donation-tip-checkout.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
Everything looks great! No dangerous files found in this plugin1,284 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 68 | 83 | 812 |
PHP | 1 | 87 | 52 | 346 |
PO File | 2 | 44 | 44 | 126 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 5.89 |
▷ 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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.36MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/css/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
assets/images/icon-woocommerce-product-badge.png | 8.45KB | 4.08KB | ▼ 51.70% |