Benchmarks
Plugin footprint 83% 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.52MB] [CPU: ▼0.10ms] Passed 4 tests
This is a short check of server-side resources used by WP Restaurant Booking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.54 | 38.92 ▲2.19 |
Dashboard /wp-admin | 3.88 ▲0.53 | 50.85 ▼7.99 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 53.82 ▲4.05 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.51 | 88.37 ▲1.35 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 41.28 ▲8.49 |
Server storage [IO: ▲5.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 223 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Restaurant Booking
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,379 ▲632 | 14.68 ▲0.33 | 28.37 ▲26.70 | 39.29 ▼1.04 |
Dashboard /wp-admin | 2,234 ▲54 | 5.61 ▼0.06 | 92.97 ▲1.07 | 38.40 ▼1.04 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.00 ▲0.03 | 40.39 ▼2.44 | 37.17 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,557 ▲13 | 22.93 ▼2.40 | 595.14 ▼9.53 | 55.01 ▼9.81 |
Media Library /wp-admin/upload.php | 1,436 ▲33 | 4.23 ▲0.02 | 100.35 ▼4.33 | 41.70 ▼1.00 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-restaurant-booking/includes/class-wprb-reservation-widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-restaurant-booking/includes/class-wprb-reservations.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/wp-restaurant-booking/includes/wprb-reservation-template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-restaurant-booking/admin/wprb-set-notifications-template.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-restaurant-booking/admin/wprb-set-bookables-template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-restaurant-booking/wp-restaurant-booking.php:49
- > PHP Notice
Undefined variable: admin in wp-content/plugins/wp-restaurant-booking/admin/wprb-set-tables-template.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-restaurant-booking/admin/wprb-set-closing-days-template.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-restaurant-booking/admin/class-wprb-admin.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function display_rooms_tables_elements() on null in wp-content/plugins/wp-restaurant-booking/admin/wprb-set-tables-template.php:15
- > 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-restaurant-booking/wp-restaurant-booking.php Passed 13 tests
Analyzing the main PHP file in "WP Restaurant Booking" version 1.1.9
75 characters long description:
A feature-rich and easy to use reservation system for bars and restaurants.
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
Success! There were no dangerous files found in this plugin44,617 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 6,002 | 6,527 | 23,920 |
SVG | 6 | 0 | 13 | 9,194 |
CSS | 40 | 722 | 295 | 4,762 |
PHP | 24 | 1,402 | 1,138 | 2,912 |
HTML | 3 | 466 | 5 | 1,941 |
Markdown | 6 | 174 | 0 | 603 |
Sass | 5 | 138 | 28 | 586 |
PO File | 1 | 184 | 258 | 418 |
JSON | 7 | 0 | 0 | 269 |
YAML | 1 | 3 | 4 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 47.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 48 | 34.78% |
▷ Public methods | 134 | 97.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.90% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
28 PNG files occupy 0.24MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/tzCheckbox/img/page_bg.png | 0.19KB | 0.26KB | 0.00% |
js/tooltipster/doc/images/browser-safari.png | 12.14KB | 4.50KB | ▼ 62.90% |
js/tooltipster/doc/js/jquery-ui-draggable/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
js/tooltipster/doc/images/pattern-navy.png | 116.28KB | 121.97KB | 0.00% |
js/tooltipster/doc/images/browser-opera.png | 4.48KB | 2.03KB | ▼ 54.61% |