Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▼1.34ms] Passed 4 tests
Server-side resources used by School Management System - SakolaWP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 45.74 ▲2.83 |
Dashboard /wp-admin | 4.05 ▲0.74 | 50.92 ▼1.13 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 49.73 ▲1.52 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.70 | 90.27 ▼8.56 |
Media Library /wp-admin/upload.php | 3.90 ▲0.68 | 42.03 ▲5.82 |
Add New /wp-admin/post-new.php?post_type=sakolawp-news | 4.09 | 55.56 |
All Event /wp-admin/edit.php?post_type=sakolawp-event | 4.01 | 38.87 |
Assign Student /wp-admin/admin.php?page=sakolawp-assign-student | 3.88 | 41.49 |
Students Area /wp-admin/admin.php?page=sakolawp-student-area | 3.91 | 39.08 |
Manage Report Attendance /wp-admin/admin.php?page=sakolawp-manage-report-attendance | 3.97 | 35.14 |
Manage Attendance /wp-admin/admin.php?page=sakolawp-manage-attendance | 3.97 | 36.22 |
Tags /wp-admin/edit-tags.php?taxonomy=news-tags&post_type=sakolawp-news | 3.90 | 34.80 |
Manage Routines /wp-admin/admin.php?page=sakolawp-manage-routine | 3.98 | 34.23 |
Manage Classes /wp-admin/admin.php?page=sakolawp-manage-class | 3.88 | 34.75 |
Manage Subjects /wp-admin/admin.php?page=sakolawp-manage-subject | 3.89 | 36.97 |
Server storage [IO: ▲3.49MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 166 new files
Database: 16 new tables, 7 new options
New tables |
---|
wp_sakolawp_exam |
wp_sakolawp_attendance_log |
wp_sakolawp_mark |
wp_sakolawp_class_routine |
wp_sakolawp_questions_bank |
wp_sakolawp_homework |
wp_sakolawp_class |
wp_sakolawp_settings |
wp_sakolawp_exams |
wp_sakolawp_questions |
... |
New WordPress options |
---|
db_upgraded |
sakolawp_db_version |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
School Management System - SakolaWP: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,226 ▲469 | 14.64 ▲0.27 | 19.52 ▲17.37 | 34.12 ▼16.08 |
Dashboard /wp-admin | 2,457 ▲269 | 5.50 ▼0.40 | 115.38 ▲0.68 | 43.37 ▲0.09 |
Posts /wp-admin/edit.php | 2,247 ▲158 | 2.57 ▲0.56 | 37.58 ▲4.40 | 32.74 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,643 ▲124 | 23.53 ▲0.53 | 673.43 ▲4.17 | 38.43 ▼17.05 |
Media Library /wp-admin/upload.php | 1,625 ▲240 | 4.67 ▲0.45 | 97.40 ▼14.04 | 41.08 ▼3.89 |
Add New /wp-admin/post-new.php?post_type=sakolawp-news | 2,499 | 8.35 | 188.05 | 66.03 |
All Event /wp-admin/edit.php?post_type=sakolawp-event | 1,211 | 2.17 | 34.01 | 28.44 |
Assign Student /wp-admin/admin.php?page=sakolawp-assign-student | 1,034 | 2.11 | 27.59 | 40.93 |
Students Area /wp-admin/admin.php?page=sakolawp-student-area | 1,004 | 2.10 | 29.89 | 29.62 |
Manage Report Attendance /wp-admin/admin.php?page=sakolawp-manage-report-attendance | 1,106 | 2.12 | 25.94 | 28.78 |
Manage Attendance /wp-admin/admin.php?page=sakolawp-manage-attendance | 1,065 | 2.59 | 32.48 | 27.81 |
Tags /wp-admin/edit-tags.php?taxonomy=news-tags&post_type=sakolawp-news | 1,417 | 2.38 | 30.13 | 28.14 |
Manage Routines /wp-admin/admin.php?page=sakolawp-manage-routine | 1,561 | 2.11 | 26.26 | 26.75 |
Manage Classes /wp-admin/admin.php?page=sakolawp-manage-class | 1,007 | 2.11 | 25.25 | 27.67 |
Manage Subjects /wp-admin/admin.php?page=sakolawp-manage-subject | 1,099 | 2.09 | 27.67 | 25.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 16 tables
- wp_sakolawp_questions_bank
- wp_sakolawp_student_answer
- wp_sakolawp_attendance_log
- wp_sakolawp_mark
- wp_sakolawp_homework
- wp_sakolawp_section
- wp_sakolawp_settings
- wp_sakolawp_exam
- wp_sakolawp_attendance
- wp_sakolawp_enroll
- ...
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- sakolawp_db_version
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sakolawp-manage-report-attendance
- > Notice in wp-content/plugins/sakolawp-lite/admin/partials/sakolawp-manage-report-attendance.php+112
Undefined offset: 1
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sakolawp-manage-routine
- > Notice in wp-content/plugins/sakolawp-lite/admin/partials/sakolawp-manage-routine.php+87
Trying to access array offset on value of type null
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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sakolawp-lite/public/partials/sakolawp-public-display.php
- > /wp-content/plugins/sakolawp-lite/templates/student/my_marks.php
- 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sakolawp-lite/settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function is_page() in wp-content/plugins/sakolawp-lite/rename/parent-rename.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_role() in wp-content/plugins/sakolawp-lite/sakolawp_add_roles.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sakolawp-lite/redirects/admin-redirects.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sakolawp-lite/template/myaccount-shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sakolawp-lite/admin/partials/sakolawp-manage-section.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sakolawp-lite/templates/administrator/view_user.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sakolawp-lite/admin/partials/sakolawp-exam.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sakolawp-lite/templates/teacher/edit_profile.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/sakolawp-lite/template/login-shortcode.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #3, #4, #5, #6, #7, #8, #9 in sakolawp-lite/assets to your readme.txt
sakolawp-lite/sakolawp.php 85% from 13 tests
"School Management System - SakolaWP" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sakolawp-lite.php" instead of "sakolawp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin26,308 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,875 | 861 | 16,216 |
CSS | 11 | 579 | 192 | 4,377 |
SVG | 4 | 3 | 0 | 3,178 |
JavaScript | 15 | 548 | 281 | 2,537 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 57 | 80.28% |
▷ Protected methods | 9 | 12.68% |
▷ Private methods | 5 | 7.04% |
Functions | 72 | |
▷ Named functions | 72 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/swp-icon.png | 0.31KB | 0.38KB | 0.00% |
public/img/skwp-hello-account.png | 170.50KB | 70.01KB | ▼ 58.94% |
admin/css/Logo-dash.png | 8.13KB | 4.76KB | ▼ 41.46% |
admin/img/swp-logo.png | 1.51KB | 1.00KB | ▼ 34.00% |