83% autocomplete-learndash

Code Review | Autocomplete LearnDash Lessons and Topics

WordPress plugin Autocomplete LearnDash Lessons and Topics scored 83% from 54 tests.

About plugin

  • Plugin page: autocomplete-lear...
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2020
  • Latest release: Jun 5, 2023
  • Number of updates: 18
  • Update frequency: every 68.6 days
  • Top authors: liveaspankaj (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active / 13,164 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.41ms] 75% from 4 tests

Server-side resources used by Autocomplete LearnDash Lessons and Topics
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 3,721.82ms on /wp-admin/admin.php?page=grassblade-addons)
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.48 ▲0.65
Dashboard /wp-admin3.42 ▲0.1147.37 ▼1.70
Posts /wp-admin/edit.php3.53 ▲0.1844.16 ▼1.66
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.29 ▼14.93
Media Library /wp-admin/upload.php3.34 ▲0.1137.28 ▲2.51
Add-ons /wp-admin/admin.php?page=grassblade-addons3.533,721.82
Autocomplete LearnDash Lessons & Topics /wp-admin/admin.php?page=grassblade-autocomplete_learndash3.3332.57
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings3.3430.86

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
grassblade_free_addons
grassblade_addons
db_upgraded
widget_theysaidso_widget
widget_recent-posts
autocomplete_learndash

Browser metrics Passed 4 tests

Checking browser requirements for Autocomplete LearnDash Lessons and Topics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7314.73 ▲0.151.87 ▼0.0944.66 ▼2.42
Dashboard /wp-admin2,239 ▲484.90 ▼1.01110.32 ▲7.6479.69 ▲32.56
Posts /wp-admin/edit.php2,119 ▲301.98 ▼0.1534.55 ▼1.2533.63 ▼2.15
Add New Post /wp-admin/post-new.php1,692 ▲15921.26 ▼2.15771.69 ▲79.2655.56 ▼3.46
Media Library /wp-admin/upload.php1,415 ▲244.22 ▲0.0595.41 ▲0.3443.45 ▲1.04
Add-ons /wp-admin/admin.php?page=grassblade-addons2,8132.1929.0672.27
Autocomplete LearnDash Lessons & Topics /wp-admin/admin.php?page=grassblade-autocomplete_learndash8062.0226.9525.84
GrassBlade /wp-admin/admin.php?page=grassblade-lrs-settings8242.0225.3123.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • theysaidso_admin_options
    • grassblade_free_addons
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • grassblade_addons
    • autocomplete_learndash

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autocomplete-learndash/autocomplete-learndash.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

autocomplete-learndash/autocomplete-learndash.php 92% from 13 tests

The entry point to "Autocomplete LearnDash Lessons and Topics" version 1.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin558 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP211423558

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity66.50
▷ Minimum class complexity17.00
▷ Maximum class complexity116.00
Average method complexity6.95
▷ Minimum method complexity2.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon_128x128.png22.67KB6.87KB▼ 69.71%
img/no.png1.01KB0.62KB▼ 39.05%
img/icon-gb.png3.43KB0.84KB▼ 75.48%
img/check.png0.98KB0.47KB▼ 52.44%
img/icon_30x30.png4.58KB1.60KB▼ 65.15%