62% ajax-bootmodal-login

Code Review | Ajax BootModal Login

WordPress plugin Ajax BootModal Login scored 62% from 54 tests.

About plugin

  • Plugin page: ajax-bootmodal-login
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Oct 1, 2014
  • Number of updates: 16
  • Update frequency: every 13.9 days
  • Top authors: alimir (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

100+ active / 27,528 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼29.39ms] Passed 4 tests

Server-side resources used by Ajax BootModal Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1735.44 ▼5.60
Dashboard /wp-admin3.16 ▼0.1526.06 ▼20.17
Posts /wp-admin/edit.php3.16 ▼0.2025.07 ▼20.51
Add New Post /wp-admin/post-new.php3.16 ▼2.7327.13 ▼66.70
Media Library /wp-admin/upload.php3.16 ▼0.0722.61 ▼10.18
BootModal Login Settings /wp-admin/options-general.php?page=ajax-bootmodal-login/inc/settings.php3.1624.94

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 22 new options
New WordPress options
theysaidso_admin_options
enable_register_captcha
widget_recent-comments
widget_theysaidso_widget
enable_login_captcha
can_register_option
db_upgraded
lable_setting
modal_theme
enable_lostpass_captcha
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ajax BootModal Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14513.83 ▼0.4410.72 ▲8.5942.87 ▲0.33
Dashboard /wp-admin2,210 ▲254.87 ▼0.99108.01 ▲10.3743.14 ▼0.39
Posts /wp-admin/edit.php2,093 ▲72.03 ▼0.0141.08 ▲4.1234.37 ▼0.54
Add New Post /wp-admin/post-new.php1,540 ▲722.92 ▼0.19652.32 ▼30.1564.26 ▲10.44
Media Library /wp-admin/upload.php1,392 ▲44.13 ▼0.1196.68 ▼6.6243.39 ▼1.20
BootModal Login Settings /wp-admin/options-general.php?page=ajax-bootmodal-login/inc/settings.php1,1711.7029.1029.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_ajax_bootmodal
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=ajax-bootmodal-login/inc/settings.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/ajax-bootmodal-login/tmp/captcha/lost-captcha.php
    • > /wp-content/plugins/ajax-bootmodal-login/tmp/captcha/log-captcha.php
    • > /wp-content/plugins/ajax-bootmodal-login/tmp/captcha/reg-captcha.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-bootmodal-login/tmp/login-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/ajax-bootmodal-login/alimir-bootmodal-login.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-bootmodal-login/tmp/registrer-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-bootmodal-login/tmp/lostpass-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-bootmodal-login/inc/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-bootmodal-login/inc/scripts.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-bootmodal-login/inc/functions.php:97
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ajax-bootmodal-login/inc/shortcode.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ajax-bootmodal-login/tmp/inc/recent-comments.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ajax-bootmodal-login/inc/widget.php:3

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: abm login, wp ajax login, wordpress modal login, wordpress abm-login plugin, custom login widget...

ajax-bootmodal-login/alimir-bootmodal-login.php 85% from 13 tests

The entry point to "Ajax BootModal Login" version 1.4.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 248 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("ajax-bootmodal-login.php" instead of "alimir-bootmodal-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,810 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PO File66921,7331,456
PHP1814471887
CSS58535368
JavaScript301499

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin