10% innovade-learndash-activities

Code Review | Innovade Learndash Activities

WordPress plugin Innovade Learndash Activities scored10%from 54 tests.

About plugin

  • Plugin page: innovade-learndas...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Mar 16, 2023
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: webdevinnovade (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /341 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User error in wp-content/plugins/innovade-learndash-activities/innovade-ld-activities.php+27
    Please activate Learndash LMS plugin.

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

An overview of server-side resources used by Innovade Learndash Activities
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.55 ▼2.57
Dashboard /wp-admin3.32 ▲0.0145.31 ▼5.85
Posts /wp-admin/edit.php3.37 ▲0.0147.11 ▲4.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.40 ▼12.06
Media Library /wp-admin/upload.php3.24 ▲0.0134.49 ▲1.06

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Innovade Learndash Activities
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲13213.62 ▼0.805.86 ▲3.6840.18 ▼12.14
Dashboard /wp-admin2,211 ▲234.90 ▼0.15109.83 ▼5.7638.79 ▼10.28
Posts /wp-admin/edit.php2,094 ▲52.06 ▲0.0539.89 ▲2.9435.95 ▲0.45
Add New Post /wp-admin/post-new.php1,538 ▲2423.14 ▲5.63608.28 ▼74.7951.43 ▼1.75
Media Library /wp-admin/upload.php1,390 ▼14.36 ▲0.1297.04 ▲2.6841.24 ▼1.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innovade-learndash-activities/inc/inn-admin-fields.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/innovade-learndash-activities/innovade-ld-activities.php:13

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: learndash, topics, lms, learning, activities

innovade-learndash-activities/innovade-ld-activities.php 77% from 13 tests

Analyzing the main PHP file in "Innovade Learndash Activities" version 1.0.0
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.9" instead of "4.8")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("innovade-learndash-activities.php" instead of "innovade-ld-activities.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected760 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5126139742
JavaScript13118

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin