10% ldap-wp-login-integration-with-active-directory

Code Review | Ldap WP Login / Active Directory Integration

WordPress plugin Ldap WP Login / Active Directory Integration scored10%from 54 tests.

About plugin

  • Plugin page: ldap-wp-login-int...
  • Plugin version: 3.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Oct 10, 2020
  • Latest release: Oct 3, 2022
  • Number of updates: 14
  • Update frequency: every 51.7 days
  • Top authors: robert05 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,605 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/ldap-wp-login-integration-with-active-directory/Ladp_auth.php+13
    require_once(ldap_feedback_form.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.03ms] Passed 4 tests

This is a short check of server-side resources used by Ldap WP Login / Active Directory Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.62 ▼1.77
Dashboard /wp-admin3.31 ▼0.0442.46 ▼19.81
Posts /wp-admin/edit.php3.36 ▲0.0045.61 ▲0.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.61 ▼15.05
Media Library /wp-admin/upload.php3.23 ▲0.0037.57 ▲5.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ldap WP Login / Active Directory Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.081.62 ▼0.3638.25 ▼4.99
Dashboard /wp-admin2,189 ▲125.54 ▼0.0885.89 ▼5.5037.60 ▼3.64
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0536.58 ▼1.6932.38 ▼3.57
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.10668.11 ▼2.0867.51 ▲12.34
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.00111.21 ▼1.4047.33 ▼2.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ldap_feedback_form.php' (include_path='.:/usr/share/php') in wp-content/plugins/ldap-wp-login-integration-with-active-directory/Ladp_auth.php on line 13
    • > PHP Warning
      require_once(ldap_feedback_form.php): failed to open stream: No such file or directory in wp-content/plugins/ldap-wp-login-integration-with-active-directory/Ladp_auth.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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:
  • Screenshots: Add images for these screenshots: #1 (LDAP Configuration.), #2 (LDAP login setup), #3 (Attributes Mapping from AD to WP users.), #4 (Role Mapping automatically map AD groups to the WP roles.)
You can look at the official readme.txt

ldap-wp-login-integration-with-active-directory/Ladp_auth.php 92% from 13 tests

The main file in "Ldap WP Login / Active Directory Integration" v. 3.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ldap-wp-login-integration-with-active-directory.php" instead of "Ladp_auth.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,564 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5364831,348
CSS1421216

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity52.00
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity7.33
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1560.00%
▷ Public methods25100.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
There are no PNG files in this plugin