89% payment-for-lifterlms-2checkout

Code Review | Payment For LifterLMS 2checkout

WordPress plugin Payment For LifterLMS 2checkout scored89%from 54 tests.

About plugin

  • Plugin page: payment-for-lifte...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2021
  • Latest release: Apr 29, 2021
  • Number of updates: 9
  • Update frequency: every 9.9 days
  • Top authors: codeglitters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.95ms] Passed 4 tests

This is a short check of server-side resources used by Payment For LifterLMS 2checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.90 ▼2.54
Dashboard /wp-admin3.32 ▲0.0248.80 ▼4.20
Posts /wp-admin/edit.php3.37 ▲0.0246.02 ▼0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.42 ▼12.51
Media Library /wp-admin/upload.php3.24 ▲0.0237.32 ▲2.47

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

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

Browser metrics Passed 4 tests

Payment For LifterLMS 2checkout: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.081.85 ▲0.1738.59 ▼0.99
Dashboard /wp-admin2,195 ▲185.62 ▼0.0887.58 ▼4.6235.59 ▼2.35
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0336.02 ▼4.2432.22 ▼2.15
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.06596.58 ▼24.9249.96 ▼10.05
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.0399.82 ▼10.6844.69 ▲0.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can take inspiration from this readme.txt

payment-for-lifterlms-2checkout/payment-for-lifterlms-2checkout.php 92% from 13 tests

The main file in "Payment For LifterLMS 2checkout" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "4.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin541 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6161109436
PO File1242464
JavaScript121032
CSS1209

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.30
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity16.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods23
▷ Static methods28.70%
▷ Public methods1773.91%
▷ Protected methods00.00%
▷ Private methods626.09%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG images were found in this plugin