79% depay-payments

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

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

About plugin

  • Plugin page: depay-payments
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Nov 16, 2023
  • Number of updates: 24
  • Update frequency: every 10.4 days
  • Top authors: depayfi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,415 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Web3 Payments by DePay - Accept P2P Crypto Payments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.15 ▼36.26
Dashboard /wp-admin2.05 ▼1.265.62 ▼43.98
Posts /wp-admin/edit.php2.05 ▼1.316.61 ▼41.47
Add New Post /wp-admin/post-new.php2.05 ▼3.845.79 ▼98.00
Media Library /wp-admin/upload.php2.05 ▼1.186.42 ▼24.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Web3 Payments by DePay - Accept P2P Crypto Payments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,519 ▼26843.62 ▲28.9148.89 ▲46.8838.26 ▼6.43
Dashboard /wp-admin2,302 ▲12233.23 ▲27.52730.77 ▲631.6044.11 ▲0.14
Posts /wp-admin/edit.php2,225 ▲12533.13 ▲31.16232.47 ▲190.6336.87 ▼0.93
Add New Post /wp-admin/post-new.php1,613 ▲8742.76 ▲19.59651.29 ▲27.1735.79 ▼31.95
Media Library /wp-admin/upload.php1,520 ▲12035.35 ▲31.20271.68 ▲169.3743.58 ▲0.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > 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-payments-frontend-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
No output text or server-side errors detected on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: p2p, payments, web3, depay, cryptocurrency

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

The main PHP file in "Web3 Payments by DePay - Accept P2P Crypto Payments" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

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
Everything looks great! No dangerous files found in this plugin33,107 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript177,5885,52031,730
CSS2240748
PHP10107195522
JSON20092
Markdown111015

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.43
▷ Minimum class complexity1.00
▷ Maximum class complexity23.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin