10% simple-wp-login

Code Review | Ready Login Windows

WordPress plugin Ready Login Windows scored10%from 54 tests.

About plugin

  • Plugin page: simple-wp-login
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Nov 24, 2014
  • Latest release: Mar 14, 2021
  • Number of updates: 7
  • Update frequency: every 328.9 days
  • Top authors: nmedia (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,396 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method NM_Login::activate_plugin() should not be called statically

Server metrics [RAM: ▲0.52MB] [CPU: ▲1.41ms] Passed 4 tests

An overview of server-side resources used by Ready Login Windows
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4526.65 ▼10.09
Dashboard /wp-admin3.89 ▲0.5951.30 ▲4.34
Posts /wp-admin/edit.php3.94 ▲0.5849.48 ▲6.15
Add New Post /wp-admin/post-new.php6.41 ▲0.5299.05 ▲13.95
Media Library /wp-admin/upload.php3.75 ▲0.5240.40 ▲5.24
WP Login /wp-admin/options-general.php?page=nm_logins3.7639.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Ready Login Windows: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲19113.60 ▼1.1212.21 ▲10.5842.07 ▲2.26
Dashboard /wp-admin2,199 ▲195.55 ▼0.0683.04 ▼10.4742.09 ▲3.45
Posts /wp-admin/edit.php2,107 ▲72.04 ▲0.0139.29 ▼0.9031.73 ▼3.24
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▲0.14603.61 ▲1.2360.65 ▼8.56
Media Library /wp-admin/upload.php1,404 ▲74.14 ▼0.0594.32 ▼7.8841.38 ▼4.42
WP Login /wp-admin/options-general.php?page=nm_logins1,7417.7278.25117.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method NM_Login::deactivate_plugin() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nm_logins
    • > Notice in wp-content/plugins/simple-wp-login/classes/admin.class.php+273
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=nm_logins
    • > Notice in wp-content/plugins/simple-wp-login/templates/admin/settings.php+64
    Undefined index: label

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-wp-login/templates/admin/registration.php
  • 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-wp-login/index.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.checkbox.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.date.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Login' not found in wp-content/plugins/simple-wp-login/classes/admin.class.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.email.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.instagram.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.text.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.select.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.number.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NM_Inputs_nm_logins' not found in wp-content/plugins/simple-wp-login/classes/inputs/input.file.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: registration, wp-admin, login-screen, login, wp-login

simple-wp-login/index.php 85% from 13 tests

The principal PHP file in "Ready Login Windows" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-wp-login.php" instead of "index.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 detected5,732 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,1427292,966
CSS18256662,292
JavaScript5160163474

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.43
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods105
▷ Static methods21.90%
▷ Public methods8681.90%
▷ Protected methods00.00%
▷ Private methods1918.10%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
37 PNG files occupy 1.35MB with 0.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/animated-login.png174.07KB75.51KB▼ 56.62%
images/logo.png1.88KB1.02KB▼ 45.84%
js/ui/css/smoothness/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
styles/images/form-bg.png2.78KB0.10KB▼ 96.55%
images/blurred.png109.59KB36.98KB▼ 66.25%