Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.06ms] Passed 4 tests
Analyzing server-side resources used by WP Multisite SSO
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.98 ▲1.90 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.68 ▲3.49 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.50 ▼2.64 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.04 ▼2.12 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.18 ▼1.36 |
WP Multisite SSO Settings /wp-admin/options-general.php?page=wp_multisite_sso_settings | 3.25 | 28.39 |
Server storage [IO: ▲0.24MB] [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: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Multisite SSO
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.55 ▼0.82 | 1.76 ▲0.05 | 43.11 ▲2.06 |
Dashboard /wp-admin | 2,207 ▲22 | 5.79 ▼0.10 | 99.94 ▼6.89 | 37.35 ▼3.93 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.99 ▼0.03 | 37.03 ▼0.34 | 38.25 ▲4.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.43 ▼4.96 | 614.02 ▼70.58 | 53.41 ▼13.33 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.29 ▲0.17 | 97.41 ▼23.66 | 39.67 ▼9.18 |
WP Multisite SSO Settings /wp-admin/options-general.php?page=wp_multisite_sso_settings | 799 | 2.03 | 24.57 | 27.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_multisite_sso_settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp_multisite_sso_settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 4× 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/wp-multisite-sso/wp-multisite-sso.php:292
- > PHP Notice
Undefined variable: sso_objects in wp-content/plugins/wp-multisite-sso/inc/sso.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-multisite-sso/admin/admin_template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-multisite-sso/admin/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Plugin name and description), #2 (SSO Login Page), #3 (SSO Settings Page)
wp-multisite-sso/wp-multisite-sso.php Passed 13 tests
The main file in "WP Multisite SSO" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Single sign on for a multisite network. Users are authenticated across all sites within the network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin323 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 103 | 132 | 323 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 16 | 100.00% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 18.75% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 69.73KB | 20.36KB | ▼ 70.81% |
screenshot-2.png | 49.77KB | 9.14KB | ▼ 81.64% |
screenshot-3.png | 102.02KB | 29.08KB | ▼ 71.49% |