89% gourl-bitcoin-paid-memberships-pro

Code Review | GoUrl Paid Memberships Pro - Bitcoin Payment Gateway Addon

WordPress plugin GoUrl Paid Memberships Pro - Bitcoin Payment Gateway Addon scored89%from 54 tests.

About plugin

  • Plugin page: gourl-bitcoin-pai...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 33
  • Update frequency: every 69.3 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /85,383 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.99ms] Passed 4 tests

Analyzing server-side resources used by GoUrl Paid Memberships Pro - Bitcoin Payment Gateway Addon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2142.39 ▼5.81
Dashboard /wp-admin3.52 ▲0.2248.23 ▼7.86
Posts /wp-admin/edit.php3.63 ▲0.2855.20 ▲11.62
Add New Post /wp-admin/post-new.php6.10 ▲0.21107.60 ▲23.20
Media Library /wp-admin/upload.php3.44 ▲0.2136.80 ▲6.03

Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by GoUrl Paid Memberships Pro - Bitcoin Payment Gateway Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.081.98 ▼0.3043.08 ▼0.58
Dashboard /wp-admin2,209 ▲214.89 ▲0.0197.75 ▼10.9339.77 ▲0.80
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0143.48 ▲9.6040.14 ▲7.00
Add New Post /wp-admin/post-new.php1,536 ▲223.06 ▼0.11689.21 ▲18.0063.75 ▲6.20
Media Library /wp-admin/upload.php1,385 ▲34.13 ▼0.13104.76 ▲9.5745.91 ▲2.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Bitcoin Payments Gateway for Paid Memberships Pro - Options), #2 (Paid Memberships Pro Bitcoin Payment Page), #3 (Bitcoin Payment for Paid Memberships Pro Received Successfully), #4 (Paid Memberships Pro Edit Order Page), #5 (Optional - You can place your membership in Bitcoins/Altcoins directly), #6 (Optional Free or Reduced-price Trial Period in Paid Memberships Pro with Bitcoins), #7 (Multiple gateways (Paypal, Stripe, etc + GoUrl Bitcoin/Altcoins))
  • Tags: You are using too many tags: 23 tag instead of maximum 10
You can look at the official readme.txt

gourl-bitcoin-paid-memberships-pro/gourl_paidmembershipspro.php 85% from 13 tests

This is the main PHP file of "GoUrl Paid Memberships Pro - Bitcoin Payment Gateway Addon" version 1.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 574 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("gourl-bitcoin-paid-memberships-pro.php" instead of "gourl_paidmembershipspro.php")

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
Success! There were no dangerous files found in this plugin1,418 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1329178805
PO File2140155558
Markdown130047
HTML1208

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity173.00
▷ Minimum class complexity173.00
▷ Maximum class complexity173.00
Average method complexity8.48
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods2191.30%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.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
18 PNG files occupy 0.44MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/crypto.png6.50KB3.16KB▼ 51.45%
images/check.png17.36KB1.86KB▼ 89.30%
screenshot-4.png25.64KB24.79KB▼ 3.31%
screenshot-2.png46.72KB45.31KB▼ 3.02%
screenshot-7.png39.12KB36.84KB▼ 5.83%