Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.11ms] Passed 4 tests
Server-side resources used by Connect LearnPress to Discord
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 46.34 ▲5.38 |
Dashboard /wp-admin | 3.59 ▲0.25 | 52.30 ▼9.02 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 54.46 ▲3.48 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 92.01 ▼6.76 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 41.66 ▲3.86 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.67 | 53.00 |
Discord Settings /wp-admin/admin.php?page=learnpress-discord-settings | 3.59 | 47.47 |
Server storage [IO: ▲1.05MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/connect-learnpress-discord-add-on/" and "wp-content/uploads/"
- (new file) wp-content/acfec78f-b5a2-4daf-b23b-6c6d6015944dlearnpress_discord_api_logs.txt
Filesystem: 128 new files
Database: 4 new tables, 26 new options
New tables |
---|
wp_actionscheduler_claims |
wp_actionscheduler_actions |
wp_actionscheduler_groups |
wp_actionscheduler_logs |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
ets_learnpress_discord_send_welcome_dm |
db_upgraded |
ets_learnpress_discord_job_queue_concurrency |
ets_learnpress_discord_job_queue_batch_size |
theysaidso_admin_options |
schema-ActionScheduler_StoreSchema |
ets_learnpress_discord_uuid_file_name |
ets_learnpress_discord_disconnect_button_text |
... |
Browser metrics Passed 4 tests
Connect LearnPress to Discord: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.27 ▼1.11 | 1.64 ▼0.08 | 40.19 ▼7.51 |
Dashboard /wp-admin | 2,222 ▲22 | 5.77 ▼0.09 | 98.52 ▼9.27 | 42.50 ▲1.57 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▼0.02 | 36.54 ▼3.75 | 37.81 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 18.51 ▲1.02 | 625.10 ▼54.73 | 64.89 ▲1.53 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.14 ▼0.07 | 95.59 ▼16.36 | 43.61 ▼5.00 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,228 | 1.88 | 26.93 | 31.98 |
Discord Settings /wp-admin/admin.php?page=learnpress-discord-settings | 1,540 | 2.67 | 60.10 | 42.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/connect-learnpress-discord-add-on/uninstall.php+17
Undefined index: plugin
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_actionscheduler_claims
- wp_actionscheduler_groups
- wp_actionscheduler_logs
- wp_actionscheduler_actions
- This plugin did not uninstall successfully, leaving 26 options in the database
- ets_learnpress_discord_welcome_message
- schema-ActionScheduler_LoggerSchema
- ets_learnpress_discord_disconnect_button_text
- action_scheduler_hybrid_store_demarkation
- ets_learnpress_discord_course_complete_message
- ets_learnpress_discord_send_course_complete_dm
- widget_theysaidso_widget
- widget_recent-posts
- ets_learnpress_discord_send_lesson_complete_dm
- schema-ActionScheduler_StoreSchema
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/connect-learnpress-discord-add-on/public/partials/learnpress-discord-addon-public-display.php
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > 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/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > 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-learnpress-discord-add-on/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/connect-learnpress-discord-add-on/admin/partials/pages/learnpress_discord_error_log.php:3
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
- > PHP Fatal error
Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/classes/WP_CLI/Migration_Command.php:22
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/connect-learnpress-discord-add-on/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=learnpress-discord-settings
- > Javascript (severe) in unknown
/wp-content/plugins/connect-learnpress-discord-add-on/admin/js/learnpress-discord-addon-admin.js?ver=1.0.6 388:55 Uncaught TypeError: $(...).wpColorPicker is not a function
- > GET request to /wp-admin/admin.php?page=learnpress-discord-settings
- > Console-api (severe) in unknown
/wp-content/plugins/connect-learnpress-discord-add-on/admin/js/learnpress-discord-addon-admin.js?ver=1.0.6 141:12 Object
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
connect-learnpress-discord-add-on/learnpress-discord-addon.php 77% from 13 tests
"Connect LearnPress to Discord" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- 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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("connect-learnpress-discord-add-on.php" instead of "learnpress-discord-addon.php")
- Description: The description should be shorter than 140 characters (currently 255 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,598 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,856 | 5,143 | 9,423 |
CSS | 4 | 11 | 20 | 630 |
JavaScript | 4 | 40 | 43 | 380 |
Markdown | 3 | 61 | 0 | 165 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 640 | |
▷ Static methods | 69 | 10.78% |
▷ Public methods | 484 | 75.62% |
▷ Protected methods | 132 | 20.62% |
▷ Private methods | 24 | 3.75% |
Functions | 49 | |
▷ Named functions | 42 | 85.71% |
▷ Anonymous functions | 7 | 14.29% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/ravisoni.png | 278.09KB | 110.22KB | ▼ 60.36% |
admin/images/icon.png | 24.25KB | 9.03KB | ▼ 62.78% |
admin/images/ets-logo.png | 11.34KB | 7.55KB | ▼ 33.46% |