10% ajax-login-by-wph

Code Review | Ajax Login By WPH

WordPress plugin Ajax Login By WPH scored10%from 54 tests.

About plugin

  • Plugin page: ajax-login-by-wph
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: May 31, 2016
  • Number of updates: 5
  • Update frequency: every 12.0 days
  • Top authors: noideaboy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /3,269 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ajax-login-by-wph/php/widget.php+185
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.07ms] Passed 4 tests

Server-side resources used by Ajax Login By WPH
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.60 ▼34.84
Dashboard /wp-admin2.05 ▼1.264.98 ▼50.16
Posts /wp-admin/edit.php2.05 ▼1.316.18 ▼44.84
Add New Post /wp-admin/post-new.php2.05 ▼3.845.97 ▼94.42
Media Library /wp-admin/upload.php2.05 ▼1.185.10 ▼30.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ajax Login By WPH
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲19114.71 ▲0.364.54 ▲1.9341.83 ▼1.02
Dashboard /wp-admin2,346 ▲1666.36 ▲0.75126.38 ▲34.7441.05 ▼1.40
Posts /wp-admin/edit.php2,277 ▲1773.63 ▲1.6058.01 ▲16.2036.07 ▼2.93
Add New Post /wp-admin/post-new.php1,538 ▲423.23 ▲0.31654.26 ▼10.3938.01 ▼13.82
Media Library /wp-admin/upload.php1,414 ▲114.35 ▲0.1384.67 ▼16.2946.11 ▼2.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/ajax-login-by-wph/php/widget.php+185
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_alw_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-login-by-wph/templates/alw-popup.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ajax-login-by-wph/php/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-login-by-wph/php/functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-login-by-wph/php/functions.php:8

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "kartikworkid@yahoo.in"
Please take inspiration from this readme.txt

ajax-login-by-wph/main.php 77% from 13 tests

Analyzing the main PHP file in "Ajax Login By WPH" version 1.0.0
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 248 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ajax-login-by-wph.php" instead of "main.php")
  • Requires at least: Required version must match the one declared in readme.txt ("3.5.0" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,184 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS2886608
PHP4158122575
JavaScript1031

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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 were not PNG files found in your plugin