Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼9.22ms] Passed 4 tests
A check of server-side resources used by MaxBooking Booking Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 36.53 ▼5.29 |
Dashboard /wp-admin | 3.45 ▲0.11 | 47.79 ▼14.10 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.09 ▲2.22 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 83.00 ▼16.27 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.34 ▼1.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_maxbooking_booking_widget_property |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_maxbooking_booking_widget_property_group |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MaxBooking Booking Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.64 ▼0.57 | 7.01 ▲4.94 | 40.71 ▼0.13 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.72 | 97.90 ▼11.03 | 39.98 ▼0.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 39.08 ▲4.43 | 35.48 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,520 ▼2 | 23.24 ▲0.26 | 641.61 ▼26.66 | 51.75 ▼7.47 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.29 ▲0.01 | 101.51 ▼18.70 | 41.75 ▼7.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- widget_maxbooking_booking_widget_property
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_maxbooking_booking_widget_property_group
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-property-group-admin.php
- > /wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-property-admin.php
- > /wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-admin-fields.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-common-fields.php:2
- > PHP Fatal error
Uncaught Error: Class 'Maxbooking_Booking_Widget_Widget' not found in wp-content/plugins/maxbooking-booking-widget/widgets/class-maxbooking-booking-widget-property-widget.php:19
- > PHP Notice
Undefined variable: fields in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-admin-fields.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-property-group-public.php on line 1
- > PHP Notice
Undefined variable: fields in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-admin-fields.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-admin-fields.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/maxbooking-booking-widget/widgets/class-maxbooking-booking-widget-widget.php:19
- > PHP Notice
Undefined variable: fields in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-admin-fields.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-admin-fields.php on line 1
- > PHP Notice
Undefined variable: args in wp-content/plugins/maxbooking-booking-widget/widgets/partials/maxbooking-booking-widget-property-group-public.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5 in maxbooking-booking-widget/assets to your readme.txt
maxbooking-booking-widget/maxbooking-booking-widget.php Passed 13 tests
"MaxBooking Booking Widget" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
The Official MaxBooking.com Booking Widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,342 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 122 | 609 | 607 |
PO File | 19 | 134 | 6 | 554 |
CSS | 4 | 0 | 10 | 103 |
JavaScript | 2 | 11 | 5 | 78 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 6 | 15.38% |
▷ Public methods | 26 | 66.67% |
▷ Protected methods | 8 | 20.51% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected