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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.28ms] Passed 4 tests
Server-side resources used by Tips & Donations at WooCommerce Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.01 ▼6.02 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.45 ▼0.42 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.83 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.78 ▼22.97 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.66 ▲1.47 |
Tips & Donations /wp-admin/admin.php?page=tips-donations-at-checkout/wtd_admin.php | 3.24 | 30.04 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 15 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
guaven_wtd_custom_amount_text |
guaven_wtd_type |
guaven_wtd_notice |
db_upgraded |
guaven_wtd_notice_hideafter |
guaven_wtd_field_name |
guaven_wtd_custom_amount |
guaven_wtd_custom_amount_button |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Tips & Donations at WooCommerce Checkout
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲21 | 13.44 ▼1.16 | 1.13 ▼1.03 | 53.63 ▲7.18 |
Dashboard /wp-admin | 2,203 ▲12 | 5.82 ▼0.04 | 103.31 ▲0.19 | 39.39 ▼0.75 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.06 | 38.98 ▼0.16 | 35.87 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,532 ▲15 | 23.25 ▲5.52 | 632.55 ▲23.21 | 52.92 ▼5.43 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.03 | 92.82 ▼6.02 | 43.26 ▲2.15 |
Tips & Donations /wp-admin/admin.php?page=tips-donations-at-checkout/wtd_admin.php | 946 | 2.07 | 24.06 | 33.11 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 15 options
- guaven_wtd_notice
- guaven_wtd_installed_100
- guaven_wtd_custom_amount
- widget_recent-posts
- guaven_wtd_field_name
- guaven_wtd_custom_amount_button
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- guaven_wtd_tip_options
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: donate, woocommerce donation, tip, checkout field, woocommerce tip...
tips-donations-at-checkout/tips-donations-at-checkout.php 85% from 13 tests
Analyzing the main PHP file in "Tips & Donations at WooCommerce Checkout" version 1.0.0
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected340 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 69 | 12 | 340 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin