79% coursestorm

Code Review | CourseStorm Class Registration for WordPress

WordPress plugin CourseStorm Class Registration for WordPress scored79%from 54 tests.

About plugin

  • Plugin page: coursestorm
  • Plugin version: 1.3.11
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2019
  • Latest release: Sep 27, 2023
  • Number of updates: 135
  • Update frequency: every 12.2 days
  • Top authors: csforwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /3,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.70MB] [CPU: ▲6.12ms] Passed 4 tests

This is a short check of server-side resources used by CourseStorm Class Registration for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6434.82 ▼7.09
Dashboard /wp-admin4.02 ▲0.7263.40 ▲11.68
Posts /wp-admin/edit.php4.08 ▲0.7358.44 ▲11.90
Add New Post /wp-admin/post-new.php6.62 ▲0.74106.43 ▲8.07
Media Library /wp-admin/upload.php3.95 ▲0.7245.11 ▲11.81
CourseStorm for WordPress /wp-admin/options-general.php?page=options_coursestorm_api3.6931.60

Server storage [IO: ▲0.28MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 13 new options
New WordPress options
widget_coursestorm_search
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_coursestorm_featured
recovery_mode_email_last_sent
widget_coursesstorm_upcoming_classes_widget
coursestorm_flushed_permalinks
widget_coursestorm_categories
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for CourseStorm Class Registration for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.38 ▲0.112.14 ▲0.6144.06 ▼1.58
Dashboard /wp-admin2,223 ▲465.58 ▼0.0192.44 ▼0.5742.36 ▲1.49
Posts /wp-admin/edit.php2,129 ▲292.02 ▲0.0339.39 ▼0.2035.09 ▼1.79
Add New Post /wp-admin/post-new.php1,548 ▲2223.10 ▼0.02667.78 ▼52.1353.35 ▼1.14
Media Library /wp-admin/upload.php1,431 ▲374.24 ▼0.05100.48 ▼4.0442.52 ▼4.30
CourseStorm for WordPress /wp-admin/options-general.php?page=options_coursestorm_api8832.0224.2727.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_coursestorm_featured
    • db_upgraded
    • widget_coursesstorm_upcoming_classes_widget
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_recent-comments
    • widget_coursestorm_search
    • theysaidso_admin_options
    • widget_coursestorm_class_by_category
    • widget_coursestorm_categories
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/coursestorm/templates/elements/payment-plan-schedule.php
    • > /wp-content/plugins/coursestorm/templates/elements/html-select.php
    • > /wp-content/plugins/coursestorm/templates/elements/calendar-icon.php
  • 40× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'number_of_payments' of non-object in wp-content/plugins/coursestorm/templates/elements/payment-plan-schedule.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'CourseStorm_API' not found in wp-content/plugins/coursestorm/lib/coursestorm-wp-api.php:8
    • > PHP Notice
      Undefined variable: properties in wp-content/plugins/coursestorm/templates/elements/html-select.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'CourseStorm_API' not found in wp-content/plugins/coursestorm/lib/coursestorm-wp-api.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/coursestorm/templates/elements/category-dropdown.php:10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/coursestorm/templates/elements/html-select.php on line 11
    • > PHP Notice
      Undefined variable: properties in wp-content/plugins/coursestorm/templates/elements/html-select.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coursestorm/admin/coursestorm-cpt.php:147
    • > PHP Notice
      Undefined variable: properties in wp-content/plugins/coursestorm/templates/elements/payment-plan-schedule.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/coursestorm/widgets/class-by-category.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: class registration, online registration, online checkout, class ticketing, registration form

coursestorm/coursestorm.php Passed 13 tests

"CourseStorm Class Registration for WordPress" version 1.3.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Display your CourseStorm catalog on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,374 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP347627863,535
CSS132761091,447
JavaScript44729259
SVG261133

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.71
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes00.00%
Methods158
▷ Static methods7748.73%
▷ Public methods11170.25%
▷ Protected methods2213.92%
▷ Private methods2515.82%
Functions35
▷ Named functions2160.00%
▷ Anonymous functions1440.00%
Constants14
▷ Global constants964.29%
▷ Class constants535.71%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin