Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PD_Discord_OAuth::activation() should not be called statically
Server metrics [RAM: ▼0.04MB] [CPU: ▼15.59ms] Passed 4 tests
A check of server-side resources used by SSO OAuth for Discord by path digital
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.32 ▼0.14 | 23.77 ▼16.62 |
Dashboard /wp-admin | 3.73 ▲0.42 | 47.26 ▼4.16 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 46.71 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.02 ▼0.87 | 42.05 ▼42.05 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 45.57 ▲9.69 |
Server storage [IO: ▲0.28MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 10 new options
New WordPress options |
---|
_pd_discord_bot_configuration_settings |
widget_recent-posts |
_pd_discord_oauth_configuration_settings |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
_pd_discord_oauth_user_sessions |
widget_recent-comments |
_pd_discord_oauth_general_settings |
Browser metrics Passed 4 tests
A check of browser resources used by SSO OAuth for Discord by path digital
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲186 | 13.41 ▼0.94 | 8.52 ▲6.84 | 38.43 ▼5.50 |
Dashboard /wp-admin | 2,242 ▲65 | 5.55 ▼0.03 | 95.21 ▼6.89 | 72.68 ▲30.16 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.11 ▲0.17 | 41.31 ▲4.94 | 36.96 ▲4.17 |
Add New Post /wp-admin/post-new.php | 1,722 ▲196 | 21.02 ▼2.13 | 762.34 ▲85.66 | 58.14 ▲6.91 |
Media Library /wp-admin/upload.php | 1,447 ▲53 | 4.24 ▼0.02 | 104.04 ▲4.40 | 73.20 ▲30.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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)
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/sso-oauth-discord-by-path-digital/templates/maintainance.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/sso-oauth-discord-by-path-digital/templates/login.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: social login, login, discord, oauth, discord login...
sso-oauth-discord-by-path-digital/pathdigital-discord-oauth.php 92% from 13 tests
The main PHP script in "SSO OAuth for Discord by path digital" version 3.1.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sso-oauth-discord-by-path-digital.php" instead of "pathdigital-discord-oauth.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,569 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 664 | 88 | 2,393 |
CSS | 2 | 1 | 0 | 132 |
JavaScript | 1 | 21 | 0 | 44 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 102.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 8.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 43 | 79.63% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 11 | |
▷ Named functions | 1 | 9.09% |
▷ Anonymous functions | 10 | 90.91% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
11 PNG files occupy 0.15MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/pathdigital_128x128.png | 17.17KB | 1.40KB | ▼ 91.87% |
admin/images/icon_16x16.png | 15.10KB | 0.56KB | ▼ 96.27% |
images/icon_16x16.png | 15.10KB | 0.56KB | ▼ 96.27% |
admin/images/icon_32x32.png | 16.15KB | 1.00KB | ▼ 93.81% |
images/icon_256x256.png | 4.34KB | 1.90KB | ▼ 56.15% |