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.44MB] [CPU: ▼17.78ms] Passed 4 tests
This is a short check of server-side resources used by bookingflow Smoobu for WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 43.17 ▼3.28 |
Dashboard /wp-admin | 3.60 ▲0.25 | 52.98 ▼14.17 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 52.69 ▲6.42 |
Add New Post /wp-admin/post-new.php | 3.41 ▼2.48 | 44.57 ▼60.09 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 43.24 ▲9.38 |
Webhook /wp-admin/admin.php?page=smoobu-calendar-settings-webhook | 3.43 | 36.47 |
FAQ /wp-admin/admin.php?page=smoobu-calendar-settings-faq | 3.43 | 40.13 |
General Settings /wp-admin/admin.php?page=smoobu-calendar-settings | 3.43 | 36.04 |
Data Renewal /wp-admin/admin.php?page=smoobu-calendar-settings-renewal | 3.43 | 35.86 |
Styling /wp-admin/admin.php?page=smoobu-calendar-settings-styling | 3.45 | 40.01 |
My Properties /wp-admin/admin.php?page=smoobu-calendar-settings-properties | 3.43 | 35.81 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 57 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_smoobu_calendar_availability |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_smoobu_calendar_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by bookingflow Smoobu for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲106 | 13.48 ▼0.73 | 1.61 ▼0.15 | 41.64 ▼1.05 |
Dashboard /wp-admin | 2,276 ▲96 | 4.98 ▼0.62 | 99.00 ▲0.65 | 42.79 ▼2.08 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.50 ▲0.49 | 42.13 ▲0.80 | 37.08 ▲1.76 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,733 | 18.97 ▼4.13 | 928.69 ▲324.68 | 39.66 ▼20.01 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.61 ▲0.45 | 104.01 ▲0.20 | 43.08 ▼2.86 |
Webhook /wp-admin/admin.php?page=smoobu-calendar-settings-webhook | 890 | 2.09 | 27.60 | 27.16 |
FAQ /wp-admin/admin.php?page=smoobu-calendar-settings-faq | 1,201 | 2.63 | 40.02 | 30.54 |
General Settings /wp-admin/admin.php?page=smoobu-calendar-settings | 915 | 2.09 | 28.38 | 25.37 |
Data Renewal /wp-admin/admin.php?page=smoobu-calendar-settings-renewal | 885 | 2.12 | 29.36 | 25.15 |
Styling /wp-admin/admin.php?page=smoobu-calendar-settings-styling | 2,919 | 4.24 | 106.72 | 41.64 |
My Properties /wp-admin/admin.php?page=smoobu-calendar-settings-properties | 941 | 2.11 | 28.88 | 31.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_smoobu_calendar_availability
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_smoobu_calendar_widget
- can_compress_scripts
- widget_theysaidso_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)
Good news, no errors were detected
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
Please take a closer look at the following
- 19× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/bookingflow-smoobu-for-wp/classes/api/class-smoobu-api.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/views/admin/loop/faq.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/smoobu-calendar.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/classes/class-smoobu-calendar.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/views/admin/settings/general.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/classes/shortcodes/class-smoobu-calendar-shortcode.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/views/admin/settings/parts/notice.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/views/admin/settings/renewal.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/classes/class-smoobu-blocks.php
- > /wp-content/plugins/bookingflow-smoobu-for-wp/classes/api/class-smoobu-api-properties.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bookingflow-smoobu-for-wp/constants.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bookingflow-smoobu-for-wp/classes/widgets/class-smoobu-calendar-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bookingflow-smoobu-for-wp/views/calendar.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: booking plugin, smoobu, booking calendar, property booking
bookingflow-smoobu-for-wp/smoobu-calendar.php 85% from 13 tests
This is the main PHP file of "bookingflow Smoobu for WP" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bookingflow-smoobu-for-wp.php" instead of "smoobu-calendar.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,042 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 341 | 746 | 1,664 |
CSS | 6 | 124 | 141 | 733 |
JavaScript | 6 | 52 | 14 | 267 |
PO File | 1 | 90 | 91 | 259 |
Sass | 1 | 17 | 0 | 96 |
JSON | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 11.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 4 | 33.33% |
Methods | 71 | |
▷ Static methods | 24 | 33.80% |
▷ Public methods | 60 | 84.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 15.49% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
12 PNG files occupy 0.32MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/webhook-instruction-1.png | 22.75KB | 7.98KB | ▼ 64.92% |
assets/screenshot-2.png | 62.51KB | 27.02KB | ▼ 56.78% |
assets/screenshot-5.png | 37.61KB | 19.13KB | ▼ 49.12% |
assets/screenshot-1.png | 58.66KB | 25.42KB | ▼ 56.66% |
assets/css/default/images/arrow-right.png | 0.31KB | 0.21KB | ▼ 32.08% |