84% pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads

Code Review | pl8app Cryptocurrency BEP20 Payment Gateway For Easy Digital Downloads

WordPress plugin pl8app Cryptocurrency BEP20 Payment Gateway For Easy Digital Downloads scored84%from 54 tests.

About plugin

  • Plugin page: pl8app-cryptocurr...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Nov 25, 2021
  • Latest release: Jan 31, 2023
  • Number of updates: 5
  • Update frequency: every 86.6 days
  • Top authors: pl8apptoken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /698 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.95ms] Passed 4 tests

A check of server-side resources used by pl8app Cryptocurrency BEP20 Payment Gateway For Easy Digital Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.15 ▼3.78
Dashboard /wp-admin3.38 ▲0.0845.74 ▼7.98
Posts /wp-admin/edit.php3.49 ▲0.1449.72 ▼1.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.45 ▼10.50
Media Library /wp-admin/upload.php3.30 ▲0.0735.26 ▲1.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: 3 new tables, 7 new options
New tables
wp_pl8app_edd_pro_hd_addresses
wp_pl8app_edd_pro_carousel
wp_pl8app_edd_pro_payments
New WordPress options
theysaidso_admin_options
pl8app_edd_pro_redux_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for pl8app Cryptocurrency BEP20 Payment Gateway For Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.074.27 ▲2.5039.79 ▼4.97
Dashboard /wp-admin2,203 ▲125.80 ▲0.90109.13 ▼0.5741.08 ▼4.56
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0439.62 ▲3.4632.60 ▼2.04
Add New Post /wp-admin/post-new.php1,536 ▲223.40 ▲0.26680.53 ▼0.0966.77 ▲8.78
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0493.84 ▼9.6241.53 ▼4.09

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • pl8app_edd_pro_redux_options

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)
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads/src/pl8app_edd_Hooks.php:245
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads/src/pl8app_edd_Admin.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads/pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'pl8app_edd_Cryptocurrencies' not found in wp-content/plugins/pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads/src/pl8app_edd_Gateway.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
You can take inspiration from this readme.txt

pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads/pl8app-cryptocurrency-bep20-payment-gateway-for-easy-digital-downloads.php Passed 13 tests

The entry point to "pl8app Cryptocurrency BEP20 Payment Gateway For Easy Digital Downloads" version 1.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
pl8app Cryptocurrency BEP20 Payment Gateway For Easy Digital Downloads

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin23,698 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
SVG4119,571
PHP292,5811,5958,354
CSS51,568114,895
JavaScript76049878

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity34.88
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes40
▷ Abstract classes00.00%
▷ Concrete classes40100.00%
▷ Final classes00.00%
Methods411
▷ Static methods23456.93%
▷ Public methods37791.73%
▷ Protected methods00.00%
▷ Private methods348.27%
Functions42
▷ Named functions4197.62%
▷ Anonymous functions12.38%
Constants60
▷ Global constants4981.67%
▷ Class constants1118.33%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/1_pay_mm_off.png25.77KB11.17KB▼ 56.67%
assets/img/1_pay_mm_over.png26.63KB11.88KB▼ 55.39%
assets/img/0x_logo_small.png0.81KB0.67KB▼ 17.41%
assets/img/tmp_qrcode.png0.87KB0.85KB▼ 2.26%
assets/img/pl8app_logo.png24.22KB3.50KB▼ 85.54%