77% wp-member-login-by-spiral

Code Review | WP Member Login by SPIRAL

WordPress plugin WP Member Login by SPIRAL scored77%from 54 tests.

About plugin

  • Plugin page: wp-member-login-b...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 26, 2013
  • Latest release: Jul 27, 2023
  • Number of updates: 46
  • Update frequency: every 76.8 days
  • Top authors: pipedbits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /6,456 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲2.93ms] Passed 4 tests

A check of server-side resources used by WP Member Login by SPIRAL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2152.57 ▲7.40
Dashboard /wp-admin3.53 ▲0.1985.67 ▲20.40
Posts /wp-admin/edit.php3.57 ▲0.2155.30 ▲1.51
Add New Post /wp-admin/post-new.php6.09 ▲0.2199.96 ▼5.15
Media Library /wp-admin/upload.php3.44 ▲0.2146.38 ▲7.97
WP Member Login by SPIRAL /wp-admin/options-general.php?page=spiral_member_login3.3940.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 10 new options
New WordPress options
sml_version
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_spiral_member_login
can_compress_scripts
widget_theysaidso_widget
spiral_member_login
sml_is_setup

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Member Login by SPIRAL
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲2414.35 ▲0.201.86 ▼0.0345.30 ▲1.69
Dashboard /wp-admin2,202 ▲255.62 ▼0.0594.36 ▼8.5741.91 ▼0.45
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0234.34 ▼3.7838.60 ▲2.78
Add New Post /wp-admin/post-new.php6,199 ▲4,67119.02 ▼4.03922.68 ▲273.8462.74 ▲13.14
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.03102.77 ▼0.9547.01 ▲0.57
WP Member Login by SPIRAL /wp-admin/options-general.php?page=spiral_member_login8152.0426.2833.87

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
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • sml_is_setup
    • widget_spiral_member_login
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • sml_version
    • db_upgraded
    • spiral_member_login

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-member-login-by-spiral/views/scripts/alert_script.php
  • 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Spiral_Member_Login_Base' not found in wp-content/plugins/wp-member-login-by-spiral/version_two/class-spiral-v2-member-login.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-member-login-by-spiral/views/admins/admin_v2.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Spiral_Member_Login_Base' not found in wp-content/plugins/wp-member-login-by-spiral/version_two/class-spiral-v2-member-login-template.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-member-login-by-spiral/views/login_widget.php:14
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_template_num() on null in wp-content/plugins/wp-member-login-by-spiral/views/user_info.php:9
    • > PHP Notice
      Undefined variable: template in wp-content/plugins/wp-member-login-by-spiral/views/user_info_widget.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to a member function the_template_num() on null in wp-content/plugins/wp-member-login-by-spiral/views/user_info_widget.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Recursive_ArrayAccess' not found in wp-content/plugins/wp-member-login-by-spiral/libs/class-wp-session.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-member-login-by-spiral/views/admins/admin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-member-login-by-spiral/views/actions/toggle_version.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

wp-member-login-by-spiral/spiral-member-login.php 77% from 13 tests

The principal PHP file in "WP Member Login by SPIRAL" v. 1.2.5 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-member-login-by-spiral.php" instead of "spiral-member-login.php")
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin20,008 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
JSON60012,977
PHP381,0992,2985,801
JavaScript13771501,081
CSS2123149

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity56.33
▷ Minimum class complexity4.00
▷ Maximum class complexity263.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes17.69%
Methods318
▷ Static methods319.75%
▷ Public methods27787.11%
▷ Protected methods195.97%
▷ Private methods226.92%
Functions29
▷ Named functions2275.86%
▷ Anonymous functions724.14%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
custom_blocks/version_one/app/icons/icon.png29.12KB10.84KB▼ 62.77%
custom_blocks/version_two/app/icons/icon.png29.12KB10.84KB▼ 62.77%