Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/booking-calendar-contact-form/dex_bccf.php+74
Undefined variable: wpdb
Server metrics [RAM: ▲0.48MB] [CPU: ▼0.42ms] Passed 4 tests
Server-side resources used by Booking Calendar Contact Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 43.11 ▲3.14 |
Dashboard /wp-admin | 3.79 ▲0.45 | 57.08 ▼7.92 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 48.96 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 98.40 ▲2.85 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 33.90 ▲0.63 |
Server storage [IO: ▲1.26MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 225 new files
Database: 5 new tables, 9 new options
New tables |
---|
wp_bccf_reservation_calendars_data |
wp_bccf_dex_season_prices |
wp_bccf_dex_discount_codes |
wp_bccf_reservation_calendars |
wp_bccf_dex_bccf_submissions |
New WordPress options |
---|
installed_booking-calendar-contact-form |
BCCF_RCODE |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
autoptimize_js_exclude |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Booking Calendar Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲78 | 14.14 ▼0.14 | 1.74 ▲0.04 | 39.64 ▼3.55 |
Dashboard /wp-admin | 2,233 ▲56 | 5.58 ▼0.07 | 95.23 ▼4.55 | 45.29 ▲1.36 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.11 ▲0.17 | 33.43 ▼4.44 | 35.21 ▼0.25 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,724 | 19.21 ▼4.03 | 1,168.34 ▲446.72 | 39.41 ▼24.42 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.18 ▲0.01 | 95.89 ▼9.71 | 43.72 ▼1.78 |
Help: Online demo /wp-admin/dex_bccf.php?page=dex_bccf_demo | 26 | 0.41 | 0.06 | 13.81 |
Upgrade /wp-admin/dex_bccf.php?page=dex_bccf_upgrade | 26 | 0.41 | 0.10 | 6.68 |
Manage Calendar /wp-admin/dex_bccf.php | 26 | 0.41 | 0.08 | 6.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 5 tables
- wp_bccf_dex_discount_codes
- wp_bccf_reservation_calendars
- wp_bccf_dex_season_prices
- wp_bccf_reservation_calendars_data
- wp_bccf_dex_bccf_submissions
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- BCCF_RCODE
- widget_recent-comments
- autoptimize_js_exclude
- theysaidso_admin_options
- installed_booking-calendar-contact-form
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/booking-calendar-contact-form/addons/dex_allcals.inc.php
- > /wp-content/plugins/booking-calendar-contact-form/captcha/captcha.php
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-calendar-contact-form/banner.php:102
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/booking-calendar-contact-form/dex_scheduler.inc.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/booking-calendar-contact-form/cp_admin_int_add_booking.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/booking-calendar-contact-form/dex_bccf.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/booking-calendar-contact-form/dex_scheduler_block.inc.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/booking-calendar-contact-form/dex_bccf_admin_int.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/booking-calendar-contact-form/dex_bccf_admin_int_calendar_list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/booking-calendar-contact-form/cp-feedback.php:2
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/booking-calendar-contact-form/dex_scheduler_block.inc.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/booking-calendar-contact-form/dex_bccf_admin_int_bookings_list.inc.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/dex_bccf.php?page=dex_bccf_demo
- > Network (severe)
wp-admin/dex_bccf.php?page=dex_bccf_demo - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/dex_bccf.php?page=dex_bccf_upgrade
- > Network (severe)
wp-admin/dex_bccf.php?page=dex_bccf_upgrade - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/dex_bccf.php
- > Network (severe)
wp-admin/dex_bccf.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
booking-calendar-contact-form/dex_bccf.php 92% from 13 tests
Analyzing the main PHP file in "Booking Calendar Contact Form" version 1.2.48
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("booking-calendar-contact-form.php" instead of "dex_bccf.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
There were no executable files found in this plugin12,402 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 802 | 142 | 4,425 |
PO File | 55 | 1,367 | 1,976 | 3,587 |
JavaScript | 63 | 63 | 177 | 3,466 |
CSS | 6 | 99 | 170 | 924 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 58 | 98.31% |
▷ Anonymous functions | 1 | 1.69% |
Constants | 105 | |
▷ Global constants | 105 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png | 0.25KB | 0.15KB | ▼ 38.25% |
css/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png | 0.12KB | 0.18KB | 0.00% |
css/images/close.png | 0.28KB | 0.16KB | ▼ 40.64% |
css/cupertino/images/ui-bg_flat_15_cd0a0a_40x100.png | 0.18KB | 0.08KB | ▼ 51.93% |
css/cupertino/images/ui-icons_2694e8_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |