84% ultimate-membership-pro-paystack

Code Review | Ultimate Membership Pro - Paystack

WordPress plugin Ultimate Membership Pro - Paystack scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-membersh...
  • Plugin version: 1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Apr 20, 2023
  • Number of updates: 15
  • Update frequency: every 11.7 days
  • Top authors: wpindeed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /779 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.47ms] Passed 4 tests

Server-side resources used by Ultimate Membership Pro - Paystack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.1644.15 ▼3.37
Dashboard /wp-admin3.71 ▲0.1553.54 ▼1.54
Posts /wp-admin/edit.php3.77 ▲0.0954.24 ▲2.90
Add New Post /wp-admin/post-new.php6.23 ▲0.0992.79 ▼19.86
Media Library /wp-admin/upload.php3.58 ▲0.0942.11 ▲5.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Ultimate Membership Pro - Paystack: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.38 ▲0.181.82 ▼0.1141.07 ▼2.19
Dashboard /wp-admin2,195 ▲145.58 ▼0.2088.95 ▼11.3540.99 ▼1.80
Posts /wp-admin/edit.php2,106 ▲92.01 ▼0.0141.08 ▲3.1238.01 ▲5.38
Add New Post /wp-admin/post-new.php1,548 ▲323.50 ▲0.16668.83 ▲36.5051.85 ▼22.00
Media Library /wp-admin/upload.php1,397 ▼04.23 ▲0.02102.17 ▼2.0746.41 ▲2.53

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ultimate-membership-pro-paystack/views/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Decision.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Yabacon\\Paystack\\Exception\\PaystackException' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Exception/ValidationException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Plan.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Subaccount.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Invoice.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Balance.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Settlement.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Page.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Yabacon\\Paystack\\Contracts\\RouteInterface' not found in wp-content/plugins/ultimate-membership-pro-paystack/classes/libs/Paystack/Routes/Transferrecipient.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Addon activated), #2 (Order from the list of payment tools), #3 (Paystack activated in Payment Services)
The official readme.txt is a good inspiration

ultimate-membership-pro-paystack/ultimate-membership-pro-paystack.php Passed 13 tests

The primary PHP file in "Ultimate Membership Pro - Paystack" version 1.3 is used by WordPress to initiate all plugin functionality
124 characters long description:
With the help of this addon, you may grow your business, membership system, and collect payments from anywhere in the world.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,745 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP464514942,674
CSS282048
SVG10012
JSON10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.27
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes00.00%
Methods200
▷ Static methods9045.00%
▷ Public methods18291.00%
▷ Protected methods21.00%
▷ Private methods168.00%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants18
▷ Global constants211.11%
▷ Class constants1688.89%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/paystack.png6.31KB3.55KB▼ 43.76%