Benchmarks
Plugin footprint 64% 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: ▲7.78MB] [CPU: ▲183.89ms] 50% from 4 tests
Analyzing server-side resources used by LMS by Masteriyo - WordPress Learning Management System, eLearning Platform, Online Education System & Online Course Builder
Please fix the following
- RAM: Total memory usage must be kept under 10MB (currently 11.26MB on /wp-admin/tools.php?page=action-scheduler)
- Extra RAM: The extra memory usage should kept under 5MB (currently 7.78MB on /wp-admin/admin.php?page=masteriyo#/users/students)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.21 ▲7.75 | 209.50 ▲169.57 |
Dashboard /wp-admin | 11.02 ▲7.71 | 233.57 ▲187.56 |
Posts /wp-admin/edit.php | 11.16 ▲7.80 | 241.83 ▲193.97 |
Add New Post /wp-admin/post-new.php | 18.87 ▲12.98 | 278.62 ▲184.47 |
Media Library /wp-admin/upload.php | 11.09 ▲7.86 | 276.19 ▲244.21 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 11.26 | 196.55 |
Server storage [IO: ▲11.91MB] [DB: ▲0.06MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,211 new files
Database: 14 new tables, 17 new options
New tables |
---|
wp_actionscheduler_actions |
wp_masteriyo_order_itemmeta |
wp_masteriyo_notifications |
wp_masteriyo_sessions |
wp_masteriyo_user_activitymeta |
wp_actionscheduler_groups |
wp_actionscheduler_logs |
wp_masteriyo_user_itemmeta |
wp_actionscheduler_claims |
wp_masteriyo_user_items |
... |
New WordPress options |
---|
action_scheduler_hybrid_store_demarkation |
can_compress_scripts |
action_scheduler_lock_async-request-runner |
schema-ActionScheduler_LoggerSchema |
widget_recent-comments |
theysaidso_admin_options |
masteriyo_flush_rewrite_rules |
masteriyo_install_date |
masteriyo_settings |
schema-ActionScheduler_StoreSchema |
... |
Browser metrics Passed 4 tests
Checking browser requirements for LMS by Masteriyo - WordPress Learning Management System, eLearning Platform, Online Education System & Online Course Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,114 ▲352 | 16.31 ▲1.97 | 1.51 ▼0.20 | 33.79 ▼12.00 |
Dashboard /wp-admin | 2,521 ▲344 | 6.94 ▲1.27 | 135.66 ▲41.54 | 48.60 ▲9.23 |
Posts /wp-admin/edit.php | 2,596 ▲493 | 4.74 ▲2.73 | 68.11 ▲28.78 | 43.93 ▲7.21 |
Add New Post /wp-admin/post-new.php | 1,629 ▲103 | 18.78 ▼4.33 | 600.66 ▼94.08 | 38.16 ▼16.66 |
Media Library /wp-admin/upload.php | 1,777 ▲383 | 5.24 ▲1.05 | 110.10 ▲8.85 | 52.14 ▲7.33 |
Courses /wp-admin/admin.php?page=masteriyo#/courses | 2,199 | 23.82 | 767.13 | 77.16 |
Webhooks /wp-admin/admin.php?page=masteriyo#/webhooks | 1,950 | 20.88 | 593.81 | 61.24 |
Quiz Attempts /wp-admin/admin.php?page=masteriyo#/quiz-attempts | 1,790 | 19.78 | 554.11 | 58.53 |
Question & Answers /wp-admin/admin.php?page=masteriyo#/question-answers | 1,769 | 20.27 | 519.25 | 53.77 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,764 | 4.49 | 58.79 | 35.79 |
Analytics /wp-admin/admin.php?page=masteriyo#/analytics | 2,872 | 20.57 | 482.88 | 59.08 |
Categories /wp-admin/admin.php?page=masteriyo#/courses/categories | 1,583 | 22.37 | 442.37 | 53.49 |
Addons /wp-admin/admin.php?page=masteriyo#/add-ons | 2,170 | 24.12 | 571.68 | 62.79 |
Reviews /wp-admin/admin.php?page=masteriyo#/reviews | 1,944 | 23.41 | 606.53 | 62.31 |
Users /wp-admin/admin.php?page=masteriyo#/users/students | 1,301 | 15.74 | 460.56 | 53.67 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 14 tables in the database
- wp_masteriyo_sessions
- wp_actionscheduler_logs
- wp_actionscheduler_claims
- wp_actionscheduler_actions
- wp_masteriyo_migrations
- wp_masteriyo_quiz_attempts
- wp_masteriyo_order_itemmeta
- wp_masteriyo_order_items
- wp_masteriyo_notifications
- wp_masteriyo_user_items
- ...
- Zombie WordPress options detected upon uninstall: 17 options
- widget_theysaidso_widget
- masteriyo_settings
- action_scheduler_hybrid_store_demarkation
- course_difficulty_children
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- masteriyo_install_date
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/learning-management-system/templates/masteriyo.php
- 241× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: argv in wp-content/plugins/learning-management-system/vendor/halaxa/json-machine/build/update-changelog.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/learning-management-system/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'JsonMachine\\JsonDecoder\\ItemDecoder' not found in wp-content/plugins/learning-management-system/vendor/halaxa/json-machine/src/JsonDecoder/ErrorWrappingDecoder.php:7
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/learning-management-system/vendor/symfony/css-selector/Node/SelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/learning-management-system/templates/checkout/fields/address-1.php:22
- > PHP Fatal error
Uncaught Error: Class 'Masteriyo\\Repository\\AbstractRepository' not found in wp-content/plugins/learning-management-system/includes/Repository/CourseReviewRepository.php:20
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/learning-management-system/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/learning-management-system/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MonthField.php:8
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/learning-management-system/vendor/symfony/css-selector/Node/PseudoNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Masteriyo\\Database\\Migration' not found in wp-content/plugins/learning-management-system/database/migrations/2021_12_07_070414_create_user_items_meta_table.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in learning-management-system/assets to your readme.txt
learning-management-system/lms.php 85% from 13 tests
The entry point to "LMS by Masteriyo - WordPress Learning Management System, eLearning Platform, Online Education System & Online Course Builder" version 1.7.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("learning-management-system.php" instead of "lms.php")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected136,090 lines of code in 1,110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 853 | 19,306 | 65,893 | 90,163 |
YAML | 1 | 2,371 | 0 | 18,050 |
TypeScript | 100 | 630 | 13 | 8,619 |
JSON | 11 | 12 | 0 | 7,981 |
CSS | 6 | 161 | 2 | 6,225 |
JavaScript | 26 | 424 | 317 | 2,436 |
SVG | 93 | 1 | 1 | 1,102 |
Markdown | 7 | 196 | 0 | 827 |
Sass | 8 | 85 | 1 | 533 |
make | 1 | 22 | 0 | 87 |
Bourne Shell | 4 | 17 | 2 | 67 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 106 | |
Interfaces | 34 | |
Traits | 4 | |
Classes | 631 | |
▷ Abstract classes | 44 | 6.97% |
▷ Concrete classes | 587 | 93.03% |
▷ Final classes | 5 | 0.85% |
Methods | 5,033 | |
▷ Static methods | 374 | 7.43% |
▷ Public methods | 3,772 | 74.95% |
▷ Protected methods | 1,041 | 20.68% |
▷ Private methods | 220 | 4.37% |
Functions | 785 | |
▷ Named functions | 479 | 61.02% |
▷ Anonymous functions | 306 | 38.98% |
Constants | 279 | |
▷ Global constants | 44 | 15.77% |
▷ Class constants | 235 | 84.23% |
▷ Public constants | 235 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
62 PNG files occupy 0.34MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/course-announcement/thumbnail.png | 2.26KB | 0.94KB | ▼ 58.67% |
assets/img/multiple-instructors.png | 0.92KB | 0.92KB | 0.00% |
addons/gamipress-integration/img/dashboard-card-location.png | 2.70KB | 1.09KB | ▼ 59.64% |
assets/img/course-attachment.png | 0.84KB | 0.84KB | 0.00% |
assets/img/course-per-row-3.png | 0.11KB | 0.11KB | 0.00% |