10% ultimate-member-discord-add-on

Code Review | Connect Ultimate Member to Discord

WordPress plugin Connect Ultimate Member to Discord scored10%from 54 tests.

About plugin

  • Plugin page: ultimate-member-d...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2022
  • Latest release: Sep 11, 2023
  • Number of updates: 16
  • Update frequency: every 18.3 days
  • Top authors: expresstechsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,103 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2945.50 ▲4.29
Dashboard /wp-admin3.57 ▲0.2349.16 ▼10.08
Posts /wp-admin/edit.php3.69 ▲0.3348.40 ▼0.17
Add New Post /wp-admin/post-new.php6.17 ▲0.2998.30 ▼5.74
Media Library /wp-admin/upload.php3.50 ▲0.2737.34 ▲5.15
Scheduled Actions /wp-admin/tools.php?page=action-scheduler3.6746.25
Discord Settings /wp-admin/admin.php?page=ultimatemember-discord3.5440.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.29 ▼1.391.83 ▼0.0040.33 ▼3.66
Dashboard /wp-admin2,214 ▲234.93 ▼0.9795.95 ▼3.1537.44 ▼4.24
Posts /wp-admin/edit.php2,099 ▲102.21 ▲0.1732.37 ▼3.9434.02 ▼0.61
Add New Post /wp-admin/post-new.php1,522 ▲223.61 ▲0.53589.12 ▼31.5963.30 ▲15.94
Media Library /wp-admin/upload.php1,399 ▲144.30 ▲0.0796.23 ▼9.0841.35 ▼3.56
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2501.9728.2731.62
Discord Settings /wp-admin/admin.php?page=ultimatemember-discord1,5982.7844.7848.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1041,8945,6838,085
CSS61516515
JavaScript64170356
Markdown337091
SVG10010

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 code0.32
Average class complexity11.55
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces2
Interfaces3
Traits0
Classes85
▷ Abstract classes1517.65%
▷ Concrete classes7082.35%
▷ Final classes00.00%
Methods640
▷ Static methods7211.25%
▷ Public methods48275.31%
▷ Protected methods13420.94%
▷ Private methods243.75%
Functions49
▷ Named functions4183.67%
▷ Anonymous functions816.33%
Constants42
▷ Global constants921.43%
▷ Class constants3378.57%
▷ Public constants33100.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
FileSize - originalSize - compressedSavings
admin/images/icon.png25.21KB8.40KB▼ 66.67%
admin/images/ravisoni.png278.09KB110.22KB▼ 60.36%
admin/images/ets-logo.png11.34KB7.55KB▼ 33.46%