79% depay-donations

Code Review | Web3 Donations by DePay - Accept P2P Crypto Donations

WordPress plugin Web3 Donations by DePay - Accept P2P Crypto Donations scored79%from 54 tests.

About plugin

  • Plugin page: depay-donations
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 23, 2022
  • Latest release: Nov 16, 2023
  • Number of updates: 53
  • Update frequency: every 10.3 days
  • Top authors: depayfi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,025 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.63ms] Passed 4 tests

A check of server-side resources used by Web3 Donations by DePay - Accept P2P Crypto Donations
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.13 ▼37.47
Dashboard /wp-admin2.05 ▼1.266.75 ▼43.85
Posts /wp-admin/edit.php2.05 ▼1.316.04 ▼42.12
Add New Post /wp-admin/post-new.php2.05 ▼3.845.55 ▼91.07
Media Library /wp-admin/upload.php2.05 ▼1.186.11 ▼23.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Web3 Donations by DePay - Accept P2P Crypto Donations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,737 ▼5053.47 ▲39.1346.56 ▲44.7035.98 ▼10.94
Dashboard /wp-admin2,302 ▲12833.27 ▲27.64730.01 ▲627.1442.85 ▼0.95
Posts /wp-admin/edit.php2,209 ▲10632.96 ▲31.00237.20 ▲193.7737.52 ▼2.85
Add New Post /wp-admin/post-new.php1,611 ▲8543.60 ▲20.03674.16 ▼40.2235.88 ▼14.73
Media Library /wp-admin/upload.php1,519 ▲11635.52 ▲31.32257.90 ▲154.4840.76 ▼2.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the depay-donations-frontend-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: depay, web3, donations, cryptocurrency, p2p

depay-donations/depay-donations.php 85% from 13 tests

The main PHP file in "Web3 Donations by DePay - Accept P2P Crypto Donations" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin32,405 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript167,5625,52031,116
CSS2240748
PHP1095195434
JSON20092
Markdown111015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods18
▷ Static methods950.00%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin