90% securepay-for-paidmembershipspro

Code Review | SecurePay For Paid Memberships Pro

WordPress plugin SecurePay For Paid Memberships Pro scored90%from 54 tests.

About plugin

  • Plugin page: securepay-for-pai...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2021
  • Latest release: Sep 6, 2023
  • Number of updates: 13
  • Update frequency: every 57.5 days
  • Top authors: nawawijamili (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.78ms] Passed 4 tests

An overview of server-side resources used by SecurePay For Paid Memberships Pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.08 ▼0.39
Dashboard /wp-admin3.33 ▼0.0255.55 ▼12.75
Posts /wp-admin/edit.php3.38 ▲0.0253.60 ▲1.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.83 ▼19.02
Media Library /wp-admin/upload.php3.25 ▲0.0237.50 ▼2.96

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

SecurePay For Paid Memberships Pro: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.36 ▲0.011.90 ▲0.1643.19 ▲0.81
Dashboard /wp-admin2,206 ▲265.60 ▼0.1290.81 ▼2.7044.14 ▲2.12
Posts /wp-admin/edit.php2,108 ▲52.03 ▲0.0137.53 ▼2.8036.55 ▼0.84
Add New Post /wp-admin/post-new.php1,532 ▲423.02 ▼0.05633.82 ▲17.1655.73 ▲0.61
Media Library /wp-admin/upload.php1,408 ▲114.18 ▼0.02101.08 ▼5.5844.58 ▼1.67

Uninstaller [IO: ▲0.00MB] [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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: payment platform, fpx, payment gateway, online banking, malaysia

securepay-for-paidmembershipspro/securepay-for-paidmembershipspro.php 92% from 13 tests

"SecurePay For Paid Memberships Pro" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected979 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP514361901
CSS25040
JavaScript25138

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity55.00
▷ Minimum class complexity7.00
▷ Maximum class complexity103.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods34
▷ Static methods2470.59%
▷ Public methods2161.76%
▷ Protected methods00.00%
▷ Private methods1338.24%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/bnk/hsbc0223.png1.91KB1.21KB▼ 36.50%
includes/admin/bnk/blank.png0.15KB0.10KB▼ 34.64%
includes/admin/bnk/test0023.png2.88KB1.52KB▼ 47.23%
includes/admin/bnk/uob0229.png1.88KB1.44KB▼ 23.54%
includes/admin/bnk/test0021.png2.88KB1.52KB▼ 47.23%