Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.40ms] Passed 4 tests
An overview of server-side resources used by XRPTIPBOT Widget by HBENSLAMA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 47.76 ▲8.50 |
Dashboard /wp-admin | 3.33 ▼0.01 | 50.60 ▼17.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.46 ▼11.86 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.17 ▼17.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.06 ▼2.38 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
widget_xrptipbot_widget |
Browser metrics Passed 4 tests
A check of browser resources used by XRPTIPBOT Widget by HBENSLAMA
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.28 ▼0.07 | 1.91 ▲0.17 | 47.25 ▲3.38 |
Dashboard /wp-admin | 2,192 ▲15 | 5.62 ▼0.05 | 87.45 ▼0.11 | 40.42 ▼8.35 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.00 | 37.55 ▼2.50 | 34.34 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.43 ▲0.46 | 684.14 ▼3.83 | 45.72 ▼12.47 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.31 ▲0.19 | 106.19 ▼7.41 | 51.43 ▲2.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_xrptipbot_widget
- db_upgraded
- widget_theysaidso_widget
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/widget-xrptipbot/xrptipbot-widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-xrptipbot/class.xrptipbot-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: xrptipbot, xrp, micro-payments, interledger, web-monetized...
widget-xrptipbot/xrptipbot-widget.php 92% from 13 tests
The main PHP script in "XRPTIPBOT Widget by HBENSLAMA" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("widget-xrptipbot.php" instead of "xrptipbot-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin86 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 39 | 86 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 1 | |
▷ Named functions | 1 | 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
3 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 24.41KB | 6.65KB | ▼ 72.76% |
screenshot-1.png | 28.88KB | 7.79KB | ▼ 73.04% |
screenshot-3.png | 76.15KB | 21.28KB | ▼ 72.05% |