89% aurpay-crypto-payment-for-paid-memberships-pro

Code Review | AURPAY Paid Memberships Pro (PMP) – Bitcoin Crypto Payment Gateway

WordPress plugin AURPAY Paid Memberships Pro (PMP) – Bitcoin Crypto Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: aurpay-crypto-pay...
  • Plugin version: 1.0.13
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Oct 19, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 16
  • Update frequency: every 24.4 days
  • Top authors: aurtech01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.72ms] Passed 4 tests

Analyzing server-side resources used by AURPAY Paid Memberships Pro (PMP) – Bitcoin Crypto Payment Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.74 ▼1.48
Dashboard /wp-admin3.43 ▲0.0849.14 ▼9.76
Posts /wp-admin/edit.php3.55 ▲0.1846.21 ▼3.61
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.94 ▼16.02
Media Library /wp-admin/upload.php3.36 ▲0.1235.06 ▲0.53

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

AURPAY Paid Memberships Pro (PMP) – Bitcoin Crypto Payment Gateway: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2813.92 ▼0.461.87 ▲0.1944.19 ▲0.43
Dashboard /wp-admin2,195 ▲185.62 ▲0.0695.88 ▼1.1841.26 ▲2.05
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0035.15 ▼1.7633.55 ▼0.17
Add New Post /wp-admin/post-new.php1,526 ▼823.19 ▼2.02654.28 ▲0.8156.85 ▼3.88
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.1196.84 ▼3.2041.85 ▼0.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (39 tag instead of maximum 10)
You can look at the official readme.txt

aurpay-crypto-payment-for-paid-memberships-pro/aurpay-pmp.php 77% from 13 tests

The entry point to "AURPAY Paid Memberships Pro (PMP) – Bitcoin Crypto Payment Gateway" version 1.0.13 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aurpay-crypto-payment-for-paid-memberships-pro.php" instead of "aurpay-pmp.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Please don't use more than 140 characters for the plugin description (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,044 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP215615664
CSS1410281
SVG20077
JavaScript14114
HTML1208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods2090.91%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.70MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png18.52KB6.02KB▼ 67.48%
images/stripe.png20.76KB3.24KB▼ 84.41%
assets/images/img_aurpay-2x.png391.65KB89.78KB▼ 77.08%
images/creditcards.png21.46KB3.06KB▼ 85.74%
images/crypto.png6.50KB3.16KB▼ 51.45%