Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.28ms] Passed 4 tests
An overview of server-side resources used by Accredible LearnDash Add-on
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.10 ▲0.74 |
Dashboard /wp-admin | 3.59 ▲0.24 | 44.58 ▼16.92 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 44.57 ▲2.07 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 92.82 ▲3.90 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 34.27 ▲1.01 |
Settings /wp-admin/admin.php?page=accredible_learndash_settings | 3.43 | 37.66 |
Accredible LearnDash Add-on /wp-admin/admin.php?page=accredible_learndash | 3.43 | 32.49 |
Issuance Logs /wp-admin/admin.php?page=accredible_learndash_issuance_log | 3.42 | 32.01 |
Admin Action /wp-admin/admin.php?page=accredible_learndash_admin_action | 3.39 | 31.05 |
Auto Issuances /wp-admin/admin.php?page=accredible_learndash_issuance_list | 3.42 | 33.84 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 59 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_accredible_learndash_auto_issuances |
wp_accredible_learndash_auto_issuance_logs |
New WordPress options |
---|
theysaidso_admin_options |
accredible_learndash_db_version |
widget_recent-posts |
db_upgraded |
recovery_mode_email_last_sent |
accredible_learndash_server_region |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Accredible LearnDash Add-on
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.49 ▼0.79 | 1.84 ▲0.12 | 42.98 ▼2.64 |
Dashboard /wp-admin | 2,262 ▲74 | 5.13 ▼0.75 | 104.66 ▼10.67 | 40.20 ▼8.22 |
Posts /wp-admin/edit.php | 2,147 ▲55 | 2.54 ▲0.52 | 38.42 ▼2.98 | 32.12 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 23.41 ▲0.26 | 644.26 ▲18.76 | 35.15 ▼16.44 |
Media Library /wp-admin/upload.php | 1,451 ▲60 | 4.62 ▲0.42 | 98.32 ▲1.25 | 41.16 ▼0.88 |
Settings /wp-admin/admin.php?page=accredible_learndash_settings | 950 | 2.19 | 28.50 | 62.20 |
Accredible LearnDash Add-on /wp-admin/admin.php?page=accredible_learndash | 950 | 2.17 | 30.36 | 61.34 |
Issuance Logs /wp-admin/admin.php?page=accredible_learndash_issuance_log | 924 | 2.14 | 26.78 | 59.62 |
Admin Action /wp-admin/admin.php?page=accredible_learndash_admin_action | 708 | 1.14 | 6.53 | 19.96 |
Auto Issuances /wp-admin/admin.php?page=accredible_learndash_issuance_list | 990 | 2.35 | 44.34 | 65.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=accredible_learndash_admin_action
- > Error in wp-content/plugins/accredible-learndash-add-on/includes/class-accredible-learndash-admin-action-handler.php+37
Uncaught Exception: An action type mismatch has been detected. in wp-content/plugins/accredible-learndash-add-on/includes/class-accredible-learndash-admin-action-handler.php:37
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Accredible_Learndash_Admin_Action_Handler::call()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
accredible-learndash-add-on/accredible-learndash-add-on.php Passed 13 tests
Analyzing the main PHP file in "Accredible LearnDash Add-on" version 1.0.12
111 characters long description:
Issue credentials, certificates, or badges for your LearnDash courses through Accredible digital credentialing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,921 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 326 | 818 | 1,911 |
CSS | 2 | 142 | 23 | 725 |
JavaScript | 5 | 34 | 11 | 267 |
SVG | 6 | 0 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 3 | 15.00% |
Methods | 101 | |
▷ Static methods | 74 | 73.27% |
▷ Public methods | 65 | 64.36% |
▷ Protected methods | 3 | 2.97% |
▷ Private methods | 33 | 32.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 5 | 15.62% |
▷ Class constants | 27 | 84.38% |
▷ Public constants | 27 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 3.04MB with 2.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 796.93KB | 252.04KB | ▼ 68.37% |
assets/images/accredible_logo.png | 9.65KB | 4.43KB | ▼ 54.13% |
assets/images/credits.png | 7.34KB | 1.46KB | ▼ 80.04% |
assets/images/chevron-left.png | 3.84KB | 0.30KB | ▼ 92.12% |
assets/screenshot-2.png | 41.34KB | 16.08KB | ▼ 61.11% |