Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/ultimate-member-discord-add-on/includes/class-ultimate-member-discord-add-on-activator.php+73
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.27MB] [CPU: ▼2.93ms] Passed 4 tests
An overview of server-side resources used by Connect Ultimate Member to Discord
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 45.50 ▲4.29 |
Dashboard /wp-admin | 3.57 ▲0.23 | 49.16 ▼10.08 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.40 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 98.30 ▼5.74 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 37.34 ▲5.15 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.67 | 46.25 |
Discord Settings /wp-admin/admin.php?page=ultimatemember-discord | 3.54 | 40.68 |
Server storage [IO: ▲1.07MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/ultimate-member-discord-add-on/" and "wp-content/uploads/"
- (new file) wp-content/b0fe491e-ba88-4688-847e-3cae24e99ddeultimatemember_discord_api_logs.txt
Filesystem: 136 new files
Database: 4 new tables, 24 new options
New tables |
---|
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
wp_actionscheduler_actions |
New WordPress options |
---|
ets_ultimatemember_discord_redirect_url |
db_upgraded |
widget_recent-posts |
ets_ultimatemember_discord_job_queue_batch_size |
ets_ultimatemember_discord_connect_button_bg_color |
action_scheduler_hybrid_store_demarkation |
ets_ultimatemember_discord_uuid_file_name |
ets_ultimatemember_discord_non_login_button_text |
schema-ActionScheduler_LoggerSchema |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Connect Ultimate Member to Discord
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.29 ▼1.39 | 1.83 ▼0.00 | 40.33 ▼3.66 |
Dashboard /wp-admin | 2,214 ▲23 | 4.93 ▼0.97 | 95.95 ▼3.15 | 37.44 ▼4.24 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.21 ▲0.17 | 32.37 ▼3.94 | 34.02 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,522 ▲2 | 23.61 ▲0.53 | 589.12 ▼31.59 | 63.30 ▲15.94 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.30 ▲0.07 | 96.23 ▼9.08 | 41.35 ▼3.56 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,250 | 1.97 | 28.27 | 31.62 |
Discord Settings /wp-admin/admin.php?page=ultimatemember-discord | 1,598 | 2.78 | 44.78 | 48.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/ultimate-member-discord-add-on/uninstall.php+30
Undefined index: plugin
- Zombie tables were found after uninstall: 4 tables
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- wp_actionscheduler_logs
- Zombie WordPress options were found after uninstall: 24 options
- widget_recent-posts
- ets_ultimatemember_discord_disconnect_button_text
- ets_ultimatemember_discord_send_welcome_dm
- can_compress_scripts
- ets_ultimatemember_discord_non_login_button_text
- ets_ultimatemember_discord_uuid_file_name
- widget_recent-comments
- theysaidso_admin_options
- schema-ActionScheduler_LoggerSchema
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_ListTable' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/ActionScheduler_ListTable.php:7
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ultimate-member-discord-add-on/admin/partials/ultimate-member-discord-add-on-admin-display.php:22
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/ultimate-member-discord-add-on/libraries/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ultimatemember-discord
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).wpColorPicker is not a function" "TypeError: $(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ultimate-member-discord-add-on/admin/js/ultimate-member-discord-add-on-admin.js?ver=1.0.7:343:60)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=ultimatemember-discord
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: member, discord role management, membership, talk, video chat...
ultimate-member-discord-add-on/ultimate-member-discord-add-on.php Passed 13 tests
The primary PHP file in "Connect Ultimate Member to Discord" version 1.0.7 is used by WordPress to initiate all plugin functionality
120 characters long description:
Connect Ultimate Memeber with Discord and create an engaging community/forum of your Ultimate Member online communities.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,057 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,894 | 5,683 | 8,085 |
CSS | 6 | 15 | 16 | 515 |
JavaScript | 6 | 41 | 70 | 356 |
Markdown | 3 | 37 | 0 | 91 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 85 | |
▷ Abstract classes | 15 | 17.65% |
▷ Concrete classes | 70 | 82.35% |
▷ Final classes | 0 | 0.00% |
Methods | 640 | |
▷ Static methods | 72 | 11.25% |
▷ Public methods | 482 | 75.31% |
▷ Protected methods | 134 | 20.94% |
▷ Private methods | 24 | 3.75% |
Functions | 49 | |
▷ Named functions | 41 | 83.67% |
▷ Anonymous functions | 8 | 16.33% |
Constants | 42 | |
▷ Global constants | 9 | 21.43% |
▷ Class constants | 33 | 78.57% |
▷ Public constants | 33 | 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.31MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon.png | 25.21KB | 8.40KB | ▼ 66.67% |
admin/images/ravisoni.png | 278.09KB | 110.22KB | ▼ 60.36% |
admin/images/ets-logo.png | 11.34KB | 7.55KB | ▼ 33.46% |