Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/reservation-system-for-restaurants/bookiopro-widget.php+48
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼48.07ms] Passed 4 tests
An overview of server-side resources used by Reservation System For Restaurants
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 3.99 ▼31.64 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.80 ▼41.24 |
Posts /wp-admin/edit.php | 2.08 ▼1.29 | 5.58 ▼39.48 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.82 | 6.79 ▼79.90 |
Media Library /wp-admin/upload.php | 2.08 ▼1.16 | 6.00 ▼27.67 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_bp_widget |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reservation System For Restaurants
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 13.22 ▼1.22 | 4.31 ▲2.49 | 39.93 ▲1.22 |
Dashboard /wp-admin | 2,192 ▲15 | 5.51 ▼0.02 | 90.16 ▼0.16 | 37.63 ▼1.24 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.06 | 39.92 ▲5.41 | 35.49 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.48 ▲0.30 | 666.47 ▲33.36 | 57.24 ▼0.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.03 | 93.38 ▼8.05 | 41.11 ▼1.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/reservation-system-for-restaurants/bookiopro-widget.php+48
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_bp_widget
- can_compress_scripts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/reservation-system-for-restaurants/inc/widget-frontend.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/reservation-system-for-restaurants/inc/widget-form.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/reservation-system-for-restaurants/bookiopro-widget.php:28
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/reservation-system-for-restaurants/classes/widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'Walker_Page' not found in wp-content/plugins/reservation-system-for-restaurants/inc/display-widgets.php:703
- > PHP Notice
Undefined variable: widgetUrl in wp-content/plugins/reservation-system-for-restaurants/inc/widget-frontend.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: reservation system, reservation book, booking system, widget, restaurant...
reservation-system-for-restaurants/bookiopro-widget.php 85% from 13 tests
The principal PHP file in "Reservation System For Restaurants" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("reservation-system-for-restaurants.php" instead of "bookiopro-widget.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 270 characters long)
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 detected679 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 154 | 94 | 679 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 60.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 8.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-bookiopro-com.png | 28.64KB | 8.53KB | ▼ 70.22% |