84% adaptive-login-action

Code Review | Adaptive Login Action

WordPress plugin Adaptive Login Action scored84%from 54 tests.

About plugin

  • Plugin page: adaptive-login-ac...
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.9
  • WordPress version: 6.3.1
  • First release: May 29, 2021
  • Latest release: Feb 16, 2022
  • Number of updates: 6
  • Update frequency: every 44.0 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /498 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.03MB] [CPU: ▼7.52ms] Passed 4 tests

A check of server-side resources used by Adaptive Login Action
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.25 ▼1.61
Dashboard /wp-admin3.34 ▲0.0347.67 ▼7.22
Posts /wp-admin/edit.php3.39 ▲0.0347.63 ▼0.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.19 ▼20.59
Media Library /wp-admin/upload.php3.26 ▲0.0336.96 ▼0.65
Adaptive Login Action /wp-admin/options-general.php?page=adaptive-login-action/options.php3.2432.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
adaptive-login-action_option_whitelist_ip
adaptive-login-action_last_ok
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
adaptive-login-action_ip_127.0.0.1
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adaptive Login Action
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.73 ▲0.371.99 ▲0.0436.51 ▼8.40
Dashboard /wp-admin2,202 ▲225.63 ▼0.0690.72 ▼6.2240.62 ▼3.06
Posts /wp-admin/edit.php2,086 ▼172.00 ▲0.0238.84 ▼8.3339.56 ▲1.54
Add New Post /wp-admin/post-new.php1,529 ▲123.60 ▲0.56631.24 ▲13.5355.05 ▲5.89
Media Library /wp-admin/upload.php1,404 ▲74.19 ▲0.0093.96 ▼9.9140.41 ▼4.83
Adaptive Login Action /wp-admin/options-general.php?page=adaptive-login-action/options.php8332.0025.2024.80

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/adaptive-login-action/adaptive-login-action.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adaptive-login-action/options.php:48

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("wpgear.xyz/adaptive-login-action")
You can look at the official readme.txt

adaptive-login-action/adaptive-login-action.php Passed 13 tests

This is the main PHP file of "Adaptive Login Action" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Compromise between Comfort and Paranoia.

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
Everything looks great! No dangerous files found in this plugin327 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP47349288
CSS22839

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions11
▷ Named functions11100.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
PNG images were not found in this plugin