Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▲2.55ms] Passed 4 tests
A check of server-side resources used by Connect LifterLMS to Discord
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 42.38 ▼0.61 |
Dashboard /wp-admin | 3.63 ▲0.32 | 53.11 ▲3.57 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 54.90 ▲9.36 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 99.33 ▲3.15 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 38.23 ▲4.08 |
Discord Settings /wp-admin/admin.php?page=connect-lifterlms-discord | 3.65 | 287.12 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.71 | 48.72 |
Server storage [IO: ▲1.10MB] [DB: ▲0.01MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/connect-lifterlms-to-discord/" and "wp-content/uploads/"
- (new file) wp-content/02f91e2c-6f1d-41c1-9ced-1194e20bb927lifterlms_discord_api_logs.txt
Filesystem: 133 new files
Database: 4 new tables, 31 new options
New tables |
---|
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_actionscheduler_claims |
wp_actionscheduler_logs |
New WordPress options |
---|
ets_lifterlms_discord_loggedin_button_text |
ets_lifterlms_discord_job_queue_batch_size |
can_compress_scripts |
ets_lifterlms_discord_uuid_file_name |
ets_lifterlms_discord_number_of_courses |
ets_lifterlms_discord_connect_button_bg_color |
action_scheduler_hybrid_store_demarkation |
ets_lifterlms_discord_send_certificate_earned_dm |
ets_lifterlms_discord_retry_api_count |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Connect LifterLMS to Discord
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.67 ▲0.34 | 1.60 ▼0.57 | 35.75 ▼8.51 |
Dashboard /wp-admin | 2,202 ▲28 | 5.58 ▲0.00 | 91.86 ▼8.05 | 42.58 ▼4.85 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 39.45 ▼2.07 | 37.88 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.23 ▲0.18 | 611.43 ▼21.02 | 55.83 ▼1.70 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.31 ▲0.05 | 103.95 ▲6.12 | 42.92 ▲1.54 |
Discord Settings /wp-admin/admin.php?page=connect-lifterlms-discord | 2,133 | 2.96 | 70.23 | 58.39 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,210 | 1.79 | 27.68 | 27.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/connect-lifterlms-to-discord/uninstall.php+33
Undefined index: plugin
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_logs
- This plugin does not fully uninstall, leaving 31 options in the database
- ets_lifterlms_discord_certificate_earned_message
- ets_lifterlms_discord_retry_api_count
- ets_lifterlms_discord_loggedin_button_text
- ets_lifterlms_discord_connect_button_bg_color
- ets_lifterlms_discord_quiz_complete_message
- db_upgraded
- ets_lifterlms_discord_job_queue_batch_size
- ets_lifterlms_discord_send_lesson_complete_dm
- action_scheduler_lock_async-request-runner
- ets_lifterlms_discord_send_achievement_earned_dm
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/connect-lifterlms-to-discord/public/partials/lifterlms-discord-addon-public-display.php
- 52× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/connect-lifterlms-to-discord/admin/partials/pages/lifterlms-discord-get-support.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connect-lifterlms-to-discord/admin/partials/pages/lifterlms-discord-documentation.php:4
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/connect-lifterlms-to-discord/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: discord, lifterlms, discord role management, memberships, talk...
connect-lifterlms-to-discord/lifterlms-discord-addon.php 77% from 13 tests
The entry point to "Connect LifterLMS to Discord" version 1.0.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("connect-lifterlms-to-discord.php" instead of "lifterlms-discord-addon.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
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
Success! There were no dangerous files found in this plugin9,836 lines of code in 119 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 2,030 | 5,464 | 8,667 |
CSS | 6 | 10 | 13 | 631 |
JavaScript | 6 | 62 | 19 | 438 |
Markdown | 2 | 37 | 0 | 90 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 15 | 17.86% |
▷ Concrete classes | 69 | 82.14% |
▷ Final classes | 0 | 0.00% |
Methods | 648 | |
▷ Static methods | 70 | 10.80% |
▷ Public methods | 491 | 75.77% |
▷ Protected methods | 132 | 20.37% |
▷ Private methods | 25 | 3.86% |
Functions | 56 | |
▷ Named functions | 49 | 87.50% |
▷ Anonymous functions | 7 | 12.50% |
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
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/ets-logo.png | 11.34KB | 7.55KB | ▼ 33.46% |
admin/images/icon.png | 30.09KB | 11.09KB | ▼ 63.15% |
admin/images/ravisoni.png | 278.09KB | 110.22KB | ▼ 60.36% |