Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.11ms] Passed 4 tests
Server-side resources used by Bitcoin Donator Button Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.71 ▲0.65 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.43 ▲0.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.53 ▼4.33 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.73 ▼12.50 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.22 ▲0.30 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/altcoins-donation-widget/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_bdbw-widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bitcoin Donator Button Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲195 | 14.14 ▼0.18 | 7.13 ▲5.51 | 47.52 ▲10.25 |
Dashboard /wp-admin | 2,233 ▲29 | 5.03 ▲0.13 | 103.73 ▼8.79 | 44.68 ▲1.80 |
Posts /wp-admin/edit.php | 2,091 ▼12 | 2.24 ▲0.22 | 38.26 ▼5.49 | 35.45 ▼3.60 |
Add New Post /wp-admin/post-new.php | 1,688 ▲157 | 22.45 ▼0.91 | 660.67 ▼45.09 | 97.31 ▲31.75 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.31 ▼0.12 | 100.07 ▼2.00 | 46.47 ▼1.30 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_bdbw-widget
- 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× 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/altcoins-donation-widget/bdw_button.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== altcoins-donation-widget ===
)
altcoins-donation-widget/bdw_button.php 92% from 13 tests
The main PHP script in "Bitcoin Donator Button Widget" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("altcoins-donation-widget.php" instead of "bdw_button.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
Everything looks great! No dangerous files found in this plugin2,250 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 686 | 507 | 2,242 |
CSS | 3 | 0 | 13 | 6 |
JavaScript | 2 | 0 | 5 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 61 | 44.20% |
▷ Public methods | 136 | 98.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 32 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.92MB with 1.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshoot-1.png | 92.02KB | 25.13KB | ▼ 72.69% |
img/button_bitcoin.png | 93.17KB | 32.81KB | ▼ 64.78% |
tmp/58c6bef7d1e3b.png | 0.63KB | 0.66KB | 0.00% |
screenshoot-2.png | 1,256.85KB | 447.47KB | ▼ 64.40% |
screenshoot-3.png | 519.03KB | 138.88KB | ▼ 73.24% |