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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.57MB] [CPU: ▲8.69ms] Passed 4 tests
Analyzing server-side resources used by Login with Google Apps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.03 ▲1.57 | 57.40 ▲13.34 |
Dashboard /wp-admin | 4.87 ▲1.57 | 68.36 ▲11.02 |
Posts /wp-admin/edit.php | 4.99 ▲1.63 | 61.99 ▲7.49 |
Add New Post /wp-admin/post-new.php | 7.47 ▲1.59 | 101.49 ▲2.91 |
Media Library /wp-admin/upload.php | 4.80 ▲1.57 | 55.85 ▲19.84 |
Import Export Configuration /wp-admin/admin.php?page=saml_import_export_config | 4.80 | 48.77 |
Licensing Plans /wp-admin/admin.php?page=gsuitepricing | 4.93 | 54.12 |
Proxy Setup /wp-admin/admin.php?page=proxy_setup | 4.80 | 52.65 |
Service Provider /wp-admin/admin.php?page=service_provider_saml | 4.80 | 55.29 |
Attribute/Role Mapping /wp-admin/admin.php?page=mapping_saml | 4.81 | 54.46 |
Identity Provider /wp-admin/admin.php?page=identity_provider_saml | 4.80 | 53.98 |
Google Apps Login /wp-admin/admin.php?page=mogalsettings | 4.81 | 51.38 |
Account /wp-admin/admin.php?page=galoginaccount | 4.80 | 54.87 |
Sign in Settings /wp-admin/admin.php?page=sign_in_setting_saml | 4.80 | 45.02 |
Add-ons /wp-admin/admin.php?page=addons_saml | 4.80 | 51.29 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 160 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
mo_saml_free_version |
widget_theysaidso_widget |
db_upgraded |
widget_saml_login_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_mo_oauth_widget_new |
Browser metrics Passed 4 tests
An overview of browser requirements for Login with Google Apps
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲100 | 14.30 ▼0.05 | 1.90 ▲0.14 | 41.53 ▼3.84 |
Dashboard /wp-admin | 2,250 ▲79 | 5.67 ▲0.00 | 97.97 ▲0.07 | 86.52 ▲40.47 |
Posts /wp-admin/edit.php | 2,170 ▲70 | 2.06 ▲0.08 | 35.72 ▼1.21 | 35.25 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,737 ▲202 | 22.23 ▲4.05 | 775.59 ▲115.04 | 53.44 ▼9.48 |
Media Library /wp-admin/upload.php | 1,470 ▲70 | 4.24 ▲0.06 | 115.31 ▲7.92 | 46.59 ▲1.79 |
Import Export Configuration /wp-admin/admin.php?page=saml_import_export_config | 1,122 | 2.22 | 25.84 | 33.95 |
Licensing Plans /wp-admin/admin.php?page=gsuitepricing | 2,341 | 2.36 | 46.79 | 81.78 |
Proxy Setup /wp-admin/admin.php?page=proxy_setup | 1,143 | 2.20 | 27.05 | 33.42 |
Service Provider /wp-admin/admin.php?page=service_provider_saml | 1,259 | 2.10 | 26.40 | 33.56 |
Attribute/Role Mapping /wp-admin/admin.php?page=mapping_saml | 1,440 | 2.11 | 33.45 | 36.96 |
Identity Provider /wp-admin/admin.php?page=identity_provider_saml | 1,293 | 2.23 | 26.02 | 47.77 |
Google Apps Login /wp-admin/admin.php?page=mogalsettings | 1,296 | 2.23 | 28.81 | 42.29 |
Account /wp-admin/admin.php?page=galoginaccount | 1,172 | 2.25 | 28.96 | 29.27 |
Sign in Settings /wp-admin/admin.php?page=sign_in_setting_saml | 1,220 | 2.22 | 24.73 | 47.37 |
Add-ons /wp-admin/admin.php?page=addons_saml | 1,055 | 2.21 | 25.29 | 41.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_saml_login_widget
- widget_theysaidso_widget
- widget_mo_oauth_widget_new
Smoke tests 25% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/miniorange-google-apps-login/views/settings.php
- > /wp-content/plugins/miniorange-google-apps-login/views/oauth/oauth_customization.php
- > /wp-content/plugins/miniorange-google-apps-login/views/oauth/oauth_addons.php
- > /wp-content/plugins/miniorange-google-apps-login/views/oauth/oauth-configuration-update-app-custom.php
- > /wp-content/plugins/miniorange-google-apps-login/views/oauth/oauth_sign_in_settings.php
- > /wp-content/plugins/miniorange-google-apps-login/views/saml/saml-addons.php
- 117× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function mo_saml_get_test_url() in wp-content/plugins/miniorange-google-apps-login/views/saml/saml-sp.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/miniorange-google-apps-login/controllers/settings.php:2
- > PHP Warning
include(MOV_GSUITE_DIRviews/oauth/instructions/class-mo-oauth-instruction-html.php): failed to open stream: No such file or directory in wp-content/plugins/miniorange-google-apps-login/controllers/oauth/oauth-configuration.php on line 9
- > PHP Warning
include(MOV_GSUITE_DIRviews/oauth/oauth_sign_in_settings.php): failed to open stream: No such file or directory in wp-content/plugins/miniorange-google-apps-login/controllers/oauth/oauth-signinsetting.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/miniorange-google-apps-login/views/oauth/oauth-configuration-update-app-standard.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_mo_gsuite_option() in wp-content/plugins/miniorange-google-apps-login/controllers/messages.php:3
- > PHP Warning
include(MOV_GSUITE_DIRviews/oauth/oauth_report.php): failed to open stream: No such file or directory in wp-content/plugins/miniorange-google-apps-login/controllers/oauth/oauth-report.php on line 8
- > PHP Warning
include(MOV_GSUITE_DIRviews/saml/saml-addons.php): failed to open stream: No such file or directory in wp-content/plugins/miniorange-google-apps-login/controllers/saml/saml-addons.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/miniorange-google-apps-login/views/oauth/oauth_report.php:21
- > PHP Fatal error
Uncaught Error: Class 'Base_Request_action' not found in wp-content/plugins/miniorange-google-apps-login/handler/saml/class-mo-gsuite-saml-request-handler.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=addons_saml
- > Network (severe)
wp-content/plugins/miniorange-google-apps-login/includes/js/toggleSwitch.js?version=2.1.0&ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=saml_import_export_config
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=saml_import_export_config 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=gsuitepricing
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=gsuitepricing 215:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=proxy_setup
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=proxy_setup 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=service_provider_saml
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=service_provider_saml 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=mapping_saml
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=mapping_saml 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=identity_provider_saml
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=identity_provider_saml 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=mogalsettings
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=mogalsettings 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=galoginaccount
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=galoginaccount 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=sign_in_setting_saml
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=sign_in_setting_saml 223:22 Uncaught ReferenceError: x is not defined
- > GET request to /wp-admin/admin.php?page=addons_saml
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=addons_saml 223:22 Uncaught ReferenceError: x is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #4 (Configure your IdP in your WordPress site.) image missing
miniorange-google-apps-login/miniorange_validation_settings.php 85% from 13 tests
The primary PHP file in "Login with Google Apps" version 7.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("miniorange-google-apps-login.php" instead of "miniorange_validation_settings.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/miniorange-google-apps-login/resources/saml-resources/sp-certificate.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 2,130 | 1,882 | 11,350 |
CSS | 10 | 1,243 | 130 | 4,645 |
PO File | 1 | 673 | 891 | 1,680 |
JavaScript | 7 | 24 | 36 | 101 |
HTML | 2 | 0 | 0 | 68 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 4 | 7.41% |
▷ Concrete classes | 50 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 409 | |
▷ Static methods | 87 | 21.27% |
▷ Public methods | 367 | 89.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 42 | 10.27% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 121 | |
▷ Global constants | 21 | 17.36% |
▷ Class constants | 100 | 82.64% |
▷ Public constants | 100 | 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
19 PNG files occupy 0.42MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/flags@2x.png | 169.54KB | 64.26KB | ▼ 62.10% |
includes/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
includes/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
includes/images/SAML/wrong.png | 30.98KB | 13.50KB | ▼ 56.42% |
includes/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |