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
Install script ran successfully
Server metrics [RAM: ▲1.64MB] [CPU: ▼0.82ms] Passed 4 tests
Analyzing server-side resources used by School Management System – WPSchoolPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.99 ▲1.53 | 51.23 ▲5.36 |
Dashboard /wp-admin | 5.02 ▲1.72 | 65.58 ▲9.53 |
Posts /wp-admin/edit.php | 5.07 ▲1.72 | 65.26 ▲8.84 |
Add New Post /wp-admin/post-new.php | 7.56 ▲1.67 | 98.66 ▼27.02 |
Media Library /wp-admin/upload.php | 4.88 ▲1.66 | 50.09 ▲11.87 |
Time Table /wp-admin/admin.php?page=sch-timetable | 4.92 | 49.89 |
Exams /wp-admin/admin.php?page=sch-exams | 4.94 | 49.05 |
Events /wp-admin/admin.php?page=sch-events | 4.92 | 47.07 |
Teacher Attendance /wp-admin/admin.php?page=sch-teacherattendance | 4.90 | 47.14 |
Social Profile /wp-admin/admin.php?page=sch-postsprofile | 4.90 | 45.90 |
Leave Calendar /wp-admin/admin.php?page=sch-leavecalendar | 4.96 | 48.66 |
Subjects /wp-admin/admin.php?page=sch-subject | 4.95 | 43.61 |
Edit Profile /wp-admin/admin.php?page=sch-editprofile | 5.15 | 59.29 |
Parents /wp-admin/admin.php?page=sch-parent | 4.98 | 46.62 |
Notification /wp-admin/admin.php?page=sch-posts-notification | 4.89 | 44.90 |
Server storage [IO: ▲4.93MB] [DB: ▲0.02MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- You have illegally modified 1 file (0.63KB) outside of "wp-content/plugins/wpschoolpress/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 284 new files
Database: 26 new tables, 7 new options
New tables |
---|
wp_wpsp_leavedays |
wp_wpsp_notification |
wp_wpsp_student |
wp_wpsp_exam |
wp_wpsp_mark |
wp_wpsp_teacher |
wp_wpsp_class_mapping |
wp_wpsp_mark_fields |
wp_wpsp_timetable |
wp_wpsp_import_history |
... |
New WordPress options |
---|
plugin_error |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by School Management System – WPSchoolPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,042 ▲271 | 13.83 ▼0.85 | 1.69 ▼0.25 | 37.87 ▼2.44 |
Dashboard /wp-admin | 2,426 ▲246 | 5.45 ▼0.14 | 110.88 ▲18.41 | 90.52 ▲40.44 |
Posts /wp-admin/edit.php | 2,350 ▲250 | 2.67 ▲0.68 | 47.78 ▲10.18 | 41.16 ▲7.25 |
Add New Post /wp-admin/post-new.php | 1,711 ▲166 | 18.68 ▼4.66 | 786.91 ▲95.47 | 37.44 ▼19.16 |
Media Library /wp-admin/upload.php | 1,639 ▲236 | 5.06 ▲0.82 | 115.35 ▲10.31 | 86.88 ▲38.33 |
Time Table /wp-admin/admin.php?page=sch-timetable | 1,637 | 3.54 | 59.46 | 88.63 |
Exams /wp-admin/admin.php?page=sch-exams | 1,987 | 3.57 | 82.12 | 71.97 |
Events /wp-admin/admin.php?page=sch-events | 2,711 | 3.95 | 91.95 | 85.47 |
Teacher Attendance /wp-admin/admin.php?page=sch-teacherattendance | 1,867 | 2.80 | 59.11 | 37.80 |
Social Profile /wp-admin/admin.php?page=sch-postsprofile | 1,458 | 2.44 | 52.74 | 39.08 |
Leave Calendar /wp-admin/admin.php?page=sch-leavecalendar | 2,062 | 4.72 | 85.52 | 48.16 |
Subjects /wp-admin/admin.php?page=sch-subject | 1,496 | 2.60 | 60.86 | 60.47 |
Edit Profile /wp-admin/admin.php?page=sch-editprofile | 1,493 | 2.53 | 58.30 | 59.85 |
Parents /wp-admin/admin.php?page=sch-parent | 2,180 | 4.61 | 83.34 | 71.57 |
Notification /wp-admin/admin.php?page=sch-posts-notification | 1,459 | 2.46 | 51.24 | 35.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 26 tables in the database
- wp_wpsp_mark
- wp_wpsp_fees_payment
- wp_wpsp_notification
- wp_wpsp_timetable
- wp_wpsp_transport
- wp_wpsp_teacher_attendance
- wp_wpsp_subject
- wp_wpsp_mark_extract
- wp_wpsp_fees
- wp_wpsp_import_history
- ...
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- plugin_error
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=sch-subject
- > Notice in wp-content/plugins/wpschoolpress/pages/wpsp-subject.php+30
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=sch-subject
- > Notice in wp-content/plugins/wpschoolpress/pages/wpsp-subject.php+30
Trying to get property 'c_name' of non-object
- > GET request to /wp-admin/admin.php?page=sch-parent
- > Notice in wp-content/plugins/wpschoolpress/includes/wpsp-parentList.php+195
Undefined variable: stl
- > GET request to /wp-admin/admin.php?page=sch-parent
- > Warning in wp-content/plugins/wpschoolpress/includes/wpsp-parentList.php+195
Invalid argument supplied for foreach()
SRP 0% 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
- 49× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wpschoolpress/pages/wpsp-postsprofile.php
- > /wp-content/plugins/wpschoolpress/pages/wpsp-teacher.php
- > /wp-content/plugins/wpschoolpress/includes/wpsp-subjectForm.php
- > /wp-content/plugins/wpschoolpress/pages/wpsp-registration-request.php
- > /wp-content/plugins/wpschoolpress/index.php
- > /wp-content/plugins/wpschoolpress/pages/wpsp-posts.php
- > /wp-content/plugins/wpschoolpress/includes/wpsp-parentForm.php
- > /wp-content/plugins/wpschoolpress/includes/wpsp-viewTimetable.php
- > /wp-content/plugins/wpschoolpress/lib/wpsp-activation.php
- > /wp-content/plugins/wpschoolpress/pages/wpsp-teacher-attendance.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wpschoolpress/includes/wpsp-popup.php:27
- > 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)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=sch-teacherattendance
- > Network (severe)
http://betatesting87.com/wpschoolpresstest/wp-content/plugins/wpschoolpress/img/svg/datepicker-icon.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: admission, events management, staff information management, exam schedule management, attendance management...
wpschoolpress/wpschoolpress.php 77% from 13 tests
This is the main PHP file of "School Management System – WPSchoolPress" version 2.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin60,479 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 103 | 3,233 | 8,216 | 32,531 |
PHP | 66 | 2,952 | 1,129 | 21,078 |
CSS | 27 | 630 | 252 | 5,232 |
SVG | 27 | 22 | 14 | 1,637 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 145 | |
▷ Named functions | 145 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
40 PNG files occupy 0.26MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/avtar.png | 88.46KB | 38.55KB | ▼ 56.43% |
img/school-logo.png | 4.10KB | 1.97KB | ▼ 51.88% |
img/avatar.png | 4.16KB | 2.32KB | ▼ 44.27% |
plugins/img/play-pause.png | 0.59KB | 0.46KB | ▼ 22.77% |
plugins/otherui/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |