Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.41ms] Passed 4 tests
This is a short check of server-side resources used by WP-TipBot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.27 ▼1.93 |
Dashboard /wp-admin | 3.38 ▲0.08 | 48.27 ▲3.49 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 45.64 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.10 ▼14.31 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.78 ▼2.83 |
WP TipBot /wp-admin/options-general.php?page=wp-tipbot | 3.27 | 33.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_wp_tipbot |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-TipBot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▼0.18 | 1.73 ▲0.00 | 37.29 ▼14.91 |
Dashboard /wp-admin | 2,207 ▲22 | 5.87 ▲0.00 | 96.27 ▼17.12 | 36.86 ▼5.47 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 37.55 ▲0.25 | 32.52 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 23.17 ▲0.19 | 588.46 ▼34.03 | 55.54 ▼12.98 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.23 ▲0.05 | 100.94 ▲1.10 | 42.35 ▼22.56 |
WP TipBot /wp-admin/options-general.php?page=wp-tipbot | 1,100 | 2.38 | 29.00 | 31.87 |
Uninstaller [IO: ▲0.00MB] [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: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_wp_tipbot
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-tipbot/functions/shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tipbot/functions/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-tipbot/classes/class.widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: xrptipbot, xrp, donation button, tip, wptipbot...
wp-tipbot/wp-tipbot.php Passed 13 tests
The main PHP script in "WP-TipBot" version 1.1.1 is automatically included on every request by WordPress
57 characters long description:
Displays a XRP TIP BOT button with a widget or shortcode.
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
There were no executable files found in this plugin473 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 128 | 20 | 386 |
PO File | 1 | 24 | 24 | 87 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/WP-TipBot-logo.png | 14.56KB | 5.62KB | ▼ 61.39% |