56% wpschoolpress

Code Review | School Management System – WPSchoolPress

WordPress plugin School Management System – WPSchoolPress scored56%from 54 tests.

About plugin

  • Plugin page: wpschoolpress
  • Plugin version: 2.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 1, 2019
  • Latest release: Oct 12, 2023
  • Number of updates: 167
  • Update frequency: every 10.5 days
  • Top authors: jdsofttech (64.67%)narendraigex (35.93%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /137,444 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.99 ▲1.5351.23 ▲5.36
Dashboard /wp-admin5.02 ▲1.7265.58 ▲9.53
Posts /wp-admin/edit.php5.07 ▲1.7265.26 ▲8.84
Add New Post /wp-admin/post-new.php7.56 ▲1.6798.66 ▼27.02
Media Library /wp-admin/upload.php4.88 ▲1.6650.09 ▲11.87
  Time Table /wp-admin/admin.php?page=sch-timetable4.9249.89
  Exams /wp-admin/admin.php?page=sch-exams4.9449.05
  Events /wp-admin/admin.php?page=sch-events4.9247.07
  Teacher Attendance /wp-admin/admin.php?page=sch-teacherattendance4.9047.14
  Social Profile /wp-admin/admin.php?page=sch-postsprofile4.9045.90
  Leave Calendar /wp-admin/admin.php?page=sch-leavecalendar4.9648.66
  Subjects /wp-admin/admin.php?page=sch-subject4.9543.61
  Edit Profile /wp-admin/admin.php?page=sch-editprofile5.1559.29
  Parents /wp-admin/admin.php?page=sch-parent4.9846.62
  Notification /wp-admin/admin.php?page=sch-posts-notification4.8944.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,042 ▲27113.83 ▼0.851.69 ▼0.2537.87 ▼2.44
Dashboard /wp-admin2,426 ▲2465.45 ▼0.14110.88 ▲18.4190.52 ▲40.44
Posts /wp-admin/edit.php2,350 ▲2502.67 ▲0.6847.78 ▲10.1841.16 ▲7.25
Add New Post /wp-admin/post-new.php1,711 ▲16618.68 ▼4.66786.91 ▲95.4737.44 ▼19.16
Media Library /wp-admin/upload.php1,639 ▲2365.06 ▲0.82115.35 ▲10.3186.88 ▲38.33
  Time Table /wp-admin/admin.php?page=sch-timetable1,6373.5459.4688.63
  Exams /wp-admin/admin.php?page=sch-exams1,9873.5782.1271.97
  Events /wp-admin/admin.php?page=sch-events2,7113.9591.9585.47
  Teacher Attendance /wp-admin/admin.php?page=sch-teacherattendance1,8672.8059.1137.80
  Social Profile /wp-admin/admin.php?page=sch-postsprofile1,4582.4452.7439.08
  Leave Calendar /wp-admin/admin.php?page=sch-leavecalendar2,0624.7285.5248.16
  Subjects /wp-admin/admin.php?page=sch-subject1,4962.6060.8660.47
  Edit Profile /wp-admin/admin.php?page=sch-editprofile1,4932.5358.3059.85
  Parents /wp-admin/admin.php?page=sch-parent2,1804.6183.3471.57
  Notification /wp-admin/admin.php?page=sch-posts-notification1,4592.4651.2435.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript1033,2338,21632,531
PHP662,9521,12921,078
CSS276302525,232
SVG2722141,637
Markdown1101

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 code0.38
Average class complexity40.50
▷ Minimum class complexity29.00
▷ Maximum class complexity52.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions145
▷ Named functions145100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/avtar.png88.46KB38.55KB▼ 56.43%
img/school-logo.png4.10KB1.97KB▼ 51.88%
img/avatar.png4.16KB2.32KB▼ 44.27%
plugins/img/play-pause.png0.59KB0.46KB▼ 22.77%
plugins/otherui/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%