10% lp-voguepay

Code Review | VoguePay Plugin for LearnPress

WordPress plugin VoguePay Plugin for LearnPress scored 10% from 54 tests.

About plugin

  • Plugin page: lp-voguepay
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2018
  • Latest release: Feb 22, 2019
  • Number of updates: 10
  • Update frequency: every 50.5 days
  • Top authors: kunlexzy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 3,797 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Error in wp-content/plugins/lp-voguepay/learnpress_voguepay.php+24
    Uncaught Error: Class 'LP_Addon' not found in wp-content/plugins/lp-voguepay/learnpress_voguepay.php:24
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.13ms] Passed 4 tests

This is a short check of server-side resources used by VoguePay Plugin for LearnPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.80 ▲1.12
Dashboard /wp-admin3.31 ▲0.0043.97 ▼4.49
Posts /wp-admin/edit.php3.36 ▲0.0047.62 ▲2.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.67 ▲1.13
Media Library /wp-admin/upload.php3.23 ▲0.0038.86 ▲3.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by VoguePay Plugin for LearnPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.28 ▼1.494.23 ▲1.8742.47 ▼6.52
Dashboard /wp-admin2,209 ▲35.90 ▼0.01107.87 ▼2.2138.03 ▼4.84
Posts /wp-admin/edit.php2,092 ▲62.01 ▲0.0141.87 ▲8.1336.76 ▼0.25
Add New Post /wp-admin/post-new.php1,537 ▲423.31 ▲0.51667.87 ▲27.9658.15 ▲2.97
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0291.34 ▼25.2446.29 ▼2.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add an image for screenshot #2 (Checkout Page)
You can take inspiration from this readme.txt

lp-voguepay/learnpress_voguepay.php 92% from 13 tests

The main file in "VoguePay Plugin for LearnPress" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lp-voguepay.php" instead of "learnpress_voguepay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin228 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310089228

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods212.50%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/voguepay_icon.png3.53KB2.17KB▼ 38.60%