78% oxygen-tutor-lms

Code Review | Oxygen Tutor LMS

WordPress plugin Oxygen Tutor LMS scored78%from 54 tests.

About plugin

  • Plugin page: oxygen-tutor-lms
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2020
  • Latest release: Apr 18, 2023
  • Number of updates: 15
  • Update frequency: every 77.8 days
  • Top authors: themeum (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /11,827 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Oxygen Tutor LMS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.05 ▼6.13
Dashboard /wp-admin3.34 ▲0.0351.36 ▼1.96
Posts /wp-admin/edit.php3.39 ▲0.0348.61 ▼2.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.12 ▼23.49
Media Library /wp-admin/upload.php3.26 ▲0.0336.14 ▼0.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 130 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Oxygen Tutor LMS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.47 ▼0.281.58 ▼0.5940.34 ▼3.90
Dashboard /wp-admin2,210 ▲225.80 ▲0.90105.36 ▲0.2641.06 ▲1.47
Posts /wp-admin/edit.php2,095 ▲61.98 ▼0.0241.10 ▲5.0337.65 ▲1.42
Add New Post /wp-admin/post-new.php1,542 ▲2823.18 ▲5.61631.84 ▼57.4050.85 ▼6.32
Media Library /wp-admin/upload.php1,389 ▲44.21 ▼0.0397.34 ▼2.7943.00 ▼4.59

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/oxygen-tutor-lms/templates/course/status.php
  • 58× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'OxygenTutorElements' not found in wp-content/plugins/oxygen-tutor-lms/elements/CourseCurriculum.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/oxygen-tutor-lms/templates/course/content.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/oxygen-tutor-lms/templates/shortcode/instructor-filter.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'OxygenTutorElements' not found in wp-content/plugins/oxygen-tutor-lms/elements/CourseMaterial.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tutor_load_template_from_custom_path() in wp-content/plugins/oxygen-tutor-lms/templates/single-preview-lesson.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/oxygen-tutor-lms/templates/single-course.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/oxygen-tutor-lms/templates/global/alert.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_tutor_option() in wp-content/plugins/oxygen-tutor-lms/templates/course/level.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tutor_utils() in wp-content/plugins/oxygen-tutor-lms/templates/single-content-loader.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'OxygenTutorElements' not found in wp-content/plugins/oxygen-tutor-lms/elements/CourseEnrolmentBox.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 to be fixed:
  • Screenshots: Please add an image for screenshot #1 (How to build)
You can look at the official readme.txt

oxygen-tutor-lms/oxygen-tutor-lms.php Passed 13 tests

The main file in "Oxygen Tutor LMS" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
110 characters long description:
Oxygen Builder Integration - Tutor LMS plugin let's you to design your courses, lesson page by Oxygen Builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,323 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP627445334,972
SVG32032337
CSS11014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.07
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes13.57%
Methods155
▷ Static methods10.65%
▷ Public methods155100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants4
▷ Global constants4100.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
No PNG files were detected