10% gourl-bitcoin-payment-gateway-paid-downloads-membership

Code Review | GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership

WordPress plugin GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership scored10%from 54 tests.

About plugin

  • Plugin page: gourl-bitcoin-pay...
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Aug 6, 2023
  • Number of updates: 217
  • Update frequency: every 14.5 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

74 reviews

Install metrics

2,000+ active /268,467 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/gourl-bitcoin-payment-gateway-paid-downloads-membership/gourl.php+6820
    chmod(): No such file or directory

Server metrics [RAM: ▲2.63MB] [CPU: ▲6.69ms] Passed 4 tests

An overview of server-side resources used by GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.21 ▲2.7576.63 ▲38.57
Dashboard /wp-admin6.23 ▲2.8971.21 ▲4.01
Posts /wp-admin/edit.php6.23 ▲2.8865.25 ▲9.86
Add New Post /wp-admin/post-new.php7.91 ▲2.0293.02 ▼15.87
Media Library /wp-admin/upload.php6.23 ▲3.0066.33 ▲28.75
    Add New File /wp-admin/admin.php?page=gourlfile6.2354.34
• Summary /wp-admin/admin.php?page=gourl6.2370.43
Contacts /wp-admin/admin.php?page=gourlcontact6.2320.62
• Pay-Per-Product /wp-admin/admin.php?page=gourlproducts6.2357.44
    Premium Users /wp-admin/admin.php?page=gourlpaypermembership_users6.2356.32
• Pay-Per-Membership /wp-admin/admin.php?page=gourlpaypermembership6.2358.59
    ________________ /wp-admin/admin.php?page=gourlpaypermembership_user6.2354.56
Settings /wp-admin/admin.php?page=gourlsettings6.2351.78
• All Payments /wp-admin/admin.php?page=gourlpayments6.2360.82
Add-ons /wp-admin/admin.php?page=gourladdons6.2318.41

Server storage [IO: ▲13.05MB] [DB: ▲0.01MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification detected: 4 files (7.48KB) outside of "wp-content/plugins/gourl-bitcoin-payment-gateway-paid-downloads-membership/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/gourl-php/index.html
    • (new file) wp-content/plugins/gourl-php/gourl.hash
    • (new file) wp-content/plugins/gourl-php/gourl_ipn.php
    • (new file) wp-content/plugins/gourl-php/.htaccess
Filesystem: 512 new files
Database: 4 new tables, 34 new options
New tables
crypto_payments
crypto_membership
crypto_products
crypto_files
New WordPress options
widget_recent-comments
gourlmonetaryunitpublic_key
gourlmonetaryunitprivate_key
gourlvertcoinprivate_key
gourlpotcoinpublic_key
gourlbitcoinsvpublic_key
gourlprev_version
gourldashprivate_key
gourlversion
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.31 ▼1.271.85 ▲0.0143.36 ▼2.44
Dashboard /wp-admin2,266 ▲815.90 ▼0.00113.47 ▲6.0588.03 ▲42.61
Posts /wp-admin/edit.php2,163 ▲712.13 ▲0.0836.27 ▼5.1634.02 ▼2.79
Add New Post /wp-admin/post-new.php1,575 ▲5621.58 ▼1.56790.51 ▲108.7478.91 ▲16.90
Media Library /wp-admin/upload.php1,457 ▲754.23 ▲0.02101.07 ▼10.8970.44 ▲22.70
    Add New File /wp-admin/admin.php?page=gourlfile2,1005.80118.30158.75
• Summary /wp-admin/admin.php?page=gourl2,5204.8293.84187.90
Contacts /wp-admin/admin.php?page=gourlcontact2,5144.8499.94107.07
• Pay-Per-Product /wp-admin/admin.php?page=gourlproducts1,3852.3027.1837.56
    Premium Users /wp-admin/admin.php?page=gourlpaypermembership_users1,1482.2024.7637.42
• Pay-Per-Membership /wp-admin/admin.php?page=gourlpaypermembership3,12610.35205.43131.80
    ________________ /wp-admin/admin.php?page=gourlpaypermembership_user9922.2124.2631.91
Settings /wp-admin/admin.php?page=gourlsettings1,7991.7126.8680.12
• All Payments /wp-admin/admin.php?page=gourlpayments1,2892.1524.6838.53
Add-ons /wp-admin/admin.php?page=gourladdons2,5204.8589.1869.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 4 tables
    • crypto_payments
    • crypto_files
    • crypto_products
    • crypto_membership
  • The uninstall procedure has failed, leaving 34 options in the database
    • gourlpeercoinprivate_key
    • gourlreddcoinprivate_key
    • gourldogecoinprivate_key
    • gourlvertcoinpublic_key
    • gourlbitcoinprivate_key
    • widget_theysaidso_widget
    • gourlbitcoincashpublic_key
    • gourlspeedcoinprivate_key
    • gourlvertcoinprivate_key
    • theysaidso_admin_options
    • ...

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 102 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (GoUrl Bitcoin Plugin Summary Page), #2 (What Makes Us Unique), #3 (Free Bitcoin Gateway Addons), #4 (Plugin General Settings Page - place free Private/Public keys from Gourl.io and activate bitcoin/cryptocoin payments), #5 (All Payments Page - list of all received payments), #6 (Pay-Per-Membership Settings Page - sell Premium Access to Your Webpages/Videos), #7 (Example Pay-Per-Membership locked page), #8 (Example Pay-Per-View locked page), #9 (Pay-Per-Product Page - list of all paid payments), #10 (Pay-Per-Product New Record Page - add new product for sale), #11 (Example Pay-Per-Product - selling product online), #12 (Example Pay-Per-Download - selling file online), #13 (Pay-Per-Download Page - list of all paid files)
You can take inspiration from this readme.txt

gourl-bitcoin-payment-gateway-paid-downloads-membership/gourl_wordpress.php 77% from 13 tests

"GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership" version 1.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 397 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("3.5" instead of "2.1.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("gourl-bitcoin-payment-gateway-paid-downloads-membership.php" instead of "gourl_wordpress.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected128,480 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
CSS28169305113,780
PO File31,9522,0697,285
PHP42,8921,4457,043
JavaScript47236247
Markdown261093
HTML48032

PHP code 0% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,451)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 117)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity316.50
▷ Minimum class complexity28.00
▷ Maximum class complexity1,451.00
Average method complexity14.52
▷ Minimum method complexity1.00
▷ Maximum method complexity117.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods140
▷ Static methods42.86%
▷ Public methods10373.57%
▷ Protected methods00.00%
▷ Private methods3726.43%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
443 compressed PNG files occupy 6.45MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flags/AIA.png0.63KB0.73KB0.00%
images/flags/ARG.png0.49KB0.69KB0.00%
images/flags/GBR.png0.58KB0.65KB0.00%
images/dir/images/_img02.png31.96KB10.53KB▼ 67.04%
images/flags/WLF.png0.54KB0.65KB0.00%