Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲2.33MB] [CPU: ▲253.11ms] 50% from 4 tests
Analyzing server-side resources used by EduAdmin Booking
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 561.12ms on /wp-admin/admin.php?page=eduadmin-settings-news)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 253.11ms on /wp-admin/admin.php?page=eduadmin-settings-view)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.82 ▲2.36 | 305.14 ▲265.68 |
Dashboard /wp-admin | 5.68 ▲2.34 | 633.39 ▲573.55 |
Posts /wp-admin/edit.php | 5.72 ▲2.36 | 303.67 ▲259.11 |
Add New Post /wp-admin/post-new.php | 8.21 ▲2.33 | 332.30 ▲240.71 |
Media Library /wp-admin/upload.php | 5.53 ▲2.30 | 278.83 ▲246.93 |
Profile settings /wp-admin/admin.php?page=eduadmin-settings-profile | 5.49 | 293.10 |
Detail settings /wp-admin/admin.php?page=eduadmin-settings-detail | 5.49 | 490.62 |
Booking settings /wp-admin/admin.php?page=eduadmin-settings-booking | 5.47 | 523.50 |
Api Authentication /wp-admin/admin.php?page=eduadmin-settings-api | 5.49 | 295.74 |
Security settings /wp-admin/admin.php?page=eduadmin-settings-security | 5.49 | 299.91 |
Date settings /wp-admin/admin.php?page=eduadmin-settings-date | 5.49 | 310.89 |
General settings /wp-admin/admin.php?page=eduadmin-settings | 5.50 | 312.89 |
Plugins /wp-admin/admin.php?page=eduadmin-settings-plugins | 5.49 | 294.30 |
News /wp-admin/admin.php?page=eduadmin-settings-news | 5.49 | 561.12 |
List settings /wp-admin/admin.php?page=eduadmin-settings-view | 5.49 | 294.45 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 167 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
eduadmin-useBookingFormFromApi |
widget_recent-comments |
Browser metrics Passed 4 tests
EduAdmin Booking: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲180 | 14.68 ▲0.33 | 3.90 ▲2.24 | 42.83 ▼1.38 |
Dashboard /wp-admin | 2,293 ▲116 | 5.66 ▼0.01 | 91.90 ▼5.06 | 39.05 ▼4.70 |
Posts /wp-admin/edit.php | 2,199 ▲96 | 2.10 ▲0.11 | 39.46 ▲3.60 | 37.63 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 18.83 ▼4.40 | 659.06 ▼50.53 | 63.58 ▲2.46 |
Media Library /wp-admin/upload.php | 1,501 ▲98 | 4.35 ▲0.13 | 106.33 ▲3.21 | 48.03 ▲2.02 |
Profile settings /wp-admin/admin.php?page=eduadmin-settings-profile | 951 | 1.87 | 29.18 | 31.44 |
Detail settings /wp-admin/admin.php?page=eduadmin-settings-detail | 1,023 | 1.87 | 23.69 | 28.53 |
Booking settings /wp-admin/admin.php?page=eduadmin-settings-booking | 2,244 | 1.84 | 24.69 | 30.62 |
Api Authentication /wp-admin/admin.php?page=eduadmin-settings-api | 896 | 1.74 | 26.19 | 26.23 |
Security settings /wp-admin/admin.php?page=eduadmin-settings-security | 869 | 1.69 | 23.46 | 25.01 |
Date settings /wp-admin/admin.php?page=eduadmin-settings-date | 869 | 1.70 | 23.28 | 24.01 |
General settings /wp-admin/admin.php?page=eduadmin-settings | 1,413 | 1.91 | 25.70 | 30.79 |
Plugins /wp-admin/admin.php?page=eduadmin-settings-plugins | 886 | 1.71 | 26.38 | 28.71 |
News /wp-admin/admin.php?page=eduadmin-settings-news | 882 | 1.74 | 25.23 | 28.75 |
List settings /wp-admin/admin.php?page=eduadmin-settings-view | 872 | 1.86 | 24.10 | 23.65 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- eduadmin-useBookingFormFromApi
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=eduadmin-settings-booking
- > Notice in wp-content/plugins/eduadmin-booking/includes/booking-settings.php+71
Undefined index: value
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=eduadmin-settings-booking
- > Warning in wp-content/plugins/eduadmin-booking/includes/booking-settings.php+106
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=eduadmin-settings-booking
- > Warning in wp-content/plugins/eduadmin-booking/includes/booking-settings.php+75
array_multisort(): Argument #3 is expected to be an array or a sort flag
- > GET request to /wp-admin/admin.php?page=eduadmin-settings-booking
- > Notice in wp-content/plugins/eduadmin-booking/includes/booking-settings.php+104
Undefined offset: 0
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/eduadmin-booking/includes/edu-options.php
- > /wp-content/plugins/eduadmin-booking/includes/edu-rewrites.php
- > /wp-content/plugins/eduadmin-booking/content/template/bookingTemplate/question-view.php
- > /wp-content/plugins/eduadmin-booking/class/class-eduadminrouter.php
- > /wp-content/plugins/eduadmin-booking/includes/edu-ajax-functions.php
- > /wp-content/plugins/eduadmin-booking/includes/edu-shortcodes.php
- > /wp-content/plugins/eduadmin-booking/eduadmin.php
- 113× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/eduadmin-booking/content/template/listTemplate/blocks/course-block.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function EDU() in wp-content/plugins/eduadmin-booking/content/template/myPagesTemplate/login.php:5
- > PHP Fatal error
Uncaught Error: Class 'EduAdminODataClient' not found in wp-content/plugins/eduadmin-booking/includes/eduadmin-api-phpclient/subclasses/odata/eduadmin-persons.php:6
- > PHP Fatal error
Uncaught Error: Class 'EduAdminODataClient' not found in wp-content/plugins/eduadmin-booking/includes/eduadmin-api-phpclient/subclasses/odata/eduadmin-countries.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/eduadmin-booking/includes/edu-meta-box.php:1
- > PHP Fatal error
Uncaught Error: Class 'EduAdminODataClient' not found in wp-content/plugins/eduadmin-booking/includes/eduadmin-api-phpclient/subclasses/odata/eduadmin-categories.php:6
- > PHP Fatal error
Uncaught Error: Class 'EduAdminODataClient' not found in wp-content/plugins/eduadmin-booking/includes/eduadmin-api-phpclient/subclasses/odata/eduadmin-locations.php:6
- > PHP Fatal error
Uncaught Error: Class 'EduAdminRESTClient' not found in wp-content/plugins/eduadmin-booking/includes/eduadmin-api-phpclient/subclasses/rest/eduadmin-programmestart.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/eduadmin-booking/content/template/listTemplate/list-courses.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/eduadmin-booking/content/template/interestRegTemplate/send-event-inquiry.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: lega online, participants, events, eduadmin, booking...
eduadmin-booking/eduadmin.php 85% from 13 tests
"EduAdmin Booking" version 4.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eduadmin-booking.php" instead of "eduadmin.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin18,442 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 1,922 | 1,675 | 16,561 |
JavaScript | 4 | 0 | 8 | 1,021 |
Markdown | 2 | 816 | 0 | 805 |
YAML | 2 | 0 | 0 | 29 |
JSON | 1 | 0 | 0 | 16 |
CSS | 7 | 0 | 0 | 7 |
XML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 276.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 1 | 1.10% |
▷ Concrete classes | 90 | 98.90% |
▷ Final classes | 2 | 2.22% |
Methods | 211 | |
▷ Static methods | 9 | 4.27% |
▷ Public methods | 157 | 74.41% |
▷ Protected methods | 7 | 3.32% |
▷ Private methods | 47 | 22.27% |
Functions | 187 | |
▷ Named functions | 133 | 71.12% |
▷ Anonymous functions | 54 | 28.88% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/layoutA_list.png | 1.02KB | 0.19KB | ▼ 81.06% |
images/layoutB_list.png | 1.90KB | 0.25KB | ▼ 86.59% |