84% design-upgrade-learndash

Code Review | Design Upgrade for LearnDash

WordPress plugin Design Upgrade for LearnDash scored 84% from 54 tests.

About plugin

  • Plugin page: design-upgrade-le...
  • Plugin version: 2.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: May 14, 2018
  • Latest release: Aug 9, 2022
  • Number of updates: 132
  • Update frequency: every 11.7 days
  • Top authors: escapecreative (87.88%)davewarfel (12.88%)

Code review

54 tests

User reviews

53 reviews

Install metrics

10,000+ active / 226,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Design Upgrade for LearnDash
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.94 ▼4.79
Dashboard /wp-admin3.31 ▲0.0161.25 ▲6.49
Posts /wp-admin/edit.php3.36 ▲0.0049.17 ▲0.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.40 ▼12.18
Media Library /wp-admin/upload.php3.23 ▲0.0034.47 ▼6.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Design Upgrade for LearnDash
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.37 ▼1.023.86 ▲1.8640.57 ▼2.38
Dashboard /wp-admin2,206 ▲185.79 ▼0.1197.80 ▼14.3538.64 ▼4.55
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0334.43 ▼2.2632.91 ▼1.69
Add New Post /wp-admin/post-new.php1,537 ▲2323.13 ▲5.76675.29 ▼19.3860.52 ▲3.71
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.0095.73 ▼13.9644.94 ▼1.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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 items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/design-upgrade-learndash/inc/extra-classes.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/design-upgrade-learndash/inc/theme-compat.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/design-upgrade-learndash/inc/body-class.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: learning management system, online courses, css, lms, learndash

design-upgrade-learndash/design-upgrade-learndash.php 92% from 13 tests

The main PHP file in "Design Upgrade for LearnDash" ver. 2.12 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 425 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
Success! There were no dangerous files found in this plugin128 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG1201273
PHP5456953
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin