Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▲1.97ms] Passed 4 tests
A check of server-side resources used by User Sync & Business Directory for Azure AD / Azure B2C / Office 365
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 46.72 ▲3.81 |
Dashboard /wp-admin | 3.76 ▲0.46 | 59.53 ▲10.23 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 53.35 ▲5.39 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 88.81 ▼3.94 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 38.43 ▲2.60 |
Dashboard /wp-admin/admin.php?page=mo_azos_welcome_page | 3.60 | 36.95 |
General Settings /wp-admin/admin.php?page=mo_azos | 3.66 | 49.70 |
Server storage [IO: ▲2.35MB] [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: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Sync & Business Directory for Azure AD / Azure B2C / Office 365
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 14.25 ▼0.11 | 1.65 ▼0.62 | 42.53 ▼0.65 |
Dashboard /wp-admin | 2,209 ▲29 | 5.56 ▼0.16 | 82.99 ▼14.30 | 76.61 ▲36.42 |
Posts /wp-admin/edit.php | 2,126 ▲23 | 1.96 ▼0.02 | 36.20 ▼3.07 | 34.01 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 21.74 ▼1.32 | 760.46 ▲102.45 | 62.47 ▲11.11 |
Media Library /wp-admin/upload.php | 1,417 ▲23 | 4.09 ▼0.12 | 101.58 ▼10.32 | 79.83 ▲34.62 |
Dashboard /wp-admin/admin.php?page=mo_azos_welcome_page | 2,847 | 9.66 | 304.92 | 74.71 |
General Settings /wp-admin/admin.php?page=mo_azos | 3,134 | 2.45 | 45.82 | 60.31 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function MoAzureObjectSync\\add_action() in wp-content/plugins/user-sync-for-azure-office365/user-sync-for-azure-office365.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 to be fixed:
- Screenshots: Add a description for screenshot #6 in user-sync-for-azure-office365/assets to your readme.txt
user-sync-for-azure-office365/user-sync-for-azure-office365.php 92% from 13 tests
The principal PHP file in "User Sync & Business Directory for Azure AD / Azure B2C / Office 365" v. 2.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected8,772 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 842 | 630 | 5,358 |
CSS | 6 | 270 | 95 | 3,280 |
SVG | 22 | 0 | 0 | 103 |
JSON | 1 | 0 | 0 | 26 |
JavaScript | 3 | 0 | 9 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 162 | |
▷ Static methods | 35 | 21.60% |
▷ Public methods | 115 | 70.99% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 47 | 29.01% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
29 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 |
images/wp-32.png | 0.81KB | 1.08KB | 0.00% |
images/email.png | 8.66KB | 4.63KB | ▼ 46.56% |
images/success.png | 2.03KB | 1.75KB | ▼ 13.70% |
images/error.png | 2.51KB | 1.63KB | ▼ 35.06% |
images/sync-step.png | 23.08KB | 9.24KB | ▼ 59.97% |