Benchmarks
Plugin footprint 82% 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: ▲0.26MB] [CPU: ▲213.37ms] 75% from 4 tests
An overview of server-side resources used by Office 365 User Authentication for WordPress
Please fix the following
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 213.37ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 280.94 ▲239.75 |
Dashboard /wp-admin | 3.57 ▲0.22 | 265.71 ▲200.03 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 268.20 ▲218.40 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 296.18 ▲195.31 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 286.31 ▲252.54 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
azure_login_setting_flow |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Office 365 User Authentication for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.25 ▼0.03 | 1.61 ▼0.17 | 36.70 ▼7.61 |
Dashboard /wp-admin | 2,207 ▲30 | 5.55 ▼0.09 | 108.21 ▲10.79 | 45.26 ▼0.04 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▼0.07 | 40.21 ▲4.98 | 37.76 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 20.64 ▼2.93 | 624.37 ▼36.33 | 52.48 ▼4.25 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.20 ▼0.01 | 96.88 ▼7.94 | 42.03 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- azure_login_setting_flow
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/o365-user-authentication/function/o365_user_auth_access_token.php
- > /wp-content/plugins/o365-user-authentication/function/o365_base_plugin_info_msg.php
- > /wp-content/plugins/o365-user-authentication/libraries/o365-user-auth-online-config.php
- > /wp-content/plugins/o365-user-authentication/inc/o365_user_auth_online_class.php
- > /wp-content/plugins/o365-user-authentication/function/o365_user_auth_tab_title_func.php
- > /wp-content/plugins/o365-user-authentication/function/o365_user_auth_refresh_token.php
- > /wp-content/plugins/o365-user-authentication/inc/o365_user_auth_online_register_deactivation_hook.php
- > /wp-content/plugins/o365-user-authentication/function/o365_user_auth_get_azure_user_fields_for_mapping.php
- > /wp-content/plugins/o365-user-authentication/function/o365_base_plugin_error_msg.php
- > /wp-content/plugins/o365-user-authentication/inc/o365_user_auth_online_register_activation_hook.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/o365-user-authentication/libraries/o365-user-auth-online-plugin-initializer.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #4, #5 in o365-user-authentication/assets to your readme.txt
o365-user-authentication/o365-user-auth-online.php 85% from 13 tests
"Office 365 User Authentication for WordPress" version 2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("o365-user-authentication.php" instead of "o365-user-auth-online.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
Everything looks great! No dangerous files found in this plugin2,091 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 125 | 395 | 1,776 |
CSS | 1 | 1 | 7 | 287 |
JavaScript | 1 | 1 | 3 | 17 |
HTML | 1 | 0 | 1 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 20.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 21 | 56.76% |
▷ Public methods | 34 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.11% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assests/screenshot-3.png | 21.26KB | 9.77KB | ▼ 54.04% |
assests/screenshot-1.png | 140.83KB | 42.66KB | ▼ 69.71% |
assests/screenshot-2.png | 35.67KB | 14.58KB | ▼ 59.13% |