Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲2.02MB] [CPU: ▲0.35ms] Passed 4 tests
Server-side resources used by WordPress Booking Plugin - TheBooking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.79 ▲2.33 | 57.81 ▲20.61 |
Dashboard /wp-admin | 5.59 ▲2.29 | 63.33 ▲12.20 |
Posts /wp-admin/edit.php | 5.64 ▲2.28 | 64.82 ▲12.02 |
Add New Post /wp-admin/post-new.php | 7.12 ▲1.23 | 72.24 ▼35.98 |
Media Library /wp-admin/upload.php | 5.52 ▲2.28 | 50.48 ▲13.15 |
Services /wp-admin/admin.php?page=thebooking-services | 5.93 | 152.47 |
Availability /wp-admin/admin.php?page=thebooking-availability | 5.77 | 154.67 |
Reservations /wp-admin/admin.php?page=thebooking | 5.76 | 146.88 |
Customers /wp-admin/admin.php?page=thebooking-customers | 5.76 | 149.40 |
Core settings /wp-admin/admin.php?page=thebooking-core | 6.49 | 148.21 |
Server storage [IO: ▲8.52MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 714 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_tbkl_locations |
wp_tbkl_services_meta |
wp_tbkl_customers |
wp_tbkl_reservations |
wp_tbkl_availability |
wp_tbkl_services |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
recovery_mode_email_last_sent |
can_compress_scripts |
tbkg_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Booking Plugin - TheBooking
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,153 ▲418 | 22.23 ▲7.49 | 220.88 ▲219.10 | 40.10 ▲1.89 |
Dashboard /wp-admin | 2,278 ▲90 | 5.82 ▲0.92 | 102.56 ▼5.34 | 39.32 ▼4.26 |
Posts /wp-admin/edit.php | 2,157 ▲65 | 2.01 ▲0.03 | 43.78 ▲0.84 | 34.25 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 24.33 ▲6.79 | 693.88 ▼9.39 | 38.85 ▼17.97 |
Media Library /wp-admin/upload.php | 1,456 ▲65 | 4.25 ▲0.09 | 106.17 ▼15.01 | 44.49 ▼7.57 |
Services /wp-admin/admin.php?page=thebooking-services | 1,227 | 11.44 | 210.07 | 45.04 |
Availability /wp-admin/admin.php?page=thebooking-availability | 1,493 | 12.61 | 240.28 | 44.60 |
Reservations /wp-admin/admin.php?page=thebooking | 1,293 | 11.58 | 177.94 | 36.45 |
Customers /wp-admin/admin.php?page=thebooking-customers | 1,220 | 11.30 | 165.79 | 34.77 |
Core settings /wp-admin/admin.php?page=thebooking-core | 55 | 0.44 | 0.10 | 10.29 |
Uninstaller [IO: ▲8.52MB] [DB: ▲0.01MB] 0% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the followingThis plugin does not fully uninstall, leaving 6 tables in the database Zombie WordPress options detected upon uninstall: 8 options
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/thebooking/Functions.php+82
Uncaught Error: Call to undefined method TheBooking\Settings::_clean_uninstall() in wp-content/plugins/thebooking/Functions.php:82
Stack trace:
#0 wp-includes/class-wp-hook.php(310): TheBooking\plugin_uninstall()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(1269): do_action()
#4 wp-admin/includes/plugin.php(960): uninstall_plugin() - This plugin has failed uninstalling correctly, leaving 714 files (8.52MB) in the plugin directory
- (new file) Admin/UI_CoreSettings.php
- (new file) Admin/Images/user-placeholder.png
- (new file) Admin/Blocks/block.js
- (new file) Admin/UI_Availability/Panel_WeeklyWorkingHours.php
- (new file) Admin/Blocks/blockNext.js
- (new file) Admin/UI_Availability/Panel_ClosingDates.php
- (new file) Admin.php
- (new file) Admin/UI_Availability/Panel_Locations.php
- (new file) Actions.php
- (new file) Admin/UI_Availability.php
- ...
- wp_tbkl_services_meta
- wp_tbkl_locations
- wp_tbkl_availability
- wp_tbkl_services
- wp_tbkl_customers
- wp_tbkl_reservations
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- tbkg_version
- widget_recent-comments
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=thebooking-core
- > Error in wp-content/plugins/thebooking/Modules/PriceModule.php+217
Uncaught Error: Class 'NumberFormatter' not found in wp-content/plugins/thebooking/Modules/PriceModule.php:217
Stack trace:
#0 wp-includes/class-wp-hook.php(310): TheBooking\Modules\PriceModule::currency_settings_panel()
#1 wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 wp-content/plugins/thebooking/Admin.php(36): apply_filters()
#3 wp-includes/class-wp-hook.php(310): TheBooking\Admin::TheBooking\{closure}()
#4 wp-includes/plugin.php(205): WP_Hook->apply_filters()
#5 wp-content/plugins/thebooking/Functions.php(353): apply_filters()
#6 wp-content/plugins/thebooking/Admin.php(160): TheBooking\localize_backend_script()
#7 wp-includes/class-wp-hook.php(310): TheBooking\Admin::load_backend_resources()
#8 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#9 wp-includes/plugin.php(517): WP_
SRP 50% from 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
Please take a closer look at the following
- 271× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/thebooking/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php:36
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/thebooking/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:22
- > PHP Fatal error
Cannot declare class Error, because the name is already in use in wp-content/plugins/thebooking/vendor/symfony/polyfill-php70/Resources/stubs/Error.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/thebooking/vendor/google/apiclient-services/src/Google/Service/Calendar/EventCreator.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Cache\\CacheItemInterface' not found in wp-content/plugins/thebooking/vendor/google/auth/src/Cache/Item.php:25
- > PHP Warning
Class 'Google\\AccessToken\\Revoke' not found in wp-content/plugins/thebooking/vendor/google/apiclient/src/aliases.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/thebooking/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/thebooking/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
- > PHP Warning
require(wp-content/plugins/thebooking/vendor/moneyphp/money/resources/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/thebooking/vendor/moneyphp/money/resources/generate-money-factory.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/thebooking/vendor/google/apiclient-services/src/Google/Service/Calendar/Resource/Colors.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=thebooking-core
- > Network (severe)
wp-admin/admin.php?page=thebooking-core - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 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
9 plugin tags: events, booking calendar, appointment, booking, appointment system...
thebooking/thebooking.php Passed 13 tests
Analyzing the main PHP file in "WordPress Booking Plugin - TheBooking" version 1.4.4
27 characters long description:
A WordPress booking plugin.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected102,655 lines of code in 672 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 560 | 11,192 | 33,747 | 78,428 |
CSS | 34 | 347 | 265 | 15,542 |
Markdown | 31 | 1,783 | 0 | 5,089 |
JSON | 19 | 0 | 0 | 2,132 |
JavaScript | 18 | 97 | 275 | 1,150 |
SVG | 7 | 3 | 0 | 270 |
YAML | 1 | 2 | 0 | 25 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 15.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 633.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 46 | |
Traits | 10 | |
Classes | 484 | |
▷ Abstract classes | 13 | 2.69% |
▷ Concrete classes | 471 | 97.31% |
▷ Final classes | 96 | 20.38% |
Methods | 3,579 | |
▷ Static methods | 520 | 14.53% |
▷ Public methods | 3,071 | 85.81% |
▷ Protected methods | 187 | 5.22% |
▷ Private methods | 321 | 8.97% |
Functions | 293 | |
▷ Named functions | 107 | 36.52% |
▷ Anonymous functions | 186 | 63.48% |
Constants | 561 | |
▷ Global constants | 71 | 12.66% |
▷ Class constants | 490 | 87.34% |
▷ Public constants | 490 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Admin/Images/user-placeholder.png | 25.50KB | 13.21KB | ▼ 48.21% |