78% ajax-login-registration

Code Review | Ajax Login Registration

WordPress plugin Ajax Login Registration scored78%from 54 tests.

About plugin

  • Plugin page: ajax-login-regist...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2019
  • Latest release: Aug 20, 2023
  • Number of updates: 10
  • Update frequency: every 159.6 days
  • Top authors: ravigadhiyawp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,246 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.14ms] Passed 4 tests

This is a short check of server-side resources used by Ajax Login Registration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1647.52 ▲2.40
Dashboard /wp-admin3.46 ▲0.1554.19 ▼2.96
Posts /wp-admin/edit.php3.57 ▲0.2153.68 ▼0.30
Add New Post /wp-admin/post-new.php6.04 ▲0.1594.19 ▼7.69
Media Library /wp-admin/upload.php3.38 ▲0.1544.20 ▲5.15
Signup / Signin /wp-admin/admin.php?page=ajax-login-registration3.4242.59
Documentation /wp-admin/admin.php?page=ajax-login-registration-documentation3.3435.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ajax Login Registration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.49 ▼0.8611.73 ▲9.5442.44 ▲0.94
Dashboard /wp-admin2,222 ▲455.64 ▼0.0387.43 ▼8.4946.06 ▲8.65
Posts /wp-admin/edit.php2,127 ▲302.02 ▲0.0341.00 ▲4.6641.78 ▲4.23
Add New Post /wp-admin/post-new.php1,548 ▲2223.23 ▲0.25687.62 ▼19.3853.54 ▼6.00
Media Library /wp-admin/upload.php1,427 ▲274.14 ▼0.07116.35 ▲7.8747.37 ▲2.64
Signup / Signin /wp-admin/admin.php?page=ajax-login-registration2,2029.96191.0767.24
Documentation /wp-admin/admin.php?page=ajax-login-registration-documentation8322.0224.4037.34

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 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ajax-login-registration/admin/partials/ajax-login-registration-setting-documentation.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined index: REDIRECT_URL in wp-content/plugins/ajax-login-registration/public/templates/ajax-registration-form.php on line 12
    • > PHP Notice
      Undefined index: REDIRECT_URL in wp-content/plugins/ajax-login-registration/public/templates/ajax-login-form.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ajax-login-registration/public/templates/ajax-login-form.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/ajax-login-registration/admin/partials/ajax-login-registration-setting.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ajax-login-registration/public/templates/ajax-registration-form.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt might help

ajax-login-registration/ajax-login-registration.php Passed 13 tests

The principal PHP file in "Ajax Login Registration" v. 1.0.1 is loaded by WordPress automatically on each request
58 characters long description:
Ajax login & registration with email template confirmation

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,465 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22441831,518
PHP14101420938
CSS1019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin