84% accredible-learndash-add-on

Code Review | Accredible LearnDash Add-on

WordPress plugin Accredible LearnDash Add-on scored84%from 54 tests.

About plugin

  • Plugin page: accredible-learnd...
  • Plugin version: 1.0.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Feb 16, 2023
  • Number of updates: 26
  • Update frequency: every 12.2 days
  • Top authors: accredible (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,433 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.10 ▲0.74
Dashboard /wp-admin3.59 ▲0.2444.58 ▼16.92
Posts /wp-admin/edit.php3.64 ▲0.2944.57 ▲2.07
Add New Post /wp-admin/post-new.php6.12 ▲0.2492.82 ▲3.90
Media Library /wp-admin/upload.php3.45 ▲0.2234.27 ▲1.01
Settings /wp-admin/admin.php?page=accredible_learndash_settings3.4337.66
Accredible LearnDash Add-on /wp-admin/admin.php?page=accredible_learndash3.4332.49
Issuance Logs /wp-admin/admin.php?page=accredible_learndash_issuance_log3.4232.01
Admin Action /wp-admin/admin.php?page=accredible_learndash_admin_action3.3931.05
Auto Issuances /wp-admin/admin.php?page=accredible_learndash_issuance_list3.4233.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
New WordPress options

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲11013.49 ▼0.791.84 ▲0.1242.98 ▼2.64
Dashboard /wp-admin2,262 ▲745.13 ▼0.75104.66 ▼10.6740.20 ▼8.22
Posts /wp-admin/edit.php2,147 ▲552.54 ▲0.5238.42 ▼2.9832.12 ▼2.95
Add New Post /wp-admin/post-new.php1,564 ▲3123.41 ▲0.26644.26 ▲18.7635.15 ▼16.44
Media Library /wp-admin/upload.php1,451 ▲604.62 ▲0.4298.32 ▲1.2541.16 ▼0.88
Settings /wp-admin/admin.php?page=accredible_learndash_settings9502.1928.5062.20
Accredible LearnDash Add-on /wp-admin/admin.php?page=accredible_learndash9502.1730.3661.34
Issuance Logs /wp-admin/admin.php?page=accredible_learndash_issuance_log9242.1426.7859.62
Admin Action /wp-admin/admin.php?page=accredible_learndash_admin_action7081.146.5319.96
Auto Issuances /wp-admin/admin.php?page=accredible_learndash_issuance_list9902.3544.3465.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}

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


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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.32
Average class complexity7.52
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes315.00%
▷ Static methods7473.27%
▷ Public methods6564.36%
▷ Protected methods32.97%
▷ Private methods3332.67%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants515.62%
▷ Class constants2784.38%
▷ Public constants27100.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
FileSize - originalSize - compressedSavings
assets/screenshot-5.png796.93KB252.04KB▼ 68.37%
assets/images/accredible_logo.png9.65KB4.43KB▼ 54.13%
assets/images/credits.png7.34KB1.46KB▼ 80.04%
assets/images/chevron-left.png3.84KB0.30KB▼ 92.12%
assets/screenshot-2.png41.34KB16.08KB▼ 61.11%