68% wp-login-with-ajax

Code Review | Wp Login with Ajax

WordPress plugin Wp Login with Ajax scored68%from 54 tests.

About plugin

  • Plugin page: wp-login-with-ajax
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Mar 21, 2022
  • Number of updates: 28
  • Update frequency: every 77.1 days
  • Top authors: neerajsharma2855 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,745 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼1.90MB] [CPU: ▼56.42ms] Passed 4 tests

Server-side resources used by Wp Login with Ajax
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.16 ▼37.76
Dashboard /wp-admin2.11 ▼1.197.07 ▼45.03
Posts /wp-admin/edit.php2.11 ▼1.257.54 ▼46.59
Add New Post /wp-admin/post-new.php2.11 ▼3.787.27 ▼96.31
Media Library /wp-admin/upload.php2.11 ▼1.125.44 ▼31.04
Wp Ajax Login Manage /wp-admin/options-general.php?page=wpajaxwithlogin_manage2.116.83

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Login with Ajax
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲10313.43 ▼1.328.92 ▲6.2541.51 ▼3.21
Dashboard /wp-admin2,204 ▲275.67 ▲0.0189.71 ▼2.8441.26 ▲1.85
Posts /wp-admin/edit.php2,109 ▲92.01 ▼0.0136.81 ▼5.6433.39 ▼4.03
Add New Post /wp-admin/post-new.php1,534 ▲823.19 ▼0.10659.13 ▲19.6153.90 ▲1.77
Media Library /wp-admin/upload.php1,412 ▲94.29 ▼0.03101.17 ▼1.3944.39 ▼2.53
Wp Ajax Login Manage /wp-admin/options-general.php?page=wpajaxwithlogin_manage9281.8930.0466.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wlwa-ALogin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wpajaxwithlogin_manage
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wlwa-ALogin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-with-ajax/loginClass.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-login-with-ajax/loginClass.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-login-with-ajax/ajaxCall.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: login ajax form, ajax login, ajax, sidebar, redirect redirect...

wp-login-with-ajax/wp-login-with-ajax.php Passed 13 tests

The main file in "Wp Login with Ajax" v. 0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Add ajax login functionality without refreshing the page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected451 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36719285
JavaScript112087
CSS10079

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG files were detected