84% lazy-sign-in

Code Review | Lazy Sign-in

WordPress plugin Lazy Sign-in scored84%from 54 tests.

About plugin

  • Plugin page: lazy-sign-in
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Aug 4, 2021
  • Number of updates: 27
  • Update frequency: every 61.9 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,688 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.61ms] Passed 4 tests

A check of server-side resources used by Lazy Sign-in
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0849.40 ▲7.60
Dashboard /wp-admin3.38 ▲0.0748.84 ▼8.64
Posts /wp-admin/edit.php3.43 ▲0.0749.52 ▼4.56
Add New Post /wp-admin/post-new.php5.96 ▲0.0794.03 ▼21.91
Media Library /wp-admin/upload.php3.30 ▲0.0738.64 ▲0.67

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Sign-in
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲15113.64 ▼0.718.78 ▲6.9436.91 ▼5.11
Dashboard /wp-admin2,209 ▲325.67 ▲0.0481.49 ▼4.9274.45 ▲32.03
Posts /wp-admin/edit.php2,117 ▲171.99 ▼0.0139.20 ▼2.6334.78 ▼3.89
Add New Post /wp-admin/post-new.php1,555 ▲2922.71 ▼0.26688.29 ▲21.3452.18 ▼7.96
Media Library /wp-admin/upload.php1,414 ▲144.13 ▼0.06104.94 ▼11.9471.35 ▲24.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lazy-sign-in/lazy-sign-in.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lazy-sign-in/admin/form.php:90

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: form, login, user registration, registration, sign up

lazy-sign-in/lazy-sign-in.php Passed 13 tests

The main file in "Lazy Sign-in" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
LAZY SING-IN lets you easily create a fully customizable AJAX powered responsive login and sign-up form for your website.

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 detected15,791 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS54248,126
JavaScript58013572,849
Sass1434341,656
LESS1434441,646
SVG100685
PHP61130656
PO File26666173

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/leftbar-logo.png15.32KB0.78KB▼ 94.94%
images/logo-sm.png15.61KB5.74KB▼ 63.21%
images/logo.png18.49KB6.95KB▼ 62.42%
images/lazy_sign_in_login-sidebar-bg.png1.02KB0.11KB▼ 89.44%
images/lazy_sign_in_login-sidebar-line.png1.05KB0.35KB▼ 66.39%