90% subscriptions-memberships-for-paypal

Code Review | Subscriptions & Memberships for PayPal

WordPress plugin Subscriptions & Memberships for PayPal scored 90% from 54 tests.

About plugin

  • Plugin page: subscriptions-mem...
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2016
  • Latest release: Jan 30, 2023
  • Number of updates: 25
  • Update frequency: every 94.2 days
  • Top authors: scottpaterson (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active / 30,927 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.38MB] [CPU: ▲3.07ms] Passed 4 tests

Server-side resources used by Subscriptions & Memberships for PayPal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3850.56 ▲5.46
Dashboard /wp-admin3.69 ▲0.3856.12 ▼4.20
Posts /wp-admin/edit.php3.80 ▲0.4556.83 ▲3.56
Add New Post /wp-admin/post-new.php6.27 ▲0.38101.61 ▲7.45
Media Library /wp-admin/upload.php3.61 ▲0.3843.65 ▲9.39
Settings /wp-admin/admin.php?page=wpeppsub_settings3.5844.42
Subscribers /wp-admin/admin.php?page=wpeppsub_subscribers3.5941.79
Buttons /wp-admin/admin.php?page=wpeppsub_buttons3.5841.88
Payments /wp-admin/admin.php?page=wpeppsub_menu3.5837.66

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
wpeppsub_notice_shown
wpeppsub_settingsoptions
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Subscriptions & Memberships for PayPal
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲5713.32 ▲0.152.00 ▲0.2240.90 ▼2.88
Dashboard /wp-admin2,240 ▲345.86 ▲1.03105.51 ▼11.7041.05 ▼2.05
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0639.47 ▲3.5437.38 ▲0.79
Add New Post /wp-admin/post-new.php1,718 ▲18222.81 ▼0.17653.75 ▲13.3159.05 ▲7.18
Media Library /wp-admin/upload.php1,419 ▲314.21 ▲0.01110.10 ▲2.4545.67 ▲3.36
Settings /wp-admin/admin.php?page=wpeppsub_settings1,7841.8439.9652.22
Subscribers /wp-admin/admin.php?page=wpeppsub_subscribers9172.0324.2124.76
Buttons /wp-admin/admin.php?page=wpeppsub_buttons9202.0626.1726.29
Payments /wp-admin/admin.php?page=wpeppsub_menu9532.0323.7129.53

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • wpeppsub_settingsoptions
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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 require attention: The official readme.txt might help

subscriptions-memberships-for-paypal/subscriptions-memberships-for-paypal.php Passed 13 tests

This is the main PHP file of "Subscriptions & Memberships for PayPal" version 1.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
A simple and easy way to sell subscriptions or memberships.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,097 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP131,2422223,097

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.67
▷ Minimum class complexity14.00
▷ Maximum class complexity23.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin