83% ultimate-ajax-login

Code Review | Ultimate AJAX Login

WordPress plugin Ultimate AJAX Login scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-ajax-login
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2014
  • Latest release: Jan 15, 2015
  • Number of updates: 10
  • Update frequency: every 5.7 days
  • Top authors: arbet01 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /13,326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.13ms] Passed 4 tests

An overview of server-side resources used by Ultimate AJAX Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0851.99 ▲6.18
Dashboard /wp-admin3.38 ▲0.0849.25 ▼2.45
Posts /wp-admin/edit.php3.44 ▲0.0849.85 ▲2.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.87 ▼16.35
Media Library /wp-admin/upload.php3.30 ▲0.0834.57 ▲0.11
Ultimate AJAX Login /wp-admin/options-general.php?page=ultimate_ajax_login3.2732.55

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate AJAX Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,998 ▲25214.41 ▲0.018.68 ▲6.5442.42 ▲4.65
Dashboard /wp-admin2,220 ▲285.16 ▲0.21113.47 ▲4.4942.26 ▲1.29
Posts /wp-admin/edit.php2,099 ▲102.35 ▲0.3236.83 ▼0.8135.21 ▲1.39
Add New Post /wp-admin/post-new.php1,532 ▼618.41 ▼4.97612.38 ▼79.6753.58 ▲0.06
Media Library /wp-admin/upload.php1,399 ▲114.53 ▲0.36102.50 ▼3.4142.77 ▼4.24
Ultimate AJAX Login /wp-admin/options-general.php?page=ultimate_ajax_login8912.0231.4841.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_ual_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'UAL_Template' not found in wp-content/plugins/ultimate-ajax-login/templates/widget-classic.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'UAL_Template' not found in wp-content/plugins/ultimate-ajax-login/templates/widget-dialog.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'UAL_Template' not found in wp-content/plugins/ultimate-ajax-login/templates/widget-popmodal.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-ajax-login/lib/class-ual-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-ajax-login/ultimate-ajax-login.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ultimate-ajax-login/inc/views/site-options.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Widget as it shows under Appearance -> Widgets), #2 (Classic Widget in footer sidebar), #3 (Dialog Widget after user clicks login button), #4 (Modal login form on Twenty Fourteen theme)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

ultimate-ajax-login/ultimate-ajax-login.php 92% from 13 tests

"Ultimate AJAX Login" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected38,476 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
CSS751,1022,00236,664
JavaScript42421561,328
PHP9232377484

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
345 PNG files occupy 1.12MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/jqueryui/themes/overcast/images/ui-bg_flat_0_eeeeee_40x100.png0.25KB0.08KB▼ 66.41%
lib/jqueryui/themes/ui-lightness/images/ui-icons_228ef1_256x240.png4.49KB4.18KB▼ 6.89%
lib/jqueryui/themes/hot-sneaks/images/ui-icons_454545_256x240.png6.91KB4.18KB▼ 39.44%
lib/jqueryui/themes/flick/images/ui-icons_ff0084_256x240.png4.49KB4.18KB▼ 6.89%
lib/jqueryui/themes/dot-luv/images/ui-bg_dots-small_40_00498f_2x2.png0.26KB0.08KB▼ 66.92%