Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼295.28ms] Passed 4 tests
This is a short check of server-side resources used by XRPTIPBOT Widget by HBENSLAMA
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 52.31 ▲2.17 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.82 ▼0.48 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.81 ▲0.47 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 88.02 ▼1,180.21 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.31 ▼0.91 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_xrptipbot_widget |
Browser metrics Passed 4 tests
Checking browser requirements for XRPTIPBOT Widget by HBENSLAMA
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲73 | 16.01 ▲0.42 | 6.13 ▲0.73 | 2.95 ▲0.62 |
Dashboard /wp-admin | 2,895 ▲37 | 6.07 ▼0.08 | 113.49 ▼18.42 | 153.32 ▼10.57 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.25 ▲0.01 | 62.53 ▼1.72 | 136.34 ▼11.16 |
Add New Post /wp-admin/post-new.php | 1,752 ▲56 | 21.87 ▲0.04 | 427.48 ▲5.61 | 158.83 ▲5.81 |
Media Library /wp-admin/upload.php | 1,701 ▲9 | 5.53 ▼0.01 | 140.53 ▲3.90 | 189.93 ▲1.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_xrptipbot_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 everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-xrptipbot/class.xrptipbot-widget.php:3
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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: micro-payments, widget, xrptipbot, interledger, web-monetized...
widget-xrptipbot/xrptipbot-widget.php 92% from 13 tests
The entry point to "XRPTIPBOT Widget by HBENSLAMA" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected86 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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
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-3.png | 76.15KB | 21.28KB | ▼ 72.05% |
screenshot-2.png | 24.41KB | 6.65KB | ▼ 72.76% |
screenshot-1.png | 28.88KB | 7.79KB | ▼ 73.04% |