83% bitcoin-donate-button

Code Review | Bitcoin Donate Button

WordPress plugin Bitcoin Donate Button scored83%from 54 tests.

About plugin

  • Plugin page: bitcoin-donate-bu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2015
  • Latest release: Jul 6, 2015
  • Number of updates: 3
  • Update frequency: every 45.0 days
  • Top authors: lxicon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,561 total downloads

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.01MB] [CPU: ▼4.26ms] Passed 4 tests

An overview of server-side resources used by Bitcoin Donate Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.21 ▼1.32
Dashboard /wp-admin3.32 ▲0.0147.89 ▼4.31
Posts /wp-admin/edit.php3.37 ▲0.0144.05 ▼5.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.24 ▲3.47
Media Library /wp-admin/upload.php3.24 ▲0.0132.74 ▼6.23
BitcoinButton /wp-admin/options-general.php?page=btcb-15-013.2030.37

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 13 new options
New WordPress options
btcb_align
widget_theysaidso_widget
db_upgraded
can_compress_scripts
btcb_title
btcb_btext
btcb_exclude
widget_recent-posts
btcb_size
btcb_address
...

Browser metrics Passed 4 tests

An overview of browser requirements for Bitcoin Donate Button
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.131.65 ▼0.0841.60 ▼8.63
Dashboard /wp-admin2,213 ▲254.84 ▼0.03104.53 ▼8.5636.63 ▼8.87
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0138.50 ▼0.7531.12 ▼3.31
Add New Post /wp-admin/post-new.php1,545 ▲1118.27 ▼4.86598.75 ▼92.9061.47 ▲5.37
Media Library /wp-admin/upload.php1,392 ▲74.21 ▼0.0097.47 ▼2.8341.62 ▼4.57
BitcoinButton /wp-admin/options-general.php?page=btcb-15-019692.0322.2729.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • theysaidso_admin_options
    • btcb_align
    • db_upgraded
    • btcb_poptitle
    • btcb_size
    • btcb_exclude
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=btcb-15-01
    • > Network (severe)
    https://lxer.eu/bitcoin_dark_306x64.png - Failed to load resource: the server responded with a status of 404 ()

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 require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === bitcoin-donate-button === )
  • Screenshots: Please a description for screenshot #2 in bitcoin-donate-button/assets to your readme.txt
You can look at the official readme.txt

bitcoin-donate-button/btcbutton.php 92% from 13 tests

The main PHP file in "Bitcoin Donate Button" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bitcoin-donate-button.php" instead of "btcbutton.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 plugin156 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12916156

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin