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.04MB] [CPU: ▼2.77ms] Passed 4 tests
Server-side resources used by Cryptocurrency Donation Widget - Accept Bitcoin, Ethereum, and more - Bytemart.org
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.20 ▼4.05 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.36 ▼0.95 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.86 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.53 ▼2.57 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.16 ▼1.02 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
btcdnt_activation_time |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_btcdnt |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Cryptocurrency Donation Widget - Accept Bitcoin, Ethereum, and more - Bytemart.org
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.03 | 1.75 ▼0.36 | 37.69 ▼5.74 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.05 | 91.96 ▼1.38 | 43.95 ▲3.38 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▼0.02 | 39.53 ▲2.53 | 37.46 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.57 ▲0.41 | 702.06 ▼11.41 | 70.99 ▲10.55 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▲0.04 | 103.54 ▼12.19 | 45.09 ▼6.33 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_btcdnt
- db_upgraded
- theysaidso_admin_options
- btcdnt_activation_time
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in bitcoin-donation-and-fundraising-widget/assets to your readme.txt
- Tags: You are using too many tags: 15 tag instead of maximum 10
bitcoin-donation-and-fundraising-widget/index.php 92% from 13 tests
Analyzing the main PHP file in "Cryptocurrency Donation Widget - Accept Bitcoin, Ethereum, and more - Bytemart.org" version 0.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bitcoin-donation-and-fundraising-widget.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin148 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 74 | 32 | 148 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.65MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 78.65KB | 23.08KB | ▼ 70.65% |
assets/screenshot-2.png | 88.33KB | 33.13KB | ▼ 62.49% |
assets/screenshot-5.png | 107.75KB | 36.23KB | ▼ 66.38% |
assets/screenshot-4.png | 228.63KB | 56.15KB | ▼ 75.44% |
assets/icon-256x256.png | 9.70KB | 4.30KB | ▼ 55.61% |