84% masterstudy-lms-divi-modules

Code Review | MasterStudy LMS Divi Modules

WordPress plugin MasterStudy LMS Divi Modules scored84%from 54 tests.

About plugin

  • Plugin page: masterstudy-lms-d...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2021
  • Latest release: Sep 26, 2022
  • Number of updates: 9
  • Update frequency: every 37.7 days
  • Top authors: stylemix (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,478 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.00MB] [CPU: ▼9.04ms] Passed 4 tests

This is a short check of server-side resources used by MasterStudy LMS Divi Modules
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0145.02 ▼2.64
Dashboard /wp-admin3.36 ▼0.0347.54 ▼15.48
Posts /wp-admin/edit.php3.41 ▲0.0148.02 ▼1.60
Add New Post /wp-admin/post-new.php5.94 ▲0.0184.76 ▼16.45
Media Library /wp-admin/upload.php3.28 ▲0.0138.00 ▲3.47

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for MasterStudy LMS Divi Modules
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.29 ▲0.051.71 ▼0.0338.07 ▼2.96
Dashboard /wp-admin2,208 ▲285.52 ▼0.1382.89 ▼5.6740.79 ▼4.18
Posts /wp-admin/edit.php2,113 ▲101.97 ▼0.0537.72 ▼0.7234.01 ▼4.82
Add New Post /wp-admin/post-new.php1,539 ▲1123.13 ▲0.04672.41 ▲22.8650.64 ▼8.79
Media Library /wp-admin/upload.php1,410 ▲134.18 ▼0.01110.33 ▲6.3649.24 ▲2.74

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/CourseBundles/CourseBundles.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/FeaturedTeacher/FeaturedTeacher.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/SingleCourseCarousel/SingleCourseCarousel.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/BlogList/BlogList.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/GoogleClassrooms/GoogleClassrooms.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/IconBox/IconBox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/masterstudy-lms-divi-modules/includes/templates/notice.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/RecentCourses/RecentCourses.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/CoursesCarousel/CoursesCarousel.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/masterstudy-lms-divi-modules/includes/modules/CoursesCategories/CoursesCategories.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: elearning, wordpress divi lms modules plugin, course, lms, online education...

masterstudy-lms-divi-modules/masterstudy-lms-divi-modules.php 92% from 13 tests

"MasterStudy LMS Divi Modules" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,249 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP171951661,127
CSS58059
JSX212937
JavaScript68415
JSON1006
Markdown1105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.21
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants6
▷ Global constants6100.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