Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.11MB] [CPU: ▼180.07ms] Passed 4 tests
Server-side resources used by TimeSlotBooker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.66 | 17.35 ▼13.39 |
Dashboard /wp-admin | 3.55 ▲0.48 | 17.07 ▼26.94 |
Posts /wp-admin/edit.php | 3.55 ▲0.44 | 15.20 ▼19.55 |
Add New Post /wp-admin/post-new.php | 3.55 ▼1.89 | 16.18 ▼660.41 |
Media Library /wp-admin/upload.php | 3.55 ▲0.54 | 15.91 ▼9.91 |
Schedule /wp-admin/admin.php?page=time-slot-booker&hca=schedule | 3.55 | 18.67 |
Configuration /wp-admin/admin.php?page=time-slot-booker&hca=conf | 3.56 | 28.30 |
Settings /wp-admin/admin.php?page=time-slot-booker&hca=settings | 3.56 | 15.61 |
Server storage [IO: ▲0.82MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 248 new files
Database: 7 new tables, no new options
New tables |
---|
wp_timeslotbooker_v1_migrations |
wp_timeslotbooker_v1_orders |
wp_timeslotbooker_v1_calendars |
wp_timeslotbooker_v1_conf |
wp_timeslotbooker_v1_relations |
wp_timeslotbooker_v1_bookings |
wp_timeslotbooker_v1_availability |
Browser metrics Passed 4 tests
TimeSlotBooker: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲116 | 16.00 ▼0.07 | 8.19 ▲1.78 | 79.07 ▲4.47 |
Dashboard /wp-admin | 2,971 ▲75 | 6.10 ▼0.07 | 115.55 ▼15.58 | 171.92 ▲1.40 |
Posts /wp-admin/edit.php | 2,781 ▲41 | 3.24 ▲0.01 | 68.69 ▲3.00 | 160.59 ▲13.64 |
Add New Post /wp-admin/post-new.php | 3,839 ▲104 | 18.97 ▲0.61 | 447.99 ▲3.14 | 161.26 ▼2.10 |
Media Library /wp-admin/upload.php | 1,793 ▲38 | 5.52 ▲0.01 | 141.52 ▼4.52 | 185.51 ▼0.18 |
Schedule /wp-admin/admin.php?page=time-slot-booker&hca=schedule | 1,652 | 2.91 | 74.48 | 170.16 |
Configuration /wp-admin/admin.php?page=time-slot-booker&hca=conf | 1,221 | 2.41 | 58.05 | 143.82 |
Settings /wp-admin/admin.php?page=time-slot-booker&hca=settings | 1,487 | 2.43 | 56.36 | 151.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/time-slot-booker/happ2/hsystem/parts/profiler.php+75
Array and string offset access syntax with curly braces is deprecated
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_timeslotbooker_v1_availability
- wp_timeslotbooker_v1_migrations
- wp_timeslotbooker_v1_relations
- wp_timeslotbooker_v1_conf
- wp_timeslotbooker_v1_calendars
- wp_timeslotbooker_v1_bookings
- wp_timeslotbooker_v1_orders
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=time-slot-booker&hca=settings
- > Deprecated in wp-content/plugins/time-slot-booker/happ2/hsystem/parts/profiler.php+428
Array and string offset access syntax with curly braces is deprecated
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: appointment scheduling, customer calendar, calendar booking, service scheduling, client scheduling...
time-slot-booker/time-slot-booker.php Passed 13 tests
The main PHP script in "TimeSlotBooker" version 1.0.2 is automatically included on every request by WordPress
24 characters long description:
Time slot booking plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin27,066 lines of code in 246 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 227 | 4,019 | 3,831 | 20,588 |
JavaScript | 15 | 774 | 251 | 5,081 |
CSS | 3 | 96 | 41 | 1,376 |
Markdown | 1 | 5 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 216 | |
▷ Abstract classes | 2 | 0.93% |
▷ Concrete classes | 214 | 99.07% |
▷ Final classes | 0 | 0.00% |
Methods | 973 | |
▷ Static methods | 47 | 4.83% |
▷ Public methods | 868 | 89.21% |
▷ Protected methods | 93 | 9.56% |
▷ Private methods | 12 | 1.23% |
Functions | 73 | |
▷ Named functions | 23 | 31.51% |
▷ Anonymous functions | 50 | 68.49% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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
There are no PNG files in this plugin