Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▲0.88ms] 75% from 4 tests
Analyzing server-side resources used by Learning Management System, eLearning, Course Builder, WordPress LMS Plugin - Sikshya LMS
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,634.31ms on /wp-admin/edit.php?post_type=sik_courses&page=sikshya-status)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.42 | 40.37 ▼2.34 |
Dashboard /wp-admin | 3.72 ▲0.42 | 47.02 ▼3.52 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 53.19 ▲3.27 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 106.07 ▲9.45 |
Media Library /wp-admin/upload.php | 3.64 ▲0.42 | 40.33 ▲6.09 |
Import/Export /wp-admin/edit.php?post_type=sik_courses&page=sikshya_course_import_export | 3.58 | 34.00 |
Students /wp-admin/edit.php?post_type=sik_courses&page=students | 3.63 | 38.26 |
Status /wp-admin/edit.php?post_type=sik_courses&page=sikshya-status | 4.09 | 1,634.31 |
Questions /wp-admin/edit.php?post_type=sik_questions | 3.74 | 40.88 |
Settings /wp-admin/edit.php?post_type=sik_courses&page=sik-settings | 3.68 | 35.12 |
Sections /wp-admin/edit.php?post_type=sik_sections | 3.74 | 38.16 |
Add New /wp-admin/post-new.php?post_type=sik_courses | 3.85 | 57.82 |
Courses /wp-admin/edit.php?post_type=sik_courses | 3.74 | 43.18 |
Tag /wp-admin/edit-tags.php?taxonomy=sik_course_tag&post_type=sik_courses | 3.64 | 36.14 |
Quizzes /wp-admin/edit.php?post_type=sik_quizzes | 3.74 | 37.15 |
Server storage [IO: ▲5.80MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 353 new files
Database: 5 new tables, 28 new options
New tables |
---|
wp_sikshya_order_itemmeta |
wp_sikshya_order_items |
wp_sikshya_user_items |
wp_sikshya_user_itemmeta |
wp_sikshya_logs |
New WordPress options |
---|
widget_theysaidso_widget |
sikshya_payment_gateway_paypal_help_url |
can_compress_scripts |
sikshya_queue_flush_rewrite_rules |
sikshya_price_number_decimals |
sikshya_currency |
sikshya_registration_page |
sikshya_login_page |
sikshya_thankyou_page |
sikshya_checkout_page |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Learning Management System, eLearning, Course Builder, WordPress LMS Plugin - Sikshya LMS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,030 ▲273 | 14.70 ▲0.34 | 7.61 ▲5.33 | 38.77 ▼9.27 |
Dashboard /wp-admin | 2,329 ▲138 | 5.55 ▲0.68 | 118.91 ▲12.71 | 38.92 ▼3.57 |
Posts /wp-admin/edit.php | 2,225 ▲132 | 2.70 ▲0.71 | 55.89 ▲14.27 | 35.35 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,638 ▲104 | 18.84 ▼4.18 | 608.44 ▼31.97 | 34.95 ▼18.37 |
Media Library /wp-admin/upload.php | 1,516 ▲125 | 4.80 ▲0.59 | 103.62 ▲6.79 | 41.73 ▼0.08 |
Import/Export /wp-admin/edit.php?post_type=sik_courses&page=sikshya_course_import_export | 994 | 2.56 | 43.42 | 36.07 |
Students /wp-admin/edit.php?post_type=sik_courses&page=students | 1,102 | 2.56 | 31.59 | 25.91 |
Status /wp-admin/edit.php?post_type=sik_courses&page=sikshya-status | 2,458 | 3.01 | 42.15 | 34.24 |
Questions /wp-admin/edit.php?post_type=sik_questions | 1,184 | 2.52 | 42.25 | 25.80 |
Settings /wp-admin/edit.php?post_type=sik_courses&page=sik-settings | 1,956 | 2.57 | 35.09 | 74.09 |
Sections /wp-admin/edit.php?post_type=sik_sections | 1,200 | 2.52 | 36.99 | 27.74 |
Add New /wp-admin/post-new.php?post_type=sik_courses | 2,871 | 7.70 | 196.89 | 66.77 |
Courses /wp-admin/edit.php?post_type=sik_courses | 1,224 | 2.52 | 38.11 | 28.93 |
Tag /wp-admin/edit-tags.php?taxonomy=sik_course_tag&post_type=sik_courses | 1,404 | 2.32 | 33.26 | 27.88 |
Quizzes /wp-admin/edit.php?post_type=sik_quizzes | 1,184 | 2.49 | 40.07 | 24.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_sikshya_order_itemmeta
- wp_sikshya_user_itemmeta
- wp_sikshya_logs
- wp_sikshya_user_items
- wp_sikshya_order_items
- This plugin does not fully uninstall, leaving 28 options in the database
- sikshya_payment_gateway_paypal_description
- can_compress_scripts
- widget_sikshya_courses_widget
- widget_recent-posts
- sikshya_payment_gateway_enable_logging
- sikshya_login_page
- sikshya_payment_gateway_paypal_help_text
- sikshya_price_number_decimals
- db_upgraded
- sikshya_thankyou_page
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sikshya/templates/course-none.php
- > /wp-content/plugins/sikshya/includes/admin/templates/metabox/course/options.php
- 197× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sikshya/includes/meta-boxes/views/tmpl/answer/add-answer.php:4
- > PHP Warning
include_once(SIKSHYA_PATH/includes/payment-gateways/function-sikshya-payments.php): failed to open stream: No such file or directory in wp-content/plugins/sikshya/includes/payment-gateways/class-sikshya-gateways-core.php on line 34
- > PHP Warning
include_once(): Failed opening 'SIKSHYA_PATH/includes/admin/class-sikshya-admin-form-handler.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/sikshya/includes/admin/class-sikshya-admin.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sikshya/templates/profile/parts/enrolled-courses.php:1
- > PHP Notice
Undefined variable: id in wp-content/plugins/sikshya/includes/meta-boxes/views/tmpl/editor.php on line 3
- > PHP Warning
Use of undefined constant SIKSHYA_PATH - assumed 'SIKSHYA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sikshya/includes/admin/class-sikshya-admin.php on line 21
- > PHP Warning
include_once(SIKSHYA_PATH/includes/hooks/class-sikshya-template-hooks.php): failed to open stream: No such file or directory in wp-content/plugins/sikshya/includes/class-sikshya-hooks.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function sikshya() in wp-content/plugins/sikshya/templates/parts/course/single-content.php:3
- > PHP Warning
include_once(SIKSHYA_PATH/includes/payment-gateways/paypal/class-sikshya-payment-gateway-paypal.php): failed to open stream: No such file or directory in wp-content/plugins/sikshya/includes/payment-gateways/class-sikshya-gateways-core.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sikshya/includes/class-sikshya-assets.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: course, elearning, learning management system, quizzes, education...
sikshya/sikshya.php 92% from 13 tests
"Learning Management System, eLearning, Course Builder, WordPress LMS Plugin - Sikshya LMS" version 0.0.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/sikshya/includes/payment-gateways/paypal/php-paypal-ipn/cert/api_cert_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 211 | 5,077 | 2,986 | 18,377 |
CSS | 42 | 2,388 | 201 | 10,713 |
SVG | 4 | 0 | 13 | 8,895 |
JavaScript | 28 | 2,188 | 1,363 | 7,706 |
Sass | 14 | 621 | 0 | 3,711 |
JSON | 1 | 0 | 0 | 2,901 |
HTML | 1 | 19 | 0 | 69 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 6 | 6.06% |
▷ Concrete classes | 93 | 93.94% |
▷ Final classes | 2 | 2.15% |
Methods | 695 | |
▷ Static methods | 81 | 11.65% |
▷ Public methods | 581 | 83.60% |
▷ Protected methods | 79 | 11.37% |
▷ Private methods | 35 | 5.04% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 20 | 60.61% |
▷ Class constants | 13 | 39.39% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/paypal.png | 5.39KB | 5.33KB | ▼ 1.18% |
assets/images/yes.png | 0.84KB | 1.00KB | 0.00% |