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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.91ms] Passed 4 tests
A check of server-side resources used by Login with Azure (Azure SSO)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.59 ▼4.98 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.83 ▼8.82 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.38 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.82 ▼5.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.37 ▼0.16 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 106 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_mo_oauth_widget |
db_upgraded |
host_name |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Login with Azure (Azure SSO)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲195 | 13.59 ▼1.01 | 1.70 ▼0.55 | 40.82 ▼2.93 |
Dashboard /wp-admin | 2,384 ▲178 | 5.54 ▲0.64 | 108.79 ▼0.34 | 88.57 ▲44.66 |
Posts /wp-admin/edit.php | 2,260 ▲157 | 2.34 ▲0.33 | 51.28 ▲13.59 | 37.47 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,568 ▲14 | 23.54 ▲5.27 | 690.17 ▲31.12 | 39.62 ▼19.73 |
Media Library /wp-admin/upload.php | 1,560 ▲163 | 4.78 ▲0.53 | 115.73 ▲11.96 | 82.56 ▲37.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_mo_oauth_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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)
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/login-with-azure/class-mo-oauth-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/login-with-azure/class-mo-oauth-widget.php:3
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
login-with-azure/mo_oauth_settings.php 85% from 13 tests
The main PHP script in "Login with Azure (Azure SSO)" version 1.5.3 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("login-with-azure.php" instead of "mo_oauth_settings.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected12,179 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 126 | 57 | 5,857 |
PHP | 36 | 700 | 107 | 5,160 |
SVG | 2 | 0 | 0 | 689 |
JavaScript | 11 | 42 | 46 | 447 |
JSON | 1 | 1 | 0 | 26 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 258)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 258.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 35 | 34.31% |
▷ Public methods | 93 | 91.18% |
▷ Protected methods | 1 | 0.98% |
▷ Private methods | 8 | 7.84% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.38MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/licensing/img/tick.png | 28.84KB | 12.74KB | ▼ 55.81% |
images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
admin/partials/apps/images/miniorange.png | 4.18KB | 4.28KB | 0.00% |
admin/partials/apps/images/microsoftTeams.png | 3.02KB | 1.96KB | ▼ 34.98% |
admin/partials/addons/images/fsso.png | 12.49KB | 6.40KB | ▼ 48.75% |