89% wp-login-ajaxify

Code Review | Ajaxify WP Login

WordPress plugin Ajaxify WP Login scored89%from 54 tests.

About plugin

  • Plugin page: wp-login-ajaxify
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 29, 2018
  • Latest release: Aug 27, 2023
  • Number of updates: 10
  • Update frequency: every 194.6 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /710 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.59ms] Passed 4 tests

Server-side resources used by Ajaxify WP Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.21 ▼6.08
Dashboard /wp-admin3.32 ▲0.0144.59 ▼2.50
Posts /wp-admin/edit.php3.37 ▲0.0149.33 ▲4.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.31 ▲8.14
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▲1.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ajaxify WP Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5613.81 ▼0.481.61 ▼0.4540.29 ▼12.58
Dashboard /wp-admin2,203 ▲184.86 ▼0.99110.42 ▲8.9942.22 ▲1.57
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0540.04 ▲2.7636.88 ▲3.29
Add New Post /wp-admin/post-new.php1,533 ▲1323.04 ▼0.30573.00 ▼104.4446.43 ▼17.69
Media Library /wp-admin/upload.php1,388 ▼34.31 ▲0.1097.46 ▼2.5741.24 ▼2.19

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: wp-custom-login, ajax, wp-login, login-ajax, user-login...

wp-login-ajaxify/wp-login-ajax.php 85% from 13 tests

"Ajaxify WP Login" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-login-ajaxify.php" instead of "wp-login-ajax.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected95 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript112060
PHP1212635

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin