Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▲433.77ms] 50% from 4 tests
This is a short check of server-side resources used by Cryptocurrency Payment & Donation Box - Accept Payments in any Cryptocurrency on your WP Site for Free
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 618.84ms on /wp-admin/admin.php?page=cdbbc-activation)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 433.77ms on /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=networks-for-wallets)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 43.72 ▲0.83 |
Dashboard /wp-admin | 3.61 ▲0.31 | 640.27 ▲589.74 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 631.45 ▲584.29 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 657.89 ▲560.23 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 673.28 ▲637.98 |
Transaction /wp-admin/admin.php?page=cdbbc-transaction | 3.45 | 594.79 |
Plugin Activation /wp-admin/admin.php?page=cdbbc-activation | 3.47 | 618.84 |
Server storage [IO: ▲4.50MB] [DB: ▲0.09MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 290 new files
Database: 1 new table, 15 new options
New tables |
---|
wp_cdbbc_transaction |
New WordPress options |
---|
cdbbc_migarte_codestar |
theysaidso_admin_options |
cdbbc-alreadyRated |
CDBBC_FRESH_INSTALLATION |
wp_cdbbc_transaction_db_version |
widget_theysaidso_widget |
can_compress_scripts |
cdbbc_settings |
CDBBC_FREE_VERSION |
widget_recent-comments |
... |
Browser metrics 75% from 4 tests
Cryptocurrency Payment & Donation Box - Accept Payments in any Cryptocurrency on your WP Site for Free: an overview of browser usage
You may want to improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 28,268 on /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=style-settings)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.20 ▼1.36 | 1.75 ▼0.07 | 33.22 ▼23.65 |
Dashboard /wp-admin | 2,270 ▲82 | 5.84 ▲0.96 | 102.92 ▼16.73 | 42.16 ▼3.79 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.00 ▼0.03 | 36.76 ▲0.28 | 38.18 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,584 ▲65 | 23.40 ▼0.02 | 671.62 ▲79.82 | 62.21 ▲11.32 |
Media Library /wp-admin/upload.php | 1,455 ▲67 | 4.25 ▲0.09 | 102.45 ▲2.88 | 45.85 ▲3.94 |
Quick Setup /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=quick-setup | 6,103 | 4.54 | 96.41 | 47.42 |
Transaction /wp-admin/admin.php?page=cdbbc-transaction | 1,011 | 2.03 | 26.25 | 31.96 |
Shortcodes /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=shortcodes | 5,558 | 4.50 | 69.57 | 33.35 |
Add Coins/Tokens /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=add-coins-tokens | 5,574 | 4.79 | 68.14 | 37.59 |
Style Settings /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=style-settings | 28,268 | 6.03 | 1,109.63 | 36.07 |
Terms & Conditions /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=terms-conditions | 5,565 | 4.29 | 58.07 | 41.97 |
Donation Via Wallets /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=donation-via-wallets | 5,555 | 4.62 | 60.13 | 33.64 |
Plugin Activation /wp-admin/admin.php?page=cdbbc-activation | 884 | 1.92 | 29.46 | 28.96 |
Networks For Wallets /wp-admin/admin.php?page=cdbbc-crypto-donations#tab=networks-for-wallets | 5,592 | 5.23 | 73.49 | 38.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cdbbc_transaction
- The uninstall procedure has failed, leaving 14 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- cdbbc_activation_time
- cdbbc-alreadyRated
- CDBBC_FREE_VERSION
- meta_private_key
- wp_cdbbc_transaction_db_version
- widget_recent-posts
- widget_recent-comments
- CDBBC_FRESH_INSTALLATION
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=cdbbc-transaction
- > Notice in wp-content/plugins/cryptocurrency-donation-box/admin/table/cdbbc-list-table.php+50
Undefined index: orderby
- > GET request to /wp-admin/admin.php?page=cdbbc-transaction
- > Notice in wp-content/plugins/cryptocurrency-donation-box/admin/table/cdbbc-list-table.php+51
Undefined index: order
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
Please take a closer look at the following
- 62× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Notice
Undefined variable: tos_url in wp-content/plugins/cryptocurrency-donation-box/meta-plugin-library/class-license-manager.php on line 219
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/cryptocurrency-donation-box/admin/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Notice
Undefined variable: plugin_nonce in wp-content/plugins/cryptocurrency-donation-box/meta-plugin-library/class-license-manager.php on line 219
- > PHP Notice
Undefined variable: plugin_name_camel_case in wp-content/plugins/cryptocurrency-donation-box/meta-plugin-library/class-license-manager.php on line 219
- > 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 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
These attributes need to be fixed:
- Screenshots: Please describe screenshot #7 in cryptocurrency-donation-box/assets to your readme.txt
- Tags: There are too many tags (22 tag instead of maximum 10)
cryptocurrency-donation-box/cryptocurrency-donation-box.php 92% from 13 tests
The entry point to "Cryptocurrency Payment & Donation Box - Accept Payments in any Cryptocurrency on your WP Site for Free" version 2.2.10 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected38,074 lines of code in 247 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 4,410 | 7,683 | 16,557 |
JSON | 3 | 0 | 0 | 10,512 |
CSS | 21 | 322 | 1,207 | 5,439 |
JavaScript | 25 | 557 | 859 | 3,344 |
SVG | 58 | 3 | 9 | 1,930 |
Markdown | 1 | 63 | 0 | 255 |
PO File | 1 | 7 | 11 | 37 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 20.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 11 | 7.80% |
▷ Concrete classes | 130 | 92.20% |
▷ Final classes | 4 | 3.08% |
Methods | 821 | |
▷ Static methods | 161 | 19.61% |
▷ Public methods | 715 | 87.09% |
▷ Protected methods | 90 | 10.96% |
▷ Private methods | 16 | 1.95% |
Functions | 57 | |
▷ Named functions | 57 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 10 | 41.67% |
▷ Class constants | 14 | 58.33% |
▷ Public constants | 11 | 78.57% |
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
25 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/default-logo.png | 0.59KB | 0.53KB | ▼ 9.44% |
admin/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/images/cryptodonation-logo.png | 13.90KB | 6.21KB | ▼ 55.33% |