78% woocommerce-login-and-registration

Code Review | Woocommerce Login / Signup Lite

WordPress plugin Woocommerce Login / Signup Lite scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-login...
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Jul 6, 2015
  • Latest release: Sep 29, 2021
  • Number of updates: 229
  • Update frequency: every 10.0 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

2,000+ active /152,885 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.01MB] [CPU: ▼10.16ms] Passed 4 tests

Server-side resources used by Woocommerce Login / Signup Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.75 ▲1.92
Dashboard /wp-admin3.31 ▼0.0446.67 ▼15.77
Posts /wp-admin/edit.php3.36 ▲0.0044.23 ▼2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.75 ▼24.55
Media Library /wp-admin/upload.php3.23 ▲0.0038.96 ▲5.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Login / Signup Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.62 ▼0.671.73 ▼0.0039.27 ▲0.95
Dashboard /wp-admin2,206 ▲184.86 ▼1.19103.71 ▼13.2538.46 ▼24.02
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0236.02 ▲0.9432.52 ▼5.54
Add New Post /wp-admin/post-new.php1,533 ▲1423.35 ▲0.10653.79 ▼35.1861.75 ▲8.69
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0893.66 ▼20.0240.85 ▼5.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 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 0% 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_login_signup_premium_version.php
    • > /wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_login_signup-admin-display.php
    • > /wp-content/plugins/woocommerce-login-and-registration/public/partials/phoen_login_signup-public-display.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-login-and-registration/public/phoen-login-signup-form/shortcode/lsphe-login-form.php:117
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_registration.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_login_signup_general_setting.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-login-and-registration/public/phoen-login-signup-form/shortcode/lsphe-signup-form.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_login.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_styling_popup.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-login-and-registration/public/phoen-login-signup-form/phoen_login_signup_auto_load.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-login-and-registration/admin/partials/phoen_login_signup_shortcode.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-login-and-registration/public/phoen-login-signup-form/shortcode/lsphe-header.php:4

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
Please take inspiration from this readme.txt

woocommerce-login-and-registration/phoen_login_signup.php 85% from 13 tests

The main file in "Woocommerce Login / Signup Lite" v. 4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-login-and-registration.php" instead of "phoen_login_signup.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,892 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP239465591,729
JavaScript4235132907
CSS33228256

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity11.88
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods3574.47%
▷ Protected methods00.00%
▷ Private methods1225.53%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/logo-wp.png1.20KB0.57KB▼ 52.72%
image/cross.png0.36KB0.22KB▼ 37.77%