Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.14MB] [CPU: ▲3.60ms] Passed 4 tests
Server-side resources used by FW Food Menu - Responsive food menu with ordering & delivery solutions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.40 ▲0.95 | 44.25 ▲4.65 |
Dashboard /wp-admin | 4.51 ▲1.21 | 52.63 ▲0.68 |
Posts /wp-admin/edit.php | 4.56 ▲1.21 | 55.86 ▲12.72 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.21 | 92.90 ▼3.65 |
Media Library /wp-admin/upload.php | 4.43 ▲1.21 | 44.87 ▲15.07 |
Add-ons /wp-admin/admin.php?page=fwfm-addon | 4.87 | 226.87 |
Categories /wp-admin/admin.php?page=fwfm-category | 4.77 | 40.95 |
Badges /wp-admin/admin.php?page=fwfm-badges | 4.68 | 40.67 |
Settings /wp-admin/admin.php?page=fwfm-settings | 4.84 | 39.56 |
Orders /wp-admin/admin.php?page=fwfm-orders | 4.68 | 40.31 |
Translations /wp-admin/admin.php?page=fwfm-translation | 4.65 | 37.39 |
CSS Styles /wp-admin/admin.php?page=fwfm-css | 4.85 | 43.26 |
Meals /wp-admin/admin.php?page=fwfm-items | 4.78 | 42.82 |
Data Management /wp-admin/admin.php?page=fwfm-data | 4.74 | 38.77 |
Dashboard /wp-admin/admin.php?page=fwfm-menu | 5.02 | 195.66 |
Server storage [IO: ▲17.53MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 252 new files
Database: 14 new tables, 6 new options
New tables |
---|
wp_extensions |
wp_fwfoodmenu_menu_price |
wp_fwfoodmenu_order |
wp_fwfoodmenu_menu_image |
wp_fwfoodmenu_menu_badge |
wp_fwfoodmenu_order_statuschage |
wp_fwfoodmenu_menu |
wp_fwfoodmenu_cart |
wp_fwfoodmenu_menu_modificator |
wp_fwfoodmenu_order_items |
... |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
FW Food Menu - Responsive food menu with ordering & delivery solutions: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲150 | 13.15 ▼1.28 | 5.15 ▲3.19 | 42.37 ▼2.35 |
Dashboard /wp-admin | 2,251 ▲66 | 5.82 ▲0.95 | 107.87 ▼6.76 | 84.34 ▲40.91 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 1.97 ▼0.06 | 35.26 ▼1.88 | 32.46 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,566 ▲52 | 22.15 ▲4.63 | 787.69 ▲187.32 | 57.00 ▼2.09 |
Media Library /wp-admin/upload.php | 1,439 ▲51 | 4.17 ▼0.02 | 98.69 ▲5.33 | 71.41 ▲29.91 |
Add-ons /wp-admin/admin.php?page=fwfm-addon | 2,408 | 2.56 | 86.06 | 97.97 |
Categories /wp-admin/admin.php?page=fwfm-category | 2,882 | 3.07 | 90.83 | 50.46 |
Badges /wp-admin/admin.php?page=fwfm-badges | 2,333 | 2.65 | 75.78 | 54.67 |
Settings /wp-admin/admin.php?page=fwfm-settings | 4,166 | 4.51 | 169.47 | 72.30 |
Orders /wp-admin/admin.php?page=fwfm-orders | 2,097 | 2.44 | 64.25 | 41.40 |
Translations /wp-admin/admin.php?page=fwfm-translation | 3,734 | 3.08 | 92.39 | 91.65 |
CSS Styles /wp-admin/admin.php?page=fwfm-css | 7,027 | 9.20 | 250.57 | 159.88 |
Meals /wp-admin/admin.php?page=fwfm-items | 2,876 | 3.07 | 87.12 | 46.87 |
Data Management /wp-admin/admin.php?page=fwfm-data | 2,617 | 2.76 | 85.63 | 62.59 |
Dashboard /wp-admin/admin.php?page=fwfm-menu | 2,793 | 2.53 | 81.64 | 104.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 14 tables in the database
- wp_fwfoodmenu_order
- wp_fwfoodmenu_menu_badge
- wp_fwfoodmenu_menu_price
- wp_fwfoodmenu_cart
- wp_fwfoodmenu_menu_modificator_group
- wp_extensions
- wp_fwfoodmenu_category
- wp_fwfoodmenu_menu_modificator
- wp_fwfoodmenu_menu_image
- wp_fwfoodmenu_order_items
- ...
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fwfm-menu
- > Notice in wp-content/plugins/fw-food-menu/admin/helpers/fwfcategory.php+220
Undefined offset: 0
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fwfm-translation
- > Notice in wp-content/plugins/fw-food-menu/admin/views/translation/tmpl/default.php+94
Trying to get property 'tag' of non-object
- > GET request to /wp-admin/admin.php?page=fwfm-translation
- > Notice in wp-content/plugins/fw-food-menu/admin/views/translation/tmpl/default.php+94
Undefined index: en-US
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 fix the following items
- 88× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/fw-food-menu/admin/views/category/view.json.php
- > /wp-content/plugins/fw-food-menu/site/models/menu.php
- > /wp-content/plugins/fw-food-menu/admin/layouts/utilites/quick_categories.php
- > /wp-content/plugins/fw-food-menu/admin/models/items.php
- > /wp-content/plugins/fw-food-menu/admin/views/items/view.json.php
- > /wp-content/plugins/fw-food-menu/admin/tables/order.php
- > /wp-content/plugins/fw-food-menu/site/layouts/common/menu/subcategoryitem.php
- > /wp-content/plugins/fw-food-menu/admin/views/category/tmpl/edit.php
- > /wp-content/plugins/fw-food-menu/site/helpers/fwfoodmenufields.php
- > /wp-content/plugins/fw-food-menu/admin/helpers/fwview.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_sql() in wp-content/plugins/fw-food-menu/helpers/connector.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fw-food-menu/fw-food-menu.php:13
- > PHP Warning
Use of undefined constant FWFM_DIR - assumed 'FWFM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/fw-food-menu/helpers/connector.php on line 3202
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=fwfm-settings
- > Console-api (warning) in unknown
https://maps.google.com/maps/api/js?key&ver=6.3.1 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
- > GET request to /wp-admin/admin.php?page=fwfm-settings
- > Console-api (warning) in unknown
https://maps.google.com/maps/api/js?key&ver=6.3.1 139:373 "google.maps.event.addDomListener() is deprecated, use the standard\naddEventListener() method instead:\nhttps://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener\nThe feature will continue to work and there is no plan to decommission\nit."
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: food ordering, cafe menu, food menu, food delivery, restaurant menu
fw-food-menu/fw-food-menu.php Passed 13 tests
"FW Food Menu - Responsive food menu with ordering & delivery solutions" version 4.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
16 characters long description:
Food Menu plugin
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
No dangerous file extensions were detected86,318 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 20 | 52,246 |
PHP | 100 | 995 | 875 | 16,124 |
CSS | 13 | 1,465 | 212 | 14,137 |
JavaScript | 19 | 358 | 1,086 | 2,453 |
INI | 6 | 42 | 0 | 1,168 |
XML | 5 | 1 | 0 | 151 |
SQL | 1 | 1 | 0 | 37 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 244.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 108 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 108 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 560 | |
▷ Static methods | 207 | 36.96% |
▷ Public methods | 558 | 99.64% |
▷ Protected methods | 2 | 0.36% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 30 | |
▷ Global constants | 30 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/utensils.png | 2.53KB | 0.96KB | ▼ 62.31% |
media/jui/img/alpha.png | 0.43KB | 1.68KB | 0.00% |
admin/assets/images/icon_fw_food_menu_200.png | 24.57KB | 10.08KB | ▼ 58.99% |
media/jui/img/glyphicons-halflings.png | 12.30KB | 10.35KB | ▼ 15.88% |
site/assets/images/saturation.png | 3.93KB | 5.13KB | 0.00% |