Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▲8.54ms] Passed 4 tests
Analyzing server-side resources used by WPCafe - Restaurant Menu, Online Ordering for WooCommerce, Pickup / Delivery and Table Reservation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲0.99 | 53.36 ▲14.31 |
Dashboard /wp-admin | 4.59 ▲1.25 | 65.02 ▲2.90 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 60.83 ▲11.87 |
Add New Post /wp-admin/post-new.php | 7.24 ▲1.35 | 94.80 ▲6.32 |
Media Library /wp-admin/upload.php | 4.49 ▲1.26 | 50.38 ▲13.06 |
Reservation List /wp-admin/edit.php?post_type=wpc_reservation | 4.63 | 54.90 |
Dashboard /wp-admin/admin.php?page=cafe_menu | 4.60 | 49.62 |
Settings /wp-admin/admin.php?page=cafe_settings | 5.15 | 55.62 |
Available Shortcodes /wp-admin/admin.php?page=wpc_shortcode | 4.75 | 46.81 |
Get Help /wp-admin/admin.php?page=wpcafe_get_help | 4.51 | 47.40 |
Tools /wp-admin/admin.php?page=wpc_tools | 4.69 | 44.60 |
Server storage [IO: ▲2.73MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 128 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
wpcafe_convert_date_time_format_from_wp |
widget_theysaidso_widget |
wp-cafe__banner_last_check |
wpc_format_booking_date |
wp-cafe__banner_data |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPCafe - Restaurant Menu, Online Ordering for WooCommerce, Pickup / Delivery and Table Reservation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,038 ▲251 | 13.87 ▼0.39 | 17.77 ▲15.95 | 41.90 ▼2.76 |
Dashboard /wp-admin | 2,289 ▲118 | 5.62 ▼0.03 | 99.05 ▼3.37 | 75.65 ▲31.82 |
Posts /wp-admin/edit.php | 2,252 ▲152 | 3.10 ▲1.16 | 51.75 ▲16.49 | 51.73 ▲16.43 |
Add New Post /wp-admin/post-new.php | 6,309 ▲4,783 | 26.87 ▲4.13 | 1,020.61 ▲351.50 | 40.49 ▼12.85 |
Media Library /wp-admin/upload.php | 1,491 ▲94 | 4.19 ▼0.03 | 99.92 ▼14.44 | 76.52 ▲28.50 |
Reservation List /wp-admin/edit.php?post_type=wpc_reservation | 1,313 | 3.21 | 44.52 | 69.18 |
Dashboard /wp-admin/admin.php?page=cafe_menu | 1,423 | 3.68 | 80.79 | 44.81 |
Settings /wp-admin/admin.php?page=cafe_settings | 4,797 | 11.19 | 300.80 | 66.51 |
Available Shortcodes /wp-admin/admin.php?page=wpc_shortcode | 2,037 | 2.88 | 40.20 | 39.12 |
Get Help /wp-admin/admin.php?page=wpcafe_get_help | 1,061 | 2.82 | 34.44 | 34.23 |
Tools /wp-admin/admin.php?page=wpc_tools | 1,115 | 1.82 | 27.84 | 43.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 10 options in the database
- wp-cafe__banner_data
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- wpcafe_convert_date_time_format_from_wp
- widget_recent-posts
- wp-cafe__banner_last_check
- wpc_format_booking_date
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-cafe/core/shortcodes/views/reservation/reservation-detials.php
- 60× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-cafe/core/settings/part/app-banner.php:2
- > PHP Fatal error
Uncaught Error: Class 'Wpcafe' not found in wp-content/plugins/wp-cafe/core/settings/layout/header.php:5
- > PHP Notice
Undefined variable: show_thumbnail in wp-content/plugins/wp-cafe/widgets/wpc-food-menu-tab/style/style-1.php on line 4
- > PHP Notice
Undefined variable: show_thumbnail in wp-content/plugins/wp-cafe/widgets/wpc-food-menu-tab/style/style-1.php on line 4
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wp-cafe/core/shortcodes/views/food-menu/food-list.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-cafe/core/shortcodes/views/food-menu/food-list.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-cafe/core/shortcodes/views/food-menu/food-list.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-cafe/core/shortcodes/views/food-menu/location-search.php:4
- > PHP Fatal error
Uncaught Error: Class 'Wpcafe' not found in wp-content/plugins/wp-cafe/core/shortcodes/views/reservation/form-settings.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-cafe/core/settings/part/languages.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=cafe_settings
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=cafe_settings 1125 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=cafe_settings
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=cafe_settings 1134 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: multivendor, restaurant, food menu, food ordering
wp-cafe/wpcafe.php 85% from 13 tests
The primary PHP file in "WPCafe - Restaurant Menu, Online Ordering for WooCommerce, Pickup / Delivery and Table Reservation" version 2.2.19 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-cafe.php" instead of "wpcafe.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected49,285 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 3,195 | 215 | 24,341 |
PHP | 65 | 2,115 | 1,457 | 12,448 |
Sass | 7 | 803 | 76 | 9,443 |
JavaScript | 17 | 648 | 438 | 2,976 |
SVG | 8 | 0 | 1 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 32.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 37 | |
▷ Abstract classes | 3 | 8.11% |
▷ Concrete classes | 34 | 91.89% |
▷ Final classes | 2 | 5.88% |
Methods | 334 | |
▷ Static methods | 76 | 22.75% |
▷ Public methods | 300 | 89.82% |
▷ Protected methods | 24 | 7.19% |
▷ Private methods | 10 | 2.99% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.31MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/curve_left.png | 0.22KB | 0.21KB | ▼ 3.52% |
utils/pro-awareness/assets/community.png | 5.51KB | 2.64KB | ▼ 52.03% |
utils/pro-awareness/assets/support.png | 4.80KB | 2.68KB | ▼ 44.22% |
assets/images/reservation_image.png | 290.11KB | 120.59KB | ▼ 58.43% |
assets/images/curve_right.png | 0.22KB | 0.21KB | ▼ 6.96% |