78% membees-member-login-widget

Code Review | Membee Login

WordPress plugin Membee Login scored78%from 54 tests.

About plugin

  • Plugin page: membees-member-lo...
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 3, 2012
  • Latest release: Apr 12, 2023
  • Number of updates: 148
  • Update frequency: every 27.2 days
  • Top authors: DaleAB (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /18,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.37ms] Passed 4 tests

Server-side resources used by Membee Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2544.99 ▲1.77
Dashboard /wp-admin3.55 ▲0.2051.21 ▼20.00
Posts /wp-admin/edit.php3.66 ▲0.3053.54 ▲9.52
Add New Post /wp-admin/post-new.php6.14 ▲0.2498.12 ▼3.84
Media Library /wp-admin/upload.php3.47 ▲0.2439.39 ▲4.61
Members Only /wp-admin/options-general.php?page=wpac-options3.5440.95
Membee Login /wp-admin/options-general.php?page=membee_login3.4132.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Membee Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.27 ▼1.395.05 ▲2.5838.66 ▼8.47
Dashboard /wp-admin2,216 ▲314.85 ▼0.96109.29 ▲7.0943.88 ▲7.25
Posts /wp-admin/edit.php2,102 ▲102.04 ▲0.0242.04 ▲0.1135.06 ▲0.02
Add New Post /wp-admin/post-new.php6,311 ▲4,79221.57 ▼1.88859.44 ▲223.7351.93 ▼6.86
Media Library /wp-admin/upload.php1,398 ▲104.22 ▼0.0098.12 ▼11.0243.73 ▲1.83
Members Only /wp-admin/options-general.php?page=wpac-options1,5281.6823.4134.83
Membee Login /wp-admin/options-general.php?page=membee_login7902.0525.4424.31

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=membee_login
    • > Notice in wp-content/plugins/membees-member-login-widget/mvc/v.php+35
    Undefined index: message

SRP 50% from 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
Almost there! Just fix the following items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/membees-member-login-widget/lib/Walker.php:13
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/membees-member-login-widget/templates/options.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/membees-member-login-widget/lib/Walker.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/membees-member-login-widget/templates/options.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/membees-member-login-widget/lib/Walker.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/membees-member-login-widget/templates/meta_box.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/membees-member-login-widget/default-widgets.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: social, authentication, membership, members, login...

membees-member-login-widget/membee-login.php 92% from 13 tests

The main PHP file in "Membee Login" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("membees-member-login-widget.php" instead of "membee-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,993 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP95462401,454
HTML1910320
CSS2410219

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity62.67
▷ Minimum class complexity16.00
▷ Maximum class complexity154.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods2464.86%
▷ Public methods3594.59%
▷ Protected methods25.41%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
documentation/assets/images/members_interface.png15.06KB6.29KB▼ 58.21%
public/images/lock.png7.77KB3.80KB▼ 51.09%
documentation/assets/images/white-grad.png0.21KB0.18KB▼ 12.38%
documentation/assets/images/htmlstructure.png64.29KB17.65KB▼ 72.55%
public/images/unlock.png7.86KB3.78KB▼ 51.86%