Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲9.54MB] [CPU: ▲76.31ms] 25% from 4 tests
Analyzing server-side resources used by Sensei LMS - Online Courses, Quizzes, & Learning
Please take the time to fix the following items
- RAM: You should keep total memory usage under 10MB (currently 13.04MB on /wp-admin/admin.php?page=sensei_reports)
- CPU: Total CPU usage should be kept under 500.00ms (currently 562.17ms on /wp-admin/options.php?page=sensei_setup_wizard)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 9.54MB on /wp-admin/admin.php?page=sensei_reports)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.53 ▲10.07 | 122.25 ▲80.49 |
Dashboard /wp-admin | 12.64 ▲9.33 | 123.82 ▲64.45 |
Posts /wp-admin/edit.php | 12.78 ▲9.42 | 140.81 ▲91.50 |
Add New Post /wp-admin/post-new.php | 16.63 ▲10.74 | 176.01 ▲85.40 |
Media Library /wp-admin/upload.php | 12.57 ▲9.34 | 110.64 ▲74.90 |
Questions /wp-admin/edit.php?post_type=question | 12.64 | 115.70 |
Groups Pro /wp-admin/admin.php?page=student_groups | 12.58 | 1,624.61 |
Sensei LMS - Setup Wizard /wp-admin/options.php?page=sensei_setup_wizard | 15.61 | 562.17 |
Tools /wp-admin/admin.php?page=sensei-tools | 12.64 | 116.09 |
Order Courses /wp-admin/admin.php?page=course-order | 12.55 | 105.96 |
Editor /wp-admin/site-editor.php?postType=wp_template | 17.01 | 143.52 |
Order Lessons /wp-admin/admin.php?page=lesson-order | 12.55 | 103.18 |
Lessons /wp-admin/edit.php?post_type=lesson | 12.67 | 106.80 |
Order Modules /wp-admin/admin.php?page=module-order | 12.55 | 100.43 |
Reports /wp-admin/admin.php?page=sensei_reports | 13.04 | 109.33 |
Server storage [IO: ▲20.89MB] [DB: ▲0.06MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,690 new files
Database: 4 new tables, 23 new options
New tables |
---|
wp_actionscheduler_actions |
wp_actionscheduler_claims |
wp_actionscheduler_logs |
wp_actionscheduler_groups |
New WordPress options |
---|
sensei-scheduler-calculation-version |
widget_sensei_lesson_component |
schema-ActionScheduler_LoggerSchema |
sensei_suggest_setup_wizard |
widget_sensei_category_courses |
can_compress_scripts |
sensei_flush_rewrite_rules |
widget_recent-comments |
sensei_course_theme_query_var_flushed |
sensei_course_enrolment_site_salt |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Sensei LMS - Online Courses, Quizzes, & Learning
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,997 ▲210 | 14.39 ▼0.31 | 2.86 ▲0.93 | 37.53 ▼8.48 |
Dashboard /wp-admin | 2,347 ▲167 | 5.69 ▲0.15 | 96.58 ▼3.14 | 45.13 ▼2.70 |
Posts /wp-admin/edit.php | 2,214 ▲114 | 2.09 ▲0.07 | 41.21 ▼3.12 | 35.67 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,610 ▲84 | 20.88 ▼2.63 | 725.56 ▲101.03 | 60.64 ▲8.95 |
Media Library /wp-admin/upload.php | 1,514 ▲114 | 4.27 ▲0.08 | 96.40 ▼2.26 | 43.51 ▼3.01 |
Questions /wp-admin/edit.php?post_type=question | 1,285 | 2.12 | 35.14 | 33.26 |
Groups Pro /wp-admin/admin.php?page=student_groups | 972 | 2.08 | 27.33 | 45.10 |
Sensei LMS - Setup Wizard /wp-admin/options.php?page=sensei_setup_wizard | 908 | 9.17 | 201.12 | 39.78 |
Tools /wp-admin/admin.php?page=sensei-tools | 1,128 | 2.22 | 28.43 | 30.86 |
Order Courses /wp-admin/admin.php?page=course-order | 923 | 2.10 | 28.20 | 23.19 |
Editor /wp-admin/site-editor.php?postType=wp_template | 5,300 | 24.54 | 905.50 | 38.83 |
Order Lessons /wp-admin/admin.php?page=lesson-order | 982 | 2.47 | 41.99 | 25.70 |
Lessons /wp-admin/edit.php?post_type=lesson | 1,308 | 2.19 | 37.29 | 35.66 |
Order Modules /wp-admin/admin.php?page=module-order | 1,002 | 2.47 | 35.48 | 27.05 |
Reports /wp-admin/admin.php?page=sensei_reports | 1,221 | 2.52 | 58.23 | 42.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- The uninstall procedure has failed, leaving 24 options in the database
- widget_sensei_lesson_component
- action_scheduler_migration_status
- sensei_installed_at
- widget_sensei_course_component
- widget_recent-comments
- sensei-version
- theysaidso_admin_options
- db_upgraded
- sensei_course_theme_query_var_flushed
- schema-ActionScheduler_LoggerSchema
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Notice in wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php+726
Undefined property: stdClass::$modified
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 132× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sensei_Home_Task' not found in wp-content/plugins/sensei-lms/includes/admin/home/tasks/task/class-sensei-home-task-configure-learning-mode.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Sensei\\ThirdParty\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/sensei-lms/third-party/symfony/css-selector/Parser/Handler/IdentifierHandler.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Sensei_Home_Task' not found in wp-content/plugins/sensei-lms/includes/admin/home/tasks/task/class-sensei-home-task-customize-course-theme.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Sensei\\ThirdParty\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/sensei-lms/third-party/symfony/css-selector/Parser/Handler/StringHandler.php:30
- > PHP Fatal error
Uncaught Error: Class 'Sensei\\ThirdParty\\Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/sensei-lms/third-party/symfony/css-selector/Node/CombinedSelectorNode.php:23
- > PHP Fatal error
Uncaught Error: Class 'Sensei\\ThirdParty\\Sabberworm\\CSS\\Value\\PrimitiveValue' not found in wp-content/plugins/sensei-lms/third-party/sabberworm/php-css-parser/src/Value/Size.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/sensei-lms/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php:6
- > PHP Fatal error
Uncaught Error: Class 'Sensei\\ThirdParty\\Sabberworm\\CSS\\CSSList\\CSSList' not found in wp-content/plugins/sensei-lms/third-party/sabberworm/php-css-parser/src/CSSList/KeyFrame.php:7
- > PHP Fatal error
Uncaught Error: Class 'Action_Scheduler\\Migration\\LogMigrator' not found in wp-content/plugins/sensei-lms/vendor/woocommerce/action-scheduler/classes/migration/DryRun_LogMigrator.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Sensei\\ThirdParty\\Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/sensei-lms/third-party/sabberworm/php-css-parser/src/Comment/Comment.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "sensei-shared-blocks-editor-style-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#sensei-shared-blocks-editor-style-css
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "sensei-learning-mode-compat-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#sensei-learning-mode-compat-css
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "sensei-learning-mode-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#sensei-learning-mode-css
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "sensei-learning-mode-editor-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#sensei-learning-mode-editor-css
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "sensei-email-editor-style-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#sensei-email-editor-style-css
- > GET request to /wp-admin/site-editor.php?postType=wp_template
- > Console-api (warning) in unknown
/wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "sensei-global-blocks-editor-style-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#sensei-global-blocks-editor-style-css
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, teach, elearning, lms, online courses
sensei-lms/sensei-lms.php Passed 13 tests
The primary PHP file in "Sensei LMS - Online Courses, Quizzes, & Learning" version 4.19.2 is used by WordPress to initiate all plugin functionality
97 characters long description:
Share your knowledge, grow your network, and strengthen your brand by launching an online course.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin129,570 lines of code in 1,495 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 865 | 19,887 | 53,877 | 79,606 |
JavaScript | 463 | 4,369 | 11,873 | 37,886 |
CSS | 103 | 762 | 417 | 9,394 |
JSON | 48 | 1 | 0 | 1,908 |
Markdown | 5 | 272 | 0 | 622 |
TypeScript | 2 | 14 | 34 | 74 |
HTML | 4 | 11 | 68 | 42 |
XML | 1 | 0 | 0 | 29 |
SVG | 4 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 618.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 55 | |
Interfaces | 37 | |
Traits | 4 | |
Classes | 602 | |
▷ Abstract classes | 44 | 7.31% |
▷ Concrete classes | 558 | 92.69% |
▷ Final classes | 4 | 0.72% |
Methods | 5,085 | |
▷ Static methods | 644 | 12.66% |
▷ Public methods | 3,932 | 77.33% |
▷ Protected methods | 304 | 5.98% |
▷ Private methods | 849 | 16.70% |
Functions | 250 | |
▷ Named functions | 114 | 45.60% |
▷ Anonymous functions | 136 | 54.40% |
Constants | 375 | |
▷ Global constants | 5 | 1.33% |
▷ Class constants | 370 | 98.67% |
▷ Public constants | 348 | 94.05% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 5.95MB with 1.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/content-drip-promo-desktop.png | 247.51KB | 204.74KB | ▼ 17.28% |
assets/dist/images/sensei-pro-ad-stars.png | 0.87KB | 0.51KB | ▼ 40.94% |
assets/dist/images/showcase-courses-upsell-illustration.png | 652.51KB | 198.03KB | ▼ 69.65% |
assets/dist/images/ui-icons_cc0000_256x240-dc29114100c22b4660e3.png | 4.52KB | 4.18KB | ▼ 7.56% |
assets/dist/images/purchase-sensei-pro-desktop.png | 287.28KB | 207.77KB | ▼ 27.68% |