84% ethereum-donation

Code Review | Ethereum Donation Plugin

WordPress plugin Ethereum Donation Plugin scored84%from 54 tests.

About plugin

  • Plugin page: ethereum-donation
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 11, 2017
  • Latest release: Sep 11, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: alexss23 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /892 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.26ms] Passed 4 tests

Server-side resources used by Ethereum Donation Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.45 ▼1.63
Dashboard /wp-admin3.33 ▲0.0348.56 ▼1.74
Posts /wp-admin/edit.php3.38 ▲0.0249.76 ▲2.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.45 ▼8.17
Media Library /wp-admin/upload.php3.26 ▲0.0240.76 ▲5.00
Ethereum Donation /wp-admin/options-general.php?page=ethereum-donation/ethereum-donation.php3.2234.24

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
ethereum_donation_options

Browser metrics Passed 4 tests

Checking browser requirements for Ethereum Donation Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.37 ▲0.101.93 ▲0.1641.45 ▼3.37
Dashboard /wp-admin2,199 ▲185.58 ▼0.1393.87 ▼7.6446.99 ▲5.13
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0437.39 ▲2.8737.84 ▲2.06
Add New Post /wp-admin/post-new.php1,531 ▼423.15 ▲5.15669.19 ▲34.6449.28 ▼18.85
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.04110.66 ▲4.7250.01 ▲4.53
Ethereum Donation /wp-admin/options-general.php?page=ethereum-donation/ethereum-donation.php8212.0025.0525.95

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ethereum-donation/ethereum-donation.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: wordpress donations, ethereum, donation, eth, wordpress donation plugin...

ethereum-donation/ethereum-donation.php Passed 13 tests

The main PHP file in "Ethereum Donation Plugin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Collect more Ethereum donations online with WordPress plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected93 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP321893

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected