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
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.45ms] Passed 4 tests
Server-side resources used by Simple Discord SSO ( Single Sign-On )
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.83 ▼1.07 |
Dashboard /wp-admin | 3.42 ▲0.12 | 52.46 ▼3.75 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 61.70 ▲7.66 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 101.69 ▼6.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 41.73 ▲1.17 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
simple_discord_permalinks |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Discord SSO ( Single Sign-On )
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 13.93 ▼0.42 | 8.68 ▲6.59 | 42.83 ▼2.77 |
Dashboard /wp-admin | 2,208 ▲31 | 5.63 ▼0.02 | 90.74 ▼13.20 | 39.42 ▼4.47 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.97 ▲0.02 | 38.57 ▲1.21 | 31.67 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 18.44 ▼2.54 | 621.48 ▼84.01 | 80.47 ▲24.10 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.18 ▲0.04 | 96.33 ▼14.71 | 40.84 ▼6.45 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- simple_discord_permalinks
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-discord-sso/src/views/settings.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function com\\plugish\\discord\\sso\\add_action() in wp-content/plugins/simple-discord-sso/plugin.php:56
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: discord, social login, discord server, discord login
simple-discord-sso/plugin.php 92% from 13 tests
The main PHP file in "Simple Discord SSO ( Single Sign-On )" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-discord-sso.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected933 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 255 | 303 | 819 |
JavaScript | 5 | 6 | 0 | 107 |
JSON | 1 | 0 | 0 | 4 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 15 | 27.27% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.45% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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
There were not PNG files found in your plugin