84% elsner-ajax-login

Code Review | Elsner Ajax Login

WordPress plugin Elsner Ajax Login scored84%from 54 tests.

About plugin

  • Plugin page: elsner-ajax-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 8, 2017
  • Latest release: Jan 26, 2022
  • Number of updates: 10
  • Update frequency: every 167.5 days
  • Top authors: santoshdhaduk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.40ms] Passed 4 tests

A check of server-side resources used by Elsner Ajax Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.59 ▼5.14
Dashboard /wp-admin3.31 ▲0.0146.74 ▲1.82
Posts /wp-admin/edit.php3.36 ▲0.0047.43 ▼1.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.49 ▼21.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.04 ▲2.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elsner Ajax Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.74 ▼0.844.92 ▲2.8342.21 ▲1.97
Dashboard /wp-admin2,203 ▲155.91 ▲1.04106.35 ▲3.0238.50 ▼4.87
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0137.95 ▲0.6532.42 ▼2.23
Add New Post /wp-admin/post-new.php1,534 ▼823.17 ▲4.78634.17 ▲0.7947.40 ▼1.40
Media Library /wp-admin/upload.php1,382 ▼34.16 ▼0.2493.90 ▼3.9841.23 ▼2.49

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/elsner-ajax-login/Elsnerajaxlogin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ajax login, login

elsner-ajax-login/Elsnerajaxlogin.php 92% from 13 tests

The main PHP file in "Elsner Ajax Login" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("elsner-ajax-login.php" instead of "Elsnerajaxlogin.php")

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
Everything looks great! No dangerous files found in this plugin185 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS111093
PHP1281161
JavaScript19231

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin