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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 34.82 ▼7.09 |
Dashboard /wp-admin | 4.02 ▲0.72 | 63.40 ▲11.68 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 58.44 ▲11.90 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.74 | 106.43 ▲8.07 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 45.11 ▲11.81 |
CourseStorm for WordPress /wp-admin/options-general.php?page=options_coursestorm_api | 3.69 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.38 ▲0.11 | 2.14 ▲0.61 | 44.06 ▼1.58 |
Dashboard /wp-admin | 2,223 ▲46 | 5.58 ▼0.01 | 92.44 ▼0.57 | 42.36 ▲1.49 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.02 ▲0.03 | 39.39 ▼0.20 | 35.09 ▼1.79 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.10 ▼0.02 | 667.78 ▼52.13 | 53.35 ▼1.14 |
Media Library /wp-admin/upload.php | 1,431 ▲37 | 4.24 ▼0.05 | 100.48 ▼4.04 | 42.52 ▼4.30 |
CourseStorm for WordPress /wp-admin/options-general.php?page=options_coursestorm_api | 883 | 2.02 | 24.27 | 27.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 762 | 786 | 3,535 |
CSS | 13 | 276 | 109 | 1,447 |
JavaScript | 4 | 47 | 29 | 259 |
SVG | 2 | 6 | 1 | 133 |
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 code | 0.37 |
Average class complexity | 22.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 158 | |
▷ Static methods | 77 | 48.73% |
▷ Public methods | 111 | 70.25% |
▷ Protected methods | 22 | 13.92% |
▷ Private methods | 25 | 15.82% |
Functions | 35 | |
▷ Named functions | 21 | 60.00% |
▷ Anonymous functions | 14 | 40.00% |
Constants | 14 | |
▷ Global constants | 9 | 64.29% |
▷ Class constants | 5 | 35.71% |
▷ Public constants | 5 | 100.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