89% login-with-yourmembership

Code Review | YourMembership Single Sign On - YM SSO Login

WordPress plugin YourMembership Single Sign On - YM SSO Login scored 89% from 54 tests.

About plugin

  • Plugin page: login-with-yourme...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Jul 27, 2023
  • Number of updates: 25
  • Update frequency: every 39.6 days
  • Top authors: cyberlord92 (88%)anukasha (16%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,213 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼0.24ms] Passed 4 tests

This is a short check of server-side resources used by YourMembership Single Sign On - YM SSO Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2841.98 ▼0.18
Dashboard /wp-admin3.58 ▲0.2845.71 ▼2.56
Posts /wp-admin/edit.php3.70 ▲0.3448.52 ▲0.73
Add New Post /wp-admin/post-new.php6.18 ▲0.3086.93 ▲1.04
Media Library /wp-admin/upload.php3.51 ▲0.2839.36 ▲1.18

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for YourMembership Single Sign On - YM SSO Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲8813.23 ▼1.241.70 ▲0.0444.09 ▼2.46
Dashboard /wp-admin2,227 ▲365.86 ▲1.0199.57 ▼1.1588.08 ▲50.36
Posts /wp-admin/edit.php2,113 ▲242.06 ▲0.0635.05 ▼0.8233.06 ▲2.35
Add New Post /wp-admin/post-new.php1,686 ▲15221.08 ▼2.44731.70 ▲28.9246.81 ▼21.64
Media Library /wp-admin/upload.php1,403 ▲154.29 ▲0.1896.00 ▼9.4265.71 ▲17.10

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_moym_login_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: ym login, ym, membership login, yourmembership, membership...

login-with-yourmembership/moym-settings.php 92% from 13 tests

The main PHP file in "YourMembership Single Sign On - YM SSO Login" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("login-with-yourmembership.php" instead of "moym-settings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,999 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP172435431,883
CSS2315171,115
JavaScript1081

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.29
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.26
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions2395.83%
▷ Anonymous functions14.17%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/edit.png3.64KB3.62KB▼ 0.62%
(invalid) includes/images/ym_image.png3.80KB0.00KB▼ 100.00%
includes/images/normal.png15.74KB7.91KB▼ 49.78%
includes/images/happy.png18.06KB9.04KB▼ 49.98%
includes/images/flags16.png61.80KB19.90KB▼ 67.79%