78% all-in-one-login

Code Review | all-in-one-box-login

WordPress plugin all-in-one-box-login scored 78% from 54 tests.

About plugin

  • Plugin page: all-in-one-login
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2016
  • Latest release: Nov 6, 2016
  • Number of updates: 17
  • Update frequency: every 6.4 days
  • Top authors: mzfreelancer007 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.27ms] Passed 4 tests

Analyzing server-side resources used by all-in-one-box-login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.33 ▼2.61
Dashboard /wp-admin3.32 ▲0.0246.25 ▼5.13
Posts /wp-admin/edit.php3.37 ▲0.0251.91 ▲6.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.76 ▼9.30
Media Library /wp-admin/upload.php3.24 ▲0.0239.28 ▲3.95
AIOB Login /wp-admin/admin.php?page=aiob_login3.2132.13
Notifications /wp-admin/admin.php?page=aiob_login_notifications3.2132.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for all-in-one-box-login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.61 ▼0.795.51 ▲3.7637.81 ▼6.74
Dashboard /wp-admin2,244 ▲585.04 ▲0.11111.56 ▼6.7340.96 ▼5.34
Posts /wp-admin/edit.php2,124 ▲352.05 ▲0.0239.19 ▲3.7936.50 ▲1.50
Add New Post /wp-admin/post-new.php1,697 ▲16322.63 ▼0.44617.89 ▼12.9755.03 ▼0.94
Media Library /wp-admin/upload.php1,423 ▲354.35 ▲0.1195.39 ▼0.4247.27 ▲3.17
AIOB Login /wp-admin/admin.php?page=aiob_login8912.0722.6428.20
Notifications /wp-admin/admin.php?page=aiob_login_notifications8982.0825.6429.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please fix the following items
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/all-in-one-login/admin/logout.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/all-in-one-login/aiob-login.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'AIOB_L_PLUGIN_PATHadmin/include/db_crud.php' (include_path='.:/usr/share/php') in wp-content/plugins/all-in-one-login/admin/admin_menu.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/all-in-one-login/admin/shortcodes.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-login/admin/scripts.php:10
    • > PHP Warning
      Use of undefined constant AIOB_L_PLUGIN_PATH - assumed 'AIOB_L_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-login/admin/admin_menu.php on line 2
    • > PHP Warning
      require_once(AIOB_L_PLUGIN_PATHadmin/include/db_crud.php): failed to open stream: No such file or directory in wp-content/plugins/all-in-one-login/admin/admin_menu.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aiob_login_notifications
    • > Javascript (severe) in unknown
    /wp-content/plugins/all-in-one-login/admin/src/js/bootstrap.js?ver=1 14:10 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === all-in-one-login === )
You can take inspiration from this readme.txt

all-in-one-login/aiob-login.php 85% from 13 tests

The main file in "all-in-one-box-login" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("all-in-one-login.php" instead of "aiob-login.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,574 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS3986,760
JavaScript35831931,593
PHP65325219
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected