Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▼3.69ms] Passed 4 tests
An overview of server-side resources used by UniLMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.78 | 43.98 ▼6.17 |
Dashboard /wp-admin | 4.14 ▲0.83 | 49.30 ▼0.13 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 50.84 ▼5.55 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 87.70 ▼2.91 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 41.70 ▲5.85 |
Course Files /wp-admin/edit.php?post_type=uni_lms_course_files | 4.04 | 39.94 |
Lectures /wp-admin/edit.php?post_type=uni_lms_lectures | 4.04 | 39.53 |
Activities /wp-admin/edit.php?post_type=uni_lms_quizzes | 4.04 | 35.41 |
Attendances /wp-admin/edit.php?post_type=uni_lms_attendances | 4.04 | 40.59 |
Students /wp-admin/edit.php?post_type=uni_lms_students | 4.04 | 38.18 |
Courses /wp-admin/edit.php?post_type=uni_lms_courses | 4.04 | 39.70 |
Settings /wp-admin/admin.php?page=uni_lms_settings | 3.98 | 38.75 |
Classes /wp-admin/edit.php?post_type=uni_lms_classes | 4.04 | 40.80 |
Dashboard /wp-admin/admin.php?page=unilms | 4.08 | 41.17 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by UniLMS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.22 ▼1.15 | 1.73 ▼0.32 | 41.61 ▼3.19 |
Dashboard /wp-admin | 2,257 ▲69 | 4.89 ▼0.02 | 111.58 ▲3.40 | 38.86 ▼3.94 |
Posts /wp-admin/edit.php | 2,140 ▲48 | 2.00 ▼0.01 | 34.28 ▼4.31 | 33.52 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,585 ▲71 | 18.41 ▲0.90 | 638.85 ▼46.48 | 49.06 ▼6.98 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.20 ▲0.02 | 97.85 ▼0.06 | 41.94 ▼0.52 |
Course Files /wp-admin/edit.php?post_type=uni_lms_course_files | 1,183 | 1.93 | 35.13 | 32.73 |
Lectures /wp-admin/edit.php?post_type=uni_lms_lectures | 1,169 | 1.94 | 31.31 | 32.07 |
Activities /wp-admin/edit.php?post_type=uni_lms_quizzes | 1,135 | 1.93 | 28.75 | 27.71 |
Attendances /wp-admin/edit.php?post_type=uni_lms_attendances | 1,183 | 1.93 | 31.19 | 30.61 |
Students /wp-admin/edit.php?post_type=uni_lms_students | 1,188 | 1.93 | 31.67 | 32.38 |
Courses /wp-admin/edit.php?post_type=uni_lms_courses | 1,188 | 2.00 | 30.63 | 32.29 |
Settings /wp-admin/admin.php?page=uni_lms_settings | 1,032 | 3.01 | 43.16 | 25.16 |
Classes /wp-admin/edit.php?post_type=uni_lms_classes | 1,188 | 1.95 | 31.43 | 32.60 |
Dashboard /wp-admin/admin.php?page=unilms | 1,295 | 2.05 | 24.19 | 27.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/unilms/plugin_pages/includes/teachers/teacher_course_class_mid_term.php:40
- > PHP Notice
Undefined variable: class_id in wp-content/plugins/unilms/plugin_pages/includes/teachers/teacher_course_class_final_term.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/unilms/uni_lms_templates/attendances/single-uni_lms_attendances.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/unilms/plugin_pages/includes/teachers/teacher_course_class_course_plan.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/unilms/plugin_pages/includes/teachers/teacher_course_class_attendance_short.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/unilms/uni_lms_templates/classes/single-uni_lms_classes.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/unilms/uni_lms_templates/courses/single-uni_lms_courses.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/unilms/uni_lms_templates/courses/archive-uni_lms_courses.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unilms/plugin_pages/includes/custom_posts/course_files/course_files.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/unilms/plugin_pages/includes/teachers/teacher_course_class_grad_policy.php:4
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 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
6 plugin tags: university management, learning management system, result management, lms, school management...
unilms/uni-lms.php 85% from 13 tests
The main file in "UniLMS" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("unilms.php" instead of "uni-lms.php")
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
Success! There were no dangerous files found in this plugin8,261 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 632 | 426 | 6,906 |
CSS | 4 | 50 | 53 | 1,317 |
JavaScript | 2 | 7 | 4 | 38 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 119 | |
▷ Named functions | 116 | 97.48% |
▷ Anonymous functions | 3 | 2.52% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
css/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |