Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/easy-bitcoin-donation-widget/widgets.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; easy_bitcoin_donate_widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼57.83ms] Passed 4 tests
An overview of server-side resources used by Easy Bitcoin Donation Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 5.46 ▼38.95 |
Dashboard /wp-admin | 2.19 ▼1.16 | 6.56 ▼58.76 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 8.77 ▼35.82 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.94 ▼97.79 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.34 ▼29.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_easy_bitcoin_donate_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Bitcoin Donation Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.23 ▼1.07 | 1.65 ▼0.02 | 33.38 ▼10.60 |
Dashboard /wp-admin | 2,248 ▲60 | 5.79 ▲0.88 | 98.44 ▼7.36 | 41.77 ▲4.61 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 1.99 ▼0.05 | 39.23 ▼0.19 | 39.43 ▲5.40 |
Add New Post /wp-admin/post-new.php | 1,624 ▲94 | 22.15 ▲3.88 | 652.62 ▲26.25 | 43.85 ▼31.87 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.23 ▲0.01 | 95.73 ▼4.15 | 42.07 ▼3.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/easy-bitcoin-donation-widget/widgets.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; easy_bitcoin_donate_widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_easy_bitcoin_donate_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-bitcoin-donation-widget/functions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-bitcoin-donation-widget/banner.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-bitcoin-donation-widget/functions.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-bitcoin-donation-widget/widgets.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: donation system, donate, receive bitcoin, donation, receive donation...
easy-bitcoin-donation-widget/index.php 92% from 13 tests
The primary PHP file in "Easy Bitcoin Donation Widget" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-bitcoin-donation-widget.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected425 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 54 | 68 | 301 |
PO File | 2 | 38 | 42 | 124 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin