83% wpo365-login

Code Review | WordPress + Microsoft Office 365 / Azure AD | LOGIN

WordPress plugin WordPress + Microsoft Office 365 / Azure AD | LOGIN scored83%from 54 tests.

About plugin

  • Plugin page: wpo365-login
  • Plugin version: 25.0
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Nov 10, 2023
  • Number of updates: 282
  • Update frequency: every 7.9 days
  • Top authors: wpo365 (100%)

Code review

54 tests

User reviews

111 reviews

Install metrics

9,000+ active /228,935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.20MB] [CPU: ▲11.69ms] Passed 4 tests

A check of server-side resources used by WordPress + Microsoft Office 365 / Azure AD | LOGIN
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲0.9947.36 ▲7.42
Dashboard /wp-admin4.56 ▲1.2655.78 ▲6.64
Posts /wp-admin/edit.php4.68 ▲1.3261.31 ▲15.35
Add New Post /wp-admin/post-new.php7.17 ▲1.28104.52 ▲20.23
Media Library /wp-admin/upload.php4.49 ▲1.2650.91 ▲17.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 178 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WordPress + Microsoft Office 365 / Azure AD | LOGIN
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲10913.80 ▼0.547.90 ▲6.2543.28 ▲0.75
Dashboard /wp-admin2,208 ▲285.93 ▲0.2991.45 ▼7.1142.74 ▼3.39
Posts /wp-admin/edit.php2,119 ▲192.39 ▲0.4242.08 ▲3.8535.42 ▲2.07
Add New Post /wp-admin/post-new.php6,270 ▲4,74421.77 ▼1.13997.73 ▲374.6741.26 ▼18.73
Media Library /wp-admin/upload.php1,422 ▲284.59 ▲0.36113.78 ▲12.1245.11 ▲1.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/Rijndael.php:64
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/RC4.php:54
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/Twofish.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\DES' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/TripleDES.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/DES.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/RC2.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/Blowfish.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/wpo365-login/phpseclib/Crypt/AES.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/wpo365-login/phpseclib/Net/SFTP.php:47

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 33 tag instead of maximum 10
The official readme.txt might help

wpo365-login/wpo365-login.php 92% from 13 tests

The main PHP script in "WordPress + Microsoft Office 365 / Azure AD | LOGIN" version 25.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 298 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected43,707 lines of code in 159 files:
LanguageFilesBlank linesComment linesLines of code
PHP1247,82116,87538,916
XSD12233402,414
Markdown345601,349
PO File2160337583
JavaScript1216490322
JSON30080
CSS23525
XML10018

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity64.35
▷ Minimum class complexity1.00
▷ Maximum class complexity633.00
Average method complexity6.19
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes109
▷ Abstract classes10.92%
▷ Concrete classes10899.08%
▷ Final classes00.00%
Methods1,305
▷ Static methods33025.29%
▷ Public methods1,22093.49%
▷ Protected methods50.38%
▷ Private methods806.13%
Functions53
▷ Named functions35.66%
▷ Anonymous functions5094.34%
Constants375
▷ Global constants215.60%
▷ Class constants35494.40%
▷ Public constants354100.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