10% ldap-integration

Code Review | LDAP-Integration

WordPress plugin LDAP-Integration scored10%from 54 tests.

About plugin

  • Plugin page: ldap-integration
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2013
  • Latest release: Jul 13, 2013
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: Alex1602 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,919 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/ldap-integration/ldap-integration.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; LdapIntegrationPlugin has a deprecated constructor

Server metrics [RAM: ▼0.93MB] [CPU: ▼34.15ms] Passed 4 tests

An overview of server-side resources used by LDAP-Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.87 ▼2.29
Dashboard /wp-admin3.01 ▼0.3022.34 ▼38.19
Posts /wp-admin/edit.php3.01 ▼0.3528.51 ▼13.39
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.13 ▼75.48
Media Library /wp-admin/upload.php3.01 ▼0.2220.58 ▼9.52
LDAP Integration /wp-admin/options-general.php?page=ldap-integration3.0123.25

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for LDAP-Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.35 ▼1.401.82 ▼0.0345.69 ▼3.41
Dashboard /wp-admin2,207 ▲224.89 ▼0.99111.57 ▼3.2642.53 ▼87.86
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0240.12 ▲2.4935.57 ▼1.27
Add New Post /wp-admin/post-new.php1,522 ▼1423.06 ▼0.42593.19 ▼4.9752.13 ▼7.04
Media Library /wp-admin/upload.php1,395 ▲74.18 ▲0.0095.33 ▲0.6041.79 ▲1.39
LDAP Integration /wp-admin/options-general.php?page=ldap-integration1,1352.0622.7530.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ldap-integration
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ldap-integration/ldap-integration.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (2.) image required
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

ldap-integration/ldap-integration.php Passed 13 tests

The main PHP file in "LDAP-Integration" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Allows WordPress to authenticate users through LDAP

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin692 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15781484
JavaScript112111
CSS118197

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.37
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin