10% login-via-exchange

Code Review | Login via exchange

WordPress plugin Login via exchange scored10%from 54 tests.

About plugin

  • Plugin page: login-via-exchange
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Aug 31, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: daif (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /543 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
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method loginviaexchange::activation_hook() should not be called statically

Server metrics [RAM: ▼0.92MB] [CPU: ▼34.69ms] Passed 4 tests

This is a short check of server-side resources used by Login via exchange
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.39 ▲1.45
Dashboard /wp-admin3.02 ▼0.2823.00 ▼29.46
Posts /wp-admin/edit.php3.03 ▼0.3323.16 ▼36.26
Add New Post /wp-admin/post-new.php3.02 ▼2.8625.36 ▼59.93
Media Library /wp-admin/upload.php3.02 ▼0.2027.26 ▼13.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
loginviaexchange_version
db_upgraded
loginviaexchange_ews_url
theysaidso_admin_options
loginviaexchange_allow_wp_user
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Login via exchange
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.72 ▲0.461.61 ▼0.1442.24 ▼5.04
Dashboard /wp-admin2,211 ▲375.56 ▼0.0887.90 ▼7.9640.25 ▼2.91
Posts /wp-admin/edit.php2,116 ▲132.00 ▲0.0138.74 ▲3.7335.20 ▲0.34
Add New Post /wp-admin/post-new.php1,539 ▼923.26 ▲4.87680.27 ▼8.0857.05 ▼7.12
Media Library /wp-admin/upload.php1,416 ▲164.17 ▲0.0098.49 ▼3.6142.19 ▼5.15

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
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method loginviaexchange::admin_menu_action() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% 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 | 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/login-via-exchange/login-via-exchange.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: ews, asmx, owa, exchange, authentication...

login-via-exchange/login-via-exchange.php Passed 13 tests

This is the main PHP file of "Login via exchange" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Authenticate WordPress against exchange web service.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin135 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11129135

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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