Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▲0.48ms] Passed 4 tests
Analyzing server-side resources used by WP Time Slots Booking Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 39.13 ▼6.60 |
Dashboard /wp-admin | 4.02 ▲0.72 | 48.61 ▲0.63 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 52.54 ▲3.67 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 94.38 ▲10.22 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 38.65 ▲4.23 |
Online Demo /wp-admin/admin.php?page=cp_timeslotsbooking_odemo | 3.83 | 33.46 |
General Settings /wp-admin/admin.php?page=cp_timeslotsbooking_settings | 3.92 | 36.51 |
WP Time Slots Booking Form /wp-admin/admin.php?page=cp_timeslotsbooking | 4.08 | 39.38 |
I Need Help /wp-admin/admin.php?page=cp_timeslotsbooking_support | 3.83 | 34.28 |
Add Ons /wp-admin/admin.php?page=cp_timeslotsbooking_addons | 3.99 | 40.10 |
Upgrade Plugin /wp-admin/admin.php?page=cp_timeslotsbooking_upgrade | 3.83 | 32.57 |
WP Time Slots Booking Form /wp-admin/options-general.php?page=cp_timeslotsbooking | 4.08 | 38.75 |
Server storage [IO: ▲3.31MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 370 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_cptslotsbk_forms |
wp_cptslotsbk_messages |
New WordPress options |
---|
widget_cp_timeslotsbookingplugin_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
cp_cptslotsb_last_verified |
widget_recent-posts |
installed_wp-time-slots-booking-form |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WP Time Slots Booking Form: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲75 | 14.27 ▼0.44 | 1.77 ▲0.12 | 37.58 ▼6.12 |
Dashboard /wp-admin | 2,245 ▲65 | 5.62 ▼0.02 | 89.61 ▼2.30 | 40.05 ▼3.42 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 1.95 ▼0.02 | 39.49 ▲4.19 | 36.55 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6,247 ▲4,721 | 19.08 ▼4.08 | 883.35 ▲279.42 | 38.57 ▼12.67 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.23 ▲0.05 | 100.48 ▲3.08 | 42.93 ▲0.93 |
Online Demo /wp-admin/admin.php?page=cp_timeslotsbooking_odemo | 2,399 | 3.47 | 92.00 | 147.72 |
General Settings /wp-admin/admin.php?page=cp_timeslotsbooking_settings | 1,352 | 3.20 | 44.60 | 28.82 |
WP Time Slots Booking Form /wp-admin/admin.php?page=cp_timeslotsbooking | 935 | 2.33 | 42.46 | 27.03 |
I Need Help /wp-admin/admin.php?page=cp_timeslotsbooking_support | 1,606 | 4.01 | 69.27 | 55.07 |
Add Ons /wp-admin/admin.php?page=cp_timeslotsbooking_addons | 1,330 | 2.15 | 23.53 | 47.86 |
Upgrade Plugin /wp-admin/admin.php?page=cp_timeslotsbooking_upgrade | 3,338 | 3.83 | 50.42 | 62.40 |
WP Time Slots Booking Form /wp-admin/options-general.php?page=cp_timeslotsbooking | 916 | 2.46 | 48.54 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_cptslotsbk_forms
- wp_cptslotsbk_messages
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- installed_wp-time-slots-booking-form
- theysaidso_admin_options
- cp_cptslotsb_last_verified
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_cp_timeslotsbookingplugin_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-time-slots-booking-form/cp-public-int.inc.php
- > /wp-content/plugins/wp-time-slots-booking-form/js/fbuilder-loader-admin.php
- > /wp-content/plugins/wp-time-slots-booking-form/js/fbuilder-loader-public.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-time-slots-booking-form/addons/dashboard-box.addon.php:35
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-time-slots-booking-form/cp-admin-int-message-list.inc.php:4
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wp-time-slots-booking-form/controllers/elementor/elementorwidget_class.inc.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-time-slots-booking-form/cp-admin-int-list.inc.php:3
- > PHP Fatal error
Uncaught Error: Class 'CP_TSLOTSBOOK_BaseClass' not found in wp-content/plugins/wp-time-slots-booking-form/cp-main-class.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-time-slots-booking-form/addons/icalexport.addon.php:165
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-time-slots-booking-form/controllers/elementor/cp-elementor-widget.inc.php:11
- > PHP Notice
Undefined index: cal in wp-content/plugins/wp-time-slots-booking-form/cp-admin-int-message-list.inc.php on line 4
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-time-slots-booking-form/wp-time-slots-booking-plugin.php 92% from 13 tests
This is the main PHP file of "WP Time Slots Booking Form" version 1.2.01, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-time-slots-booking-form.php" instead of "wp-time-slots-booking-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected50,616 lines of code in 250 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 61 | 12,693 | 12,890 | 27,453 |
JavaScript | 138 | 1,086 | 1,149 | 15,124 |
PHP | 26 | 1,080 | 319 | 6,195 |
CSS | 17 | 141 | 177 | 1,804 |
INI | 8 | 0 | 0 | 40 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 71.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 447.00 |
Average method complexity | 6.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 88.12% |
▷ Protected methods | 4 | 3.96% |
▷ Private methods | 8 | 7.92% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
Constants | 46 | |
▷ Global constants | 46 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 PNG files occupy 0.31MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.12KB | 0.15KB | 0.00% |
css/cupertino/images/ui-bg_glass_80_eebd4d_1x400.png | 0.40KB | 0.17KB | ▼ 58.09% |
css/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.14KB | 0.17KB | 0.00% |
css/cupertino/images/ui-icons_72a7cf_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png | 0.18KB | 0.08KB | ▼ 51.93% |