Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.43MB] [CPU: ▼1.66ms] Passed 4 tests
An overview of server-side resources used by WP Food ordering and Restaurant Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 47.25 ▼0.39 |
Dashboard /wp-admin | 3.81 ▲0.51 | 53.09 ▲3.02 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 54.17 ▲4.59 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 91.82 ▼13.00 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 40.11 ▲3.75 |
Help /wp-admin/edit.php?post_type=ex_food&page=exfd_helps | 3.74 | 35.70 |
/wp-admin/edit.php?post_type=ex_food&page=exfood_js_css_file_options | 4.11 | 41.70 |
Stores /wp-admin/edit.php?post_type=exfood_store | 3.78 | 41.18 |
Locations /wp-admin/edit-tags.php?taxonomy=exfood_loc&post_type=ex_food | 3.73 | 41.05 |
Orders /wp-admin/edit.php?post_type=exfood_order | 3.78 | 41.92 |
Settings /wp-admin/edit.php?post_type=ex_food&page=exfood_options | 3.96 | 49.43 |
Menus /wp-admin/edit-tags.php?taxonomy=exfood_cat&post_type=ex_food | 3.79 | 42.92 |
Food /wp-admin/edit.php?post_type=ex_food | 3.78 | 45.28 |
Add New Food /wp-admin/post-new.php?post_type=ex_food | 4.13 | 59.00 |
Shortcodes builder /wp-admin/edit.php?post_type=exfood_scbd | 3.78 | 43.99 |
Server storage [IO: ▲4.17MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 401 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_ex-widget |
Browser metrics Passed 4 tests
WP Food ordering and Restaurant Menu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,119 ▲358 | 13.49 ▼0.86 | 11.36 ▲9.52 | 44.79 ▼0.28 |
Dashboard /wp-admin | 2,280 ▲103 | 5.71 ▲0.00 | 87.18 ▼2.88 | 39.17 ▼8.90 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.08 ▲0.06 | 43.43 ▲4.27 | 36.68 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,596 ▲68 | 23.30 ▲0.26 | 663.34 ▼9.15 | 65.97 ▲10.42 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.29 ▲0.17 | 99.21 ▼9.41 | 43.49 ▼2.91 |
Help /wp-admin/edit.php?post_type=ex_food&page=exfd_helps | 1,180 | 2.13 | 26.02 | 72.68 |
/wp-admin/edit.php?post_type=ex_food&page=exfood_js_css_file_options | 920 | 2.16 | 30.23 | 24.48 |
Stores /wp-admin/edit.php?post_type=exfood_store | 1,160 | 2.01 | 35.13 | 31.21 |
Locations /wp-admin/edit-tags.php?taxonomy=exfood_loc&post_type=ex_food | 1,364 | 2.32 | 30.34 | 28.97 |
Orders /wp-admin/edit.php?post_type=exfood_order | 1,168 | 2.02 | 40.05 | 28.21 |
Settings /wp-admin/edit.php?post_type=ex_food&page=exfood_options | 2,269 | 4.07 | 84.71 | 28.00 |
Menus /wp-admin/edit-tags.php?taxonomy=exfood_cat&post_type=ex_food | 1,637 | 3.27 | 44.25 | 25.71 |
Food /wp-admin/edit.php?post_type=ex_food | 1,185 | 2.05 | 34.63 | 33.01 |
Add New Food /wp-admin/post-new.php?post_type=ex_food | 3,275 | 8.08 | 194.66 | 95.37 |
Shortcodes builder /wp-admin/edit.php?post_type=exfood_scbd | 1,168 | 2.00 | 34.64 | 32.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_ex-widget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=exfood_loc&post_type=ex_food
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-food/admin/exfd-help.php
- 61× 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 EX_WPFood_customlink() in wp-content/plugins/wp-food/templates/content-shortcodes/content-list-1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-food/admin/inc/cmb2/init.php:126
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-food/admin/inc/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/wp-food/admin/inc/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-food/admin/inc/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-food/inc/shortcodes/wp-food-mini-cart.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-food/inc/class-buildin-ordering-food.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-food/admin/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-food/admin/inc/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-food/admin/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-food/ex-food.php 85% from 13 tests
The main PHP file in "WP Food ordering and Restaurant Menu" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("wp-food.php" instead of "ex-food.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin61,451 lines of code in 247 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 81 | 2,291 | 6,405 | 12,092 |
CSS | 21 | 1,285 | 1,227 | 6,759 |
JavaScript | 12 | 1,208 | 592 | 4,104 |
XML | 3 | 22 | 48 | 3,021 |
SVG | 3 | 1 | 3 | 2,101 |
Markdown | 3 | 215 | 0 | 633 |
Sass | 2 | 27 | 5 | 260 |
LESS | 1 | 13 | 5 | 150 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 8 | 10.81% |
▷ Concrete classes | 66 | 89.19% |
▷ Final classes | 0 | 0.00% |
Methods | 565 | |
▷ Static methods | 87 | 15.40% |
▷ Public methods | 473 | 83.72% |
▷ Protected methods | 89 | 15.75% |
▷ Private methods | 3 | 0.53% |
Functions | 109 | |
▷ Named functions | 108 | 99.08% |
▷ Anonymous functions | 1 | 0.92% |
Constants | 15 | |
▷ Global constants | 7 | 46.67% |
▷ Class constants | 8 | 53.33% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icon-dropdow.png | 1.06KB | 0.20KB | ▼ 81.58% |
js/zoomico.png | 0.25KB | 0.25KB | 0.00% |
admin/inc/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
admin/inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/inc/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |