Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.57MB] [CPU: ▲8.07ms] Passed 4 tests
A check of server-side resources used by Connect Eduma Theme to Discord
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.59 | 59.01 ▲13.45 |
Dashboard /wp-admin | 4.89 ▲1.59 | 61.12 ▲10.17 |
Posts /wp-admin/edit.php | 4.94 ▲1.59 | 63.19 ▲9.44 |
Add New Post /wp-admin/post-new.php | 7.45 ▲1.56 | 104.26 ▼0.78 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 56.22 ▲19.68 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 4.90 | 55.99 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 148 new files
Database: 4 new tables, 40 new options
New tables |
---|
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
New WordPress options |
---|
ets_eduma_discord_welcome_message |
ets_eduma_discord_retry_api_count |
ets_eduma_pmpro_discord_send_membership_cancel_dm |
ets_eduma_pmpro_discord_payment_failed |
ets_eduma_discord_job_queue_concurrency |
ets_eduma_discord_retry_failed_api |
ets_eduma_pmpro_discord_expiration_expired_message |
ets_eduma_discord_loggedin_button_text |
schema-ActionScheduler_LoggerSchema |
ets_eduma_pmpro_discord_expiration_warning_message |
... |
Browser metrics Passed 4 tests
Connect Eduma Theme to Discord: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.21 | 2.19 ▲0.63 | 46.67 ▲3.40 |
Dashboard /wp-admin | 2,199 ▲25 | 5.59 ▲0.01 | 87.52 ▼4.21 | 41.36 ▼0.92 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.01 | 36.85 ▼2.68 | 33.14 ▼7.61 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.28 ▼0.36 | 688.32 ▲26.74 | 55.40 ▼0.90 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▲0.01 | 99.52 ▼6.02 | 45.55 ▲3.88 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,225 | 1.81 | 25.30 | 31.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/connect-eduma-theme-to-discord/uninstall.php+33
Undefined index: plugin
- Zombie tables were found after uninstall: 4 tables
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- Zombie WordPress options detected upon uninstall: 40 options
- widget_recent-comments
- action_scheduler_hybrid_store_demarkation
- ets_eduma_discord_send_welcome_dm
- ets_eduma_pmpro_discord_cancel_message
- ets_eduma_discord_cache_timeout_interval
- ets_eduma_pmpro_discord_payment_failed
- ets_eduma_pmpro_discord_expiration_warning_message
- ets_eduma_discord_job_queue_batch_size
- ets_eduma_discord_retry_failed_api
- ets_eduma_pmpro_allow_none_member
- ...
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/connect-eduma-theme-to-discord/public/partials/connect-eduma-theme-to-discord-public-display.php
- > /wp-content/plugins/connect-eduma-theme-to-discord/admin/partials/pages/templates/guide/logs.php
- 59× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/connect-eduma-theme-to-discord/includes/libraries/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php:10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/connect-eduma-theme-to-discord/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/connect-eduma-theme-to-discord/admin/partials/pages/templates/guide/settings.php:10
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/connect-eduma-theme-to-discord/includes/libraries/action-scheduler/classes/ActionScheduler_AdminView.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/connect-eduma-theme-to-discord/admin/partials/pages/eduma_discord_pmpro.php:2
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/connect-eduma-theme-to-discord/includes/libraries/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/connect-eduma-theme-to-discord/admin/partials/pages/templates/guide/welcome.php:12
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/connect-eduma-theme-to-discord/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/connect-eduma-theme-to-discord/includes/libraries/action-scheduler/classes/actions/ActionScheduler_NullAction.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ets_eduma_discord_get_steps() in wp-content/plugins/connect-eduma-theme-to-discord/admin/partials/pages/eduma_discord_documentation.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
8 plugin tags: learnpress, memberships, learning community management, learnpress discord addon, eduma themme...
connect-eduma-theme-to-discord/connect-eduma-theme-to-discord.php Passed 13 tests
The entry point to "Connect Eduma Theme to Discord" version 1.0.3 is a PHP file that has certain tags in its header comment area
117 characters long description:
Connect your students to the discord server to create a community, information sharing, competition between students.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected11,308 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 2,125 | 5,708 | 9,927 |
CSS | 6 | 13 | 32 | 750 |
JavaScript | 6 | 58 | 88 | 540 |
Markdown | 3 | 37 | 0 | 91 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 15 | 17.44% |
▷ Concrete classes | 71 | 82.56% |
▷ Final classes | 0 | 0.00% |
Methods | 673 | |
▷ Static methods | 72 | 10.70% |
▷ Public methods | 514 | 76.37% |
▷ Protected methods | 132 | 19.61% |
▷ Private methods | 27 | 4.01% |
Functions | 58 | |
▷ Named functions | 51 | 87.93% |
▷ Anonymous functions | 7 | 12.07% |
Constants | 41 | |
▷ Global constants | 9 | 21.95% |
▷ Class constants | 32 | 78.05% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.42MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/guide/role-mappings/pmpro-rolemappings-connect-eduma-theme-to-discord.png | 29.21KB | 15.97KB | ▼ 45.31% |
admin/images/guide/settings/settings-connect-eduma-theme-to-discord.png | 123.36KB | 63.57KB | ▼ 48.47% |
admin/images/guide/pmpro-connect-eduma-theme-to-discord.png | 20.27KB | 11.11KB | ▼ 45.19% |
admin/images/guide/role-mappings/rolemappings-connect-eduma-theme-to-discord.png | 31.59KB | 17.19KB | ▼ 45.58% |
admin/images/guide/lp-profile-connect-eduma-theme-to-discord.png | 36.36KB | 18.85KB | ▼ 48.15% |