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.09MB] [CPU: ▼2.55ms] Passed 4 tests
Server-side resources used by OPAL SOCIAL LOGIN
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.02 ▲0.11 |
Dashboard /wp-admin | 3.45 ▲0.14 | 47.29 ▲0.26 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.40 ▲9.15 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.03 ▼9.81 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.28 ▼0.74 |
Opal Social Login /wp-admin/options-general.php?page=opal-social-login | 3.30 | 31.46 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for OPAL SOCIAL LOGIN
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲194 | 14.63 ▲0.10 | 1.79 ▲0.19 | 41.89 ▲3.77 |
Dashboard /wp-admin | 2,354 ▲180 | 6.39 ▲0.86 | 108.97 ▲25.53 | 38.02 ▼4.19 |
Posts /wp-admin/edit.php | 2,288 ▲188 | 3.52 ▲1.54 | 56.89 ▲22.36 | 36.57 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,703 ▲177 | 22.59 ▼0.94 | 645.09 ▲5.92 | 30.70 ▼19.72 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.33 ▲0.09 | 84.64 ▼29.42 | 45.99 ▼0.83 |
Opal Social Login /wp-admin/options-general.php?page=opal-social-login | 1,321 | 3.27 | 44.77 | 71.06 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=opal-social-login
- > Notice in wp-content/plugins/opal-social-login/includes/admin/metabox/class-metabox.php+381
Undefined variable: hidden_val
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 70× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Provider/AOLOpenID.php:15
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Provider/Instagram.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Provider/Spotify.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Provider/Disqus.php:18
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Provider/Google.php:48
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/opal-social-login/templates/social-icons-default.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WSL_METABOX_SETTINGS' not found in wp-content/plugins/opal-social-login/includes/admin/metabox/class-extends.php:3
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Exception\\UnexpectedValueException' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Exception/HttpClientFailureException.php:13
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Adapter\\AbstractAdapter' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Adapter/OAuth2.php:24
- > PHP Fatal error
Uncaught Error: Class 'Hybridauth\\Exception\\BadMethodCallException' not found in wp-content/plugins/opal-social-login/includes/hybridauth/Exception/NotImplementedException.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: facebook, google, social login, twitter
opal-social-login/plugin-core.php 92% from 13 tests
Analyzing the main PHP file in "OPAL SOCIAL LOGIN" version 1.0.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("opal-social-login.php" instead of "plugin-core.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected6,103 lines of code in 105 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 1,905 | 4,414 | 5,852 |
CSS | 2 | 2 | 0 | 167 |
JavaScript | 1 | 15 | 9 | 65 |
Markdown | 3 | 10 | 0 | 18 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 191.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 85 | |
▷ Abstract classes | 6 | 7.06% |
▷ Concrete classes | 79 | 92.94% |
▷ Final classes | 5 | 6.33% |
Methods | 383 | |
▷ Static methods | 17 | 4.44% |
▷ Public methods | 280 | 73.11% |
▷ Protected methods | 90 | 23.50% |
▷ Private methods | 13 | 3.39% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
Constants | 15 | |
▷ Global constants | 11 | 73.33% |
▷ Class constants | 4 | 26.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/twitter.png | 2.01KB | 1.19KB | ▼ 40.88% |
assets/images/New folder/google.png | 15.80KB | 1.25KB | ▼ 92.08% |
assets/images/opal-logo.png | 15.71KB | 2.01KB | ▼ 87.20% |
assets/images/New folder/facebook.png | 1.16KB | 0.42KB | ▼ 63.83% |
assets/images/google.png | 2.22KB | 1.46KB | ▼ 34.42% |