89% adaptive-learning-with-learndash

Code Review | Adaptive Learning With LearnDash

WordPress plugin Adaptive Learning With LearnDash scored89%from 54 tests.

About plugin

  • Plugin page: adaptive-learning...
  • Plugin version: 1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Jan 13, 2023
  • Number of updates: 38
  • Update frequency: every 56.5 days
  • Top authors: wooninjas (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /8,804 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.92ms] Passed 4 tests

An overview of server-side resources used by Adaptive Learning With LearnDash
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.44 ▼5.67
Dashboard /wp-admin3.31 ▼0.0446.57 ▼14.55
Posts /wp-admin/edit.php3.36 ▲0.0047.70 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.80 ▼12.08
Media Library /wp-admin/upload.php3.23 ▲0.0032.58 ▼3.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Adaptive Learning With LearnDash
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲11913.34 ▼1.041.98 ▲0.0143.38 ▲0.65
Dashboard /wp-admin2,206 ▲185.87 ▼0.04113.59 ▼6.9943.38 ▲0.44
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0035.93 ▼2.6534.27 ▲1.13
Add New Post /wp-admin/post-new.php1,520 ▼223.21 ▼0.08724.53 ▼5.9254.48 ▼1.94
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.0696.21 ▼6.5843.15 ▼4.54

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • al_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

adaptive-learning-with-learndash/adaptive-learning-with-learndash.php 92% from 13 tests

The primary PHP file in "Adaptive Learning With LearnDash" version 1.7 is used by WordPress to initiate all plugin functionality
Please take the time to 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

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 detected1,040 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP8224300854
JavaScript21644109
CSS30077

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity24.00
▷ Minimum class complexity3.00
▷ Maximum class complexity98.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods39
▷ Static methods2974.36%
▷ Public methods3897.44%
▷ Protected methods12.56%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png10.10KB5.51KB▼ 45.43%
assets/screenshot-3.png12.24KB7.07KB▼ 42.29%
assets/screenshot-1.png49.41KB25.59KB▼ 48.21%
assets/screenshot-4.png11.41KB6.34KB▼ 44.38%