90% pmpro-voguepay

Code Review | Voguepay plugin for Paid Memberships Pro

WordPress plugin Voguepay plugin for Paid Memberships Pro scored90%from 54 tests.

About plugin

  • Plugin page: pmpro-voguepay
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Jan 8, 2020
  • Number of updates: 9
  • Update frequency: every 57.0 days
  • Top authors: kunlexzy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.14ms] Passed 4 tests

This is a short check of server-side resources used by Voguepay plugin for Paid Memberships Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.41 ▼1.90
Dashboard /wp-admin3.38 ▲0.0847.45 ▼2.77
Posts /wp-admin/edit.php3.43 ▲0.0751.05 ▲5.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.78 ▼9.62
Media Library /wp-admin/upload.php3.30 ▲0.0734.97 ▲1.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Voguepay plugin for Paid Memberships Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.281.80 ▲0.0144.03 ▼0.60
Dashboard /wp-admin2,206 ▲154.90 ▼0.96111.08 ▼7.1940.04 ▼7.28
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0441.13 ▲3.5735.39 ▼1.87
Add New Post /wp-admin/post-new.php1,519 ▼1423.12 ▼0.12603.94 ▼26.8751.93 ▼2.86
Media Library /wp-admin/upload.php1,391 ▲124.27 ▲0.0597.15 ▼8.2741.26 ▼3.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: payment plugin, mastercard, payment gateway, visa, online payment...

pmpro-voguepay/class.pmprogateway_voguepay.php 92% from 13 tests

The principal PHP file in "Voguepay plugin for Paid Memberships Pro" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pmpro-voguepay.php" instead of "class.pmprogateway_voguepay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected360 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114562360

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods1164.71%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin