Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲4.76MB] [CPU: ▲23.19ms] Passed 4 tests
Analyzing server-side resources used by GOAuth
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.52 ▲5.06 | 74.31 ▲30.39 |
Dashboard /wp-admin | 8.54 ▲5.19 | 82.20 ▲21.24 |
Posts /wp-admin/edit.php | 8.54 ▲5.18 | 80.75 ▲32.09 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.61 | 114.26 ▲12.28 |
Media Library /wp-admin/upload.php | 8.54 ▲5.31 | 69.13 ▲28.83 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.54 | 63.16 |
Server storage [IO: ▲32.40MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- The filesystem usage should be lower than 25MB (currently using 32.40MB)
Filesystem: 12,122 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_goauth_tokens |
New WordPress options |
---|
fs_accounts |
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
fs_gdpr |
widget_theysaidso_widget |
widget_recent-posts |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GOAuth
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.69 ▼0.28 | 1.78 ▼0.20 | 32.50 ▼13.29 |
Dashboard /wp-admin | 2,278 ▲78 | 4.91 ▼0.91 | 118.85 ▲13.31 | 46.47 ▲3.66 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.14 ▲0.09 | 38.21 ▼13.76 | 37.23 ▼17.17 |
Add New Post /wp-admin/post-new.php | 1,560 ▲12 | 23.04 ▼0.26 | 688.84 ▲9.82 | 58.16 ▲4.65 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.25 ▲0.07 | 109.68 ▼5.31 | 49.01 ▲0.13 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,061 | 1.68 | 22.75 | 28.03 |
GOAuth /wp-admin/goauth-admin.php | 26 | 0.44 | 0.11 | 16.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/goauth/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 11 options
- fs_accounts
- fs_debug_mode
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_gdpr
- widget_recent-posts
- can_compress_scripts
- goauth_db_version
- db_upgraded
- widget_recent-comments
- ...
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 | 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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/goauth/vendor/sonata-project/google-authenticator/sample/tmpl/login.php
- > /wp-content/plugins/goauth/vendor/sonata-project/google-authenticator/sample/tmpl/ask-for-otp.php
- > /wp-content/plugins/goauth/vendor/sonata-project/google-authenticator/sample/tmpl/login-error.php
- 4095× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/SourceInfo.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/Tasks/Tasks.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/StreetViewPublish/Resource/Photo.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/FirebaseHosting/Resource/SitesVersions.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/AdExperienceReport/ViolatingSitesResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/ManagedServiceforMicrosoftActiveDirectoryConsumerAPI/TestIamPermissionsResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/Bigquery/QueryParameterType.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/Vault/VaultEmpty.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/AnalyticsReporting/User.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/goauth/vendor/google/apiclient-services/src/Google/Service/AndroidEnterprise/Resource/Permissions.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/goauth-admin.php
- > Network (severe)
wp-admin/goauth-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Requires php: Version format is invalid
- Donate link: Invalid url: ""
goauth/goauth.php Passed 13 tests
The entry point to "GOAuth" version 2.20 is a PHP file that has certain tags in its header comment area
27 characters long description:
Go and OAuthenticate plugin
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin619,904 lines of code in 12,045 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11,951 | 37,447 | 372,954 | 609,872 |
Markdown | 43 | 1,817 | 0 | 5,160 |
SVG | 1 | 0 | 0 | 2,316 |
JSON | 19 | 0 | 0 | 1,691 |
JavaScript | 6 | 34 | 64 | 274 |
PO File | 2 | 120 | 149 | 267 |
CSS | 16 | 25 | 12 | 178 |
make | 2 | 17 | 3 | 53 |
YAML | 2 | 6 | 0 | 43 |
XML | 2 | 7 | 4 | 40 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 34 | |
Traits | 8 | |
Classes | 11,814 | |
▷ Abstract classes | 11 | 0.09% |
▷ Concrete classes | 11,803 | 99.91% |
▷ Final classes | 19 | 0.16% |
Methods | 84,471 | |
▷ Static methods | 414 | 0.49% |
▷ Public methods | 83,702 | 99.09% |
▷ Protected methods | 178 | 0.21% |
▷ Private methods | 591 | 0.70% |
Functions | 338 | |
▷ Named functions | 208 | 61.54% |
▷ Anonymous functions | 130 | 38.46% |
Constants | 1,051 | |
▷ Global constants | 164 | 15.60% |
▷ Class constants | 887 | 84.40% |
▷ Public constants | 887 | 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.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/google_logo.png | 17.88KB | 7.12KB | ▼ 60.20% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |