80% idpay-paid-memberships-pro

Code Review | IDPay For Paid Memberships Pro

WordPress plugin IDPay For Paid Memberships Pro scored80%from 54 tests.

About plugin

  • Plugin page: idpay-paid-member...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 5, 2019
  • Latest release: Nov 13, 2022
  • Number of updates: 12
  • Update frequency: every 107.9 days
  • Top authors: idpayir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,967 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.33ms] Passed 4 tests

An overview of server-side resources used by IDPay For Paid Memberships Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.33 ▼38.11
Dashboard /wp-admin2.08 ▼1.226.24 ▼44.27
Posts /wp-admin/edit.php2.08 ▼1.275.85 ▼43.16
Add New Post /wp-admin/post-new.php2.08 ▼3.805.79 ▼95.79
Media Library /wp-admin/upload.php2.08 ▼1.155.57 ▼30.75

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
idpay_pmpro_version

Browser metrics Passed 4 tests

An overview of browser requirements for IDPay For Paid Memberships Pro
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.182.14 ▲0.3947.54 ▲2.89
Dashboard /wp-admin2,198 ▲215.59 ▲0.0284.00 ▼2.7238.44 ▲0.61
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0436.97 ▲1.4735.00 ▼0.34
Add New Post /wp-admin/post-new.php1,526 ▼223.02 ▼0.19686.16 ▲5.2754.20 ▼1.92
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.10100.18 ▼4.0844.65 ▼1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'PMProGateway_IDPay' not found
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • idpay_pmpro_version
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 no errors were found, 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: gateway, paid memberships pro, memberships, restrict content, idpay

idpay-paid-memberships-pro/idpay-paid-memberships-pro.php Passed 13 tests

"IDPay For Paid Memberships Pro" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
IDPay payment gateway for Paid Memberships Pro

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin557 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17899532
SVG10125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity67.00
▷ Minimum class complexity67.00
▷ Maximum class complexity67.00
Average method complexity5.12
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1487.50%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin