89% add-ld-courses-list-in-wc-account-page

Code Review | Add Learndash Courses List in WooCommerce Account Page

WordPress plugin Add Learndash Courses List in WooCommerce Account Page scored89%from 54 tests.

About plugin

  • Plugin page: add-ld-courses-li...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: Sep 20, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /407 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.40ms] Passed 4 tests

Analyzing server-side resources used by Add Learndash Courses List in WooCommerce Account Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.13 ▲1.44
Dashboard /wp-admin3.31 ▲0.0154.81 ▼1.49
Posts /wp-admin/edit.php3.36 ▲0.0055.62 ▲3.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.58 ▼29.02
Media Library /wp-admin/upload.php3.23 ▲0.0040.81 ▼0.54

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Learndash Courses List in WooCommerce Account Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.31 ▼1.474.43 ▲2.7045.59 ▼8.81
Dashboard /wp-admin2,221 ▲275.78 ▼0.12117.90 ▲12.5943.76 ▲2.35
Posts /wp-admin/edit.php2,079 ▼212.02 ▲0.0135.66 ▼0.6032.52 ▼7.89
Add New Post /wp-admin/post-new.php1,545 ▲1423.10 ▼0.01613.86 ▼87.6575.96 ▲4.51
Media Library /wp-admin/upload.php1,400 ▼04.25 ▼0.01102.38 ▼13.8345.71 ▼6.60

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: courses, learndash, woocommerce, profile, account

add-ld-courses-list-in-wc-account-page/add-ld-courses-list-in-wc-account-page.php 85% from 13 tests

The primary PHP file in "Add Learndash Courses List in WooCommerce Account Page" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
No PNG images were found in this plugin