10% easy-bitcoin-donation-widget

Code Review | Easy Bitcoin Donation Widget

WordPress plugin Easy Bitcoin Donation Widget scored10%from 54 tests.

About plugin

  • Plugin page: easy-bitcoin-dona...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Dec 5, 2015
  • Latest release: Apr 25, 2016
  • Number of updates: 21
  • Update frequency: every 6.9 days
  • Top authors: The Plugin Factory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /7,939 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.305.46 ▼38.95
Dashboard /wp-admin2.19 ▼1.166.56 ▼58.76
Posts /wp-admin/edit.php2.19 ▼1.178.77 ▼35.82
Add New Post /wp-admin/post-new.php2.19 ▼3.706.94 ▼97.79
Media Library /wp-admin/upload.php2.19 ▼1.046.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.23 ▼1.071.65 ▼0.0233.38 ▼10.60
Dashboard /wp-admin2,248 ▲605.79 ▲0.8898.44 ▼7.3641.77 ▲4.61
Posts /wp-admin/edit.php2,130 ▲411.99 ▼0.0539.23 ▼0.1939.43 ▲5.40
Add New Post /wp-admin/post-new.php1,624 ▲9422.15 ▲3.88652.62 ▲26.2543.85 ▼31.87
Media Library /wp-admin/upload.php1,430 ▲454.23 ▲0.0195.73 ▼4.1542.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP85468301
PO File23842124

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 code0.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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