84% memberfindme-login-connector

Code Review | MembershipWorks Login Connector

WordPress plugin MembershipWorks Login Connector scored84%from 54 tests.

About plugin

  • Plugin page: memberfindme-logi...
  • Plugin version: 6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: Sep 16, 2023
  • Number of updates: 85
  • Update frequency: every 44.3 days
  • Top authors: sourcefound (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /24,178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by MembershipWorks Login Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.44 ▼6.12
Dashboard /wp-admin3.33 ▼0.0246.53 ▼17.81
Posts /wp-admin/edit.php3.38 ▲0.0244.16 ▼5.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.68 ▼20.84
Media Library /wp-admin/upload.php3.25 ▲0.0235.00 ▲0.86

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

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

Browser metrics Passed 4 tests

MembershipWorks Login Connector: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.76 ▲0.0943.70 ▲0.10
Dashboard /wp-admin2,195 ▲215.52 ▼0.0182.34 ▼17.8335.75 ▼6.85
Posts /wp-admin/edit.php2,100 ▲31.94 ▼0.0933.94 ▼2.6536.34 ▲0.63
Add New Post /wp-admin/post-new.php1,534 ▲818.53 ▼4.60601.04 ▼79.3470.73 ▲12.97
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0297.08 ▼10.4442.60 ▼4.76

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 7 options in the database
    • widget_sf_widget_login
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/memberfindme-login-connector/memberfindmelogin.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === memberfindme-login-connector === )
The official readme.txt is a good inspiration

memberfindme-login-connector/memberfindmelogin.php 92% from 13 tests

The primary PHP file in "MembershipWorks Login Connector" version 6.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("memberfindme-login-connector.php" instead of "memberfindmelogin.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
No dangerous file extensions were detected330 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11825330

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.98
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin