83% next-step-for-learndash

Code Review | Next Step for LearnDash

WordPress plugin Next Step for LearnDash scored83%from 54 tests.

About plugin

  • Plugin page: next-step-for-lea...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2021
  • Latest release: Jul 15, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: maurolopes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /842 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.97ms] Passed 4 tests

This is a short check of server-side resources used by Next Step for LearnDash
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.87 ▼4.85
Dashboard /wp-admin3.34 ▲0.0446.78 ▼3.89
Posts /wp-admin/edit.php3.39 ▲0.0350.83 ▲0.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.48 ▼19.71
Media Library /wp-admin/upload.php3.26 ▲0.0338.09 ▼3.43
Next Step /wp-admin/admin.php?page=learndash-next-step3.2331.39

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/next-step-for-learndash/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Next Step for LearnDash
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4413.21 ▼1.164.50 ▲2.4837.91 ▼7.74
Dashboard /wp-admin2,221 ▲185.82 ▼0.07113.20 ▲0.5843.07 ▼8.44
Posts /wp-admin/edit.php2,097 ▼61.98 ▼0.0638.95 ▼3.5934.34 ▼5.73
Add New Post /wp-admin/post-new.php1,526 ▼617.67 ▼5.74662.14 ▼19.1752.85 ▼12.19
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.03100.59 ▼4.2542.46 ▼1.61
Next Step /wp-admin/admin.php?page=learndash-next-step8402.0124.6636.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/next-step-for-learndash/admin/trns-settings.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: learndash, lms, learning, education, elearning

next-step-for-learndash/learndash-next-step.php 69% from 13 tests

Analyzing the main PHP file in "Next Step for LearnDash" version 1.0.0
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("next-step-for-learndash.php" instead of "learndash-next-step.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected348 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33421178
CSS1202170

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected