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.14MB] [CPU: ▲0.71ms] Passed 4 tests
This is a short check of server-side resources used by Food Menu - Restaurant Menu & Online Ordering for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.43 ▲0.96 | 43.24 ▲2.72 |
Dashboard /wp-admin | 4.57 ▲1.22 | 55.34 ▼11.89 |
Posts /wp-admin/edit.php | 4.62 ▲1.26 | 59.65 ▲9.80 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 96.25 ▲2.22 |
Media Library /wp-admin/upload.php | 4.43 ▲1.19 | 47.69 ▲12.98 |
Get Help /wp-admin/edit.php?post_type=food-menu&page=rtfm_get_help | 4.42 | 52.33 |
Settings /wp-admin/edit.php?post_type=food-menu&page=food_menu_settings | 5.04 | 58.10 |
Add Food /wp-admin/post-new.php?post_type=food-menu | 4.75 | 66.77 |
Shortcode Generator /wp-admin/edit.php?post_type=fmsc | 4.56 | 50.29 |
All Foods /wp-admin/edit.php?post_type=food-menu | 4.54 | 45.22 |
Categories /wp-admin/edit-tags.php?taxonomy=food-menu-cat&post_type=food-menu | 4.55 | 43.97 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 132 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
rtfm_plugin_activation_time |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_widget_fmp |
widget_recent-posts |
tlp-food-menu-installed-version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Food Menu - Restaurant Menu & Online Ordering for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲132 | 14.67 ▲0.32 | 1.60 ▼0.05 | 37.64 ▼6.82 |
Dashboard /wp-admin | 2,276 ▲96 | 5.76 ▲0.08 | 93.52 ▼5.72 | 90.46 ▲43.89 |
Posts /wp-admin/edit.php | 2,187 ▲87 | 2.13 ▲0.13 | 40.24 ▼1.37 | 36.23 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6,352 ▲4,826 | 21.29 ▼1.85 | 962.74 ▲346.03 | 197.74 ▲132.11 |
Media Library /wp-admin/upload.php | 1,481 ▲87 | 4.16 ▼0.04 | 107.31 ▲10.76 | 90.58 ▲49.48 |
Get Help /wp-admin/edit.php?post_type=food-menu&page=rtfm_get_help | 1,702 | 9.20 | 319.69 | 93.94 |
Settings /wp-admin/edit.php?post_type=food-menu&page=food_menu_settings | 1,937 | 2.61 | 58.13 | 51.25 |
Add Food /wp-admin/post-new.php?post_type=food-menu | 2,547 | 8.16 | 200.26 | 191.86 |
Shortcode Generator /wp-admin/edit.php?post_type=fmsc | 1,467 | 3.77 | 59.22 | 103.13 |
All Foods /wp-admin/edit.php?post_type=food-menu | 1,224 | 2.53 | 38.90 | 36.67 |
Categories /wp-admin/edit-tags.php?taxonomy=food-menu-cat&post_type=food-menu | 1,358 | 2.27 | 28.80 | 39.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- tlp-food-menu-installed-version
- widget_recent-comments
- widget_theysaidso_widget
- widget_widget_fmp
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- rtfm_plugin_activation_time
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 56× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/tlp-food-menu/app/Models/Fields.php
- > /wp-content/plugins/tlp-food-menu/app/Controllers/Admin/Upgrade.php
- > /wp-content/plugins/tlp-food-menu/templates/archive-food-menu-cat.php
- > /wp-content/plugins/tlp-food-menu/app/Controllers/Admin/Metabox/PostMeta.php
- > /wp-content/plugins/tlp-food-menu/app/Controllers/Admin/ShortcodeButton.php
- > /wp-content/plugins/tlp-food-menu/app/Controllers/Admin/AdminColumns.php
- > /wp-content/plugins/tlp-food-menu/app/Widgets/Elementor/Shortcodes.php
- > /wp-content/plugins/tlp-food-menu/app/Helpers/Fns.php
- > /wp-content/plugins/tlp-food-menu/app/Models/QueryArgs.php
- > /wp-content/plugins/tlp-food-menu/app/Controllers/Admin/Ajax/Settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
tlp-food-menu/tlp-food-menu.php Passed 13 tests
The main file in "Food Menu - Restaurant Menu & Online Ordering for WooCommerce" v. 5.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
127 characters long description:
A Simple Food & Restaurant Menu Display Plugin for Restaurant, Cafes, Fast Food, Coffee House with WooCommerce Online Ordering.
Code Analysis 97% from 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 detected10,008 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 1,957 | 2,598 | 9,924 |
JavaScript | 7 | 21 | 14 | 68 |
SVG | 7 | 0 | 0 | 7 |
JSON | 1 | 0 | 0 | 5 |
CSS | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 31.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 317.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 43 | |
▷ Abstract classes | 1 | 2.33% |
▷ Concrete classes | 42 | 97.67% |
▷ Final classes | 1 | 2.38% |
Methods | 339 | |
▷ Static methods | 131 | 38.64% |
▷ Public methods | 248 | 73.16% |
▷ Protected methods | 33 | 9.73% |
▷ Private methods | 58 | 17.11% |
Functions | 12 | |
▷ Named functions | 3 | 25.00% |
▷ Anonymous functions | 9 | 75.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
43 PNG files occupy 0.40MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layouts/list-layout-4.png | 1.25KB | 1.25KB | 0.00% |
assets/images/admin/client2.png | 32.73KB | 11.66KB | ▼ 64.37% |
assets/images/layouts/grid-layout-3.png | 1.35KB | 1.35KB | 0.00% |
assets/images/food-cart.png | 103.38KB | 34.33KB | ▼ 66.80% |
assets/images/layouts/isotope-1.png | 1.01KB | 1.01KB | 0.00% |