gocodebox/lifterlms

View on GitHub
class-lifterlms.php

Summary

Maintainability
D
1 day
Test Coverage
F
48%

Method define_constants has 201 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function define_constants() {

        llms_maybe_define_constant( 'LLMS_VERSION', $this->version );
        llms_maybe_define_constant( 'LLMS_TEMPLATE_PATH', $this->template_path() );
        llms_maybe_define_constant( 'LLMS_PLUGIN_URL', plugin_dir_url( LLMS_PLUGIN_FILE ) );
Severity: Major
Found in class-lifterlms.php - About 1 day to fix

    File class-lifterlms.php has 309 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Main LifterLMS class
     *
     * @package LifterLMS/Main
    Severity: Minor
    Found in class-lifterlms.php - About 3 hrs to fix

      LifterLMS has 22 functions (exceeds 20 allowed). Consider refactoring.
      Open

      final class LifterLMS {
      
          use LLMS_Trait_Singleton;
      
          /**
      Severity: Minor
      Found in class-lifterlms.php - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status