Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.80MB] [CPU: ▲1.95ms] Passed 4 tests
Server-side resources used by miniOrange Discord Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.78 | 47.20 ▲4.86 |
Dashboard /wp-admin | 4.12 ▲0.82 | 57.09 ▲5.32 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 54.13 ▲4.61 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.85 | 89.31 ▼7.00 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 40.15 ▲6.26 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 60 new files
Database: 1 new table, 42 new options
New tables |
---|
wp_mo_discord_linked_user |
New WordPress options |
---|
mo_discord_default_login_enable |
widget_recent-posts |
mo_login_icon_space |
mo_discord_login_button_customize_text |
mo_discord_bootstrap_load |
mo_discord_integrator_version |
mo_discord_attr_username |
mo_discord_fonawesome_load |
mo_default_role |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by miniOrange Discord Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.54 ▼1.01 | 10.85 ▲8.76 | 46.76 ▼1.96 |
Dashboard /wp-admin | 2,221 ▲36 | 4.87 ▼0.03 | 95.62 ▼7.70 | 78.62 ▲35.36 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.97 ▼0.04 | 38.05 ▲3.44 | 35.07 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 18.17 ▲0.50 | 699.91 ▲36.34 | 53.55 ▼5.08 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.23 ▼0.04 | 118.01 ▲24.97 | 46.12 ▲6.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_mo_discord_linked_user
- The uninstall procedure has failed, leaving 14 options in the database
- can_compress_scripts
- theysaidso_admin_options
- app_pos
- mo_discord_login_field_option
- widget_theysaidso_widget
- mo_default_role
- widget_mo_discord_login_wid
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/miniorange-discord-integration/class-mo-discord-login-wid.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/miniorange-discord-integration/view/support_form/miniorange-discord-support-form.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/miniorange-discord-integration/view/support_form/miniorange-discord-support-form.php on line 13
- > PHP Warning
require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/miniorange-discord-integration/view/support_form/miniorange-discord-support-form.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/miniorange-discord-integration/miniorange_discord_sso_settings.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: discord login, login, sso, discord avatar, discord
miniorange-discord-integration/miniorange_discord_sso_settings.php 92% from 13 tests
"miniOrange Discord Integration" version 2.1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("miniorange-discord-integration.php" instead of "miniorange_discord_sso_settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected13,700 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
PHP | 19 | 385 | 740 | 4,138 |
CSS | 8 | 0 | 3 | 8 |
JavaScript | 2 | 0 | 8 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 53.25 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 7.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.94% |
Functions | 55 | |
▷ Named functions | 54 | 98.18% |
▷ Anonymous functions | 1 | 1.82% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/connect1.png | 35.26KB | 21.59KB | ▼ 38.76% |
includes/images/miniOrange.png | 3.94KB | 2.26KB | ▼ 42.53% |
includes/images/woocommerce.png | 25.04KB | 7.39KB | ▼ 70.48% |
includes/images/wrong.png | 30.98KB | 13.50KB | ▼ 56.42% |
includes/images/wordpress.png | 18.19KB | 5.97KB | ▼ 67.16% |