84% tutor-lms-elementor-addons

Code Review | Tutor LMS Elementor Addons

WordPress plugin Tutor LMS Elementor Addons scored84%from 54 tests.

About plugin

  • Plugin page: tutor-lms-element...
  • Plugin version: 2.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jan 4, 2021
  • Latest release: Oct 19, 2023
  • Number of updates: 26
  • Update frequency: every 49.5 days
  • Top authors: themeum (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20,000+ active /255,707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.17ms] Passed 4 tests

This is a short check of server-side resources used by Tutor LMS Elementor Addons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.10 ▼1.95
Dashboard /wp-admin3.37 ▲0.0250.42 ▼11.41
Posts /wp-admin/edit.php3.42 ▲0.0648.45 ▲1.75
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.87 ▼12.16
Media Library /wp-admin/upload.php3.29 ▲0.0636.46 ▼3.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Tutor LMS Elementor Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11514.35 ▼0.001.59 ▲0.0237.23 ▼0.26
Dashboard /wp-admin2,267 ▲925.69 ▲0.0679.92 ▼16.6670.84 ▲28.75
Posts /wp-admin/edit.php2,176 ▲762.10 ▲0.1137.65 ▲1.5730.36 ▼4.36
Add New Post /wp-admin/post-new.php1,752 ▲22422.10 ▼1.13722.31 ▲47.7756.45 ▼0.79
Media Library /wp-admin/upload.php1,475 ▲784.16 ▼0.0895.13 ▼5.5181.03 ▲36.53

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 115× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tutor-lms-elementor-addons/templates/course/list/grid/overlayed.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/tutor-lms-elementor-addons/templates/course/carousel/parts/level.php on line 1
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/tutor-lms-elementor-addons/templates/course/carousel/parts/footer.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function etlms_get_template() in wp-content/plugins/tutor-lms-elementor-addons/templates/course/carousel/classic.php:4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/tutor-lms-elementor-addons/templates/course/list/grid/stacked.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tutor_utils() in wp-content/plugins/tutor-lms-elementor-addons/templates/course/add-to-cart-woocommerce.php:12
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/tutor-lms-elementor-addons/templates/course/list/classic.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tutor-lms-elementor-addons/templates/course/enrollment-editor.php:10
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/tutor-lms-elementor-addons/templates/course/list/grid/classic.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tutor_utils() in wp-content/plugins/tutor-lms-elementor-addons/templates/course/add-to-cart-edd.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #10 (Intelligent Preview Modes) image not found
Please take inspiration from this readme.txt

tutor-lms-elementor-addons/tutor-lms-elementor-addons.php Passed 13 tests

The main PHP file in "Tutor LMS Elementor Addons" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Elementor Addons Integration - Tutor LMS plugin lets you design course pages with Elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected19,037 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
PHP1021,9281,70318,476
JavaScript31716288
CSS6449228
SVG10038
JSON2307

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.16
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits1
Classes43
▷ Abstract classes12.33%
▷ Concrete classes4297.67%
▷ Final classes00.00%
Methods206
▷ Static methods125.83%
▷ Public methods9244.66%
▷ Protected methods11254.37%
▷ Private methods20.97%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants8
▷ Global constants8100.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