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: ▲2.04MB] [CPU: ▲11.39ms] Passed 4 tests
Analyzing server-side resources used by The School Management - Education & Learning Management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.89 | 45.82 ▲7.05 |
Dashboard /wp-admin | 5.73 ▲2.43 | 72.51 ▲27.51 |
Posts /wp-admin/edit.php | 5.79 ▲2.43 | 57.84 ▲4.64 |
Add New Post /wp-admin/post-new.php | 8.32 ▲2.43 | 96.06 ▲12.23 |
Media Library /wp-admin/upload.php | 5.66 ▲2.42 | 54.46 ▲21.62 |
Sessions /wp-admin/admin.php?page=sm-sessions | 5.58 | 44.62 |
Classes /wp-admin/admin.php?page=sm-classes | 5.58 | 42.04 |
Inquiries /wp-admin/admin.php?page=sm-staff-inquiries | 5.59 | 43.79 |
Dashboard /wp-admin/admin.php?page=sm-staff-dashboard | 5.74 | 57.93 |
Roles /wp-admin/admin.php?page=sm-staff-roles | 5.59 | 46.63 |
Dashboard /wp-admin/admin.php?page=sm-staff-academic | 5.60 | 48.82 |
Settings /wp-admin/admin.php?page=sm-settings | 5.64 | 45.88 |
ID Cards /wp-admin/admin.php?page=sm-staff-id-cards | 5.59 | 45.00 |
Dashboard /wp-admin/admin.php?page=sm-staff-student | 5.60 | 44.84 |
Students /wp-admin/admin.php?page=sm-staff-students | 5.61 | 46.25 |
Server storage [IO: ▲5.67MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 452 new files
Database: 17 new tables, 11 new options
New tables |
---|
wp_wlsm_notices |
wp_wlsm_staff |
wp_wlsm_admin_subject |
wp_wlsm_sections |
wp_wlsm_schools |
wp_wlsm_promotions |
wp_wlsm_invoices |
wp_wlsm_classes |
wp_wlsm_inquiries |
wp_wlsm_class_school |
... |
New WordPress options |
---|
wlsm_currency |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_wlsm_noticeboard_widget |
wlsm_current_session |
widget_wlsm_login_widget |
wlsm_date_format |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by The School Management - Education & Learning Management
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,101 ▲340 | 13.58 ▼0.98 | 11.78 ▲10.16 | 42.46 ▲1.44 |
Dashboard /wp-admin | 2,369 ▲192 | 5.68 ▲0.01 | 97.28 ▲4.90 | 43.65 ▲2.12 |
Posts /wp-admin/edit.php | 2,274 ▲174 | 1.99 ▲0.00 | 34.52 ▼0.38 | 34.99 ▼4.76 |
Add New Post /wp-admin/post-new.php | 1,667 ▲141 | 23.29 ▲0.12 | 668.96 ▼18.97 | 57.51 ▼3.43 |
Media Library /wp-admin/upload.php | 1,574 ▲177 | 4.12 ▼0.09 | 95.34 ▼4.12 | 45.71 ▲0.70 |
Sessions /wp-admin/admin.php?page=sm-sessions | 1,865 | 4.14 | 90.89 | 106.61 |
Classes /wp-admin/admin.php?page=sm-classes | 2,852 | 3.92 | 79.61 | 49.78 |
Inquiries /wp-admin/admin.php?page=sm-staff-inquiries | 1,734 | 4.20 | 86.70 | 65.74 |
Dashboard /wp-admin/admin.php?page=sm-staff-dashboard | 2,960 | 5.06 | 117.53 | 88.88 |
Roles /wp-admin/admin.php?page=sm-staff-roles | 1,448 | 3.22 | 73.05 | 49.11 |
Dashboard /wp-admin/admin.php?page=sm-staff-academic | 1,174 | 2.77 | 37.39 | 45.41 |
Settings /wp-admin/admin.php?page=sm-settings | 2,214 | 2.82 | 38.67 | 36.32 |
ID Cards /wp-admin/admin.php?page=sm-staff-id-cards | 1,361 | 3.05 | 47.20 | 40.91 |
Dashboard /wp-admin/admin.php?page=sm-staff-student | 1,180 | 2.66 | 38.77 | 42.55 |
Students /wp-admin/admin.php?page=sm-staff-students | 2,477 | 3.91 | 101.37 | 75.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 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 were found after uninstall: 17 tables
- wp_wlsm_subjects
- wp_wlsm_admin_subject
- wp_wlsm_invoices
- wp_wlsm_staff
- wp_wlsm_admins
- wp_wlsm_roles
- wp_wlsm_student_records
- wp_wlsm_inquiries
- wp_wlsm_class_school
- wp_wlsm_sections
- ...
- Zombie WordPress options were found after uninstall: 11 options
- wlsm_current_session
- widget_wlsm_login_widget
- widget_wlsm_noticeboard_widget
- widget_theysaidso_widget
- widget_recent-comments
- wlsm_currency
- wlsm_date_format
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sm-staff-roles
- > POST request to /wp-admin/admin-ajax.php
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sm-staff-students
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/school-management-system/admin/inc/school/staff/general/WLSM_Staff_General.php+768
Undefined index: order
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 items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/build.php
- 202× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Service/CouponService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/SubscriptionSchedule.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Coupon.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Checkout/Session.php:69
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/UsageRecordSummary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/lib/Service/AccountService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
school-management-system/school-management-system.php 85% from 13 tests
The main PHP file in "The School Management - Education & Learning Management" ver. 4.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 239 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/school-management-system/includes/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 380 | 5,711 | 10,741 | 28,039 |
SVG | 3 | 0 | 12 | 8,889 |
JavaScript | 12 | 236 | 194 | 2,767 |
PO File | 1 | 693 | 1,423 | 1,436 |
CSS | 19 | 251 | 48 | 1,300 |
Markdown | 3 | 708 | 0 | 1,181 |
JSON | 3 | 0 | 0 | 121 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 8 | 0 | 23 |
YAML | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 655.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 9 | |
Traits | 7 | |
Classes | 254 | |
▷ Abstract classes | 10 | 3.94% |
▷ Concrete classes | 244 | 96.06% |
▷ Final classes | 1 | 0.41% |
Methods | 1,171 | |
▷ Static methods | 571 | 48.76% |
▷ Public methods | 1,090 | 93.08% |
▷ Protected methods | 32 | 2.73% |
▷ Private methods | 49 | 4.18% |
Functions | 27 | |
▷ Named functions | 3 | 11.11% |
▷ Anonymous functions | 24 | 88.89% |
Constants | 821 | |
▷ Global constants | 48 | 5.85% |
▷ Class constants | 773 | 94.15% |
▷ Public constants | 773 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/icons.png | 0.47KB | 0.49KB | 0.00% |