Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.13MB] [CPU: ▲3.26ms] 75% from 4 tests
An overview of server-side resources used by Restaurant Menu and Food Ordering
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,498.68ms on /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.93 | 42.53 ▼0.83 |
Dashboard /wp-admin | 4.51 ▲1.21 | 53.42 ▲6.74 |
Posts /wp-admin/edit.php | 4.55 ▲1.20 | 55.12 ▲7.11 |
Add New Post /wp-admin/post-new.php | 7.13 ▲1.24 | 92.83 ▼0.00 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 50.64 ▲17.61 |
Extensions /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-extensions | 4.64 | 1,498.68 |
Categories /wp-admin/edit-tags.php?taxonomy=mp_menu_category&post_type=mp_menu_item | 4.51 | 51.54 |
Add New /wp-admin/post-new.php?post_type=mp_menu_item | 4.66 | 63.07 |
Orders 0 /wp-admin/edit.php?post_type=mprm_order | 4.51 | 48.63 |
Ingredients /wp-admin/edit-tags.php?taxonomy=mp_ingredient&post_type=mp_menu_item | 4.42 | 44.92 |
Settings /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-settings | 4.52 | 51.33 |
Customers /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-customers | 4.44 | 45.83 |
Import / Export /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-import | 4.45 | 43.57 |
Tags /wp-admin/edit-tags.php?taxonomy=mp_menu_tag&post_type=mp_menu_item | 4.42 | 44.15 |
Menu Items /wp-admin/edit.php?post_type=mp_menu_item | 4.51 | 49.32 |
Server storage [IO: ▲3.01MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 283 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_mprm_customer |
New WordPress options |
---|
widget_mprm_menu_item |
widget_mprm_category |
theysaidso_admin_options |
can_compress_scripts |
widget_mprm_cart_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
mprm_db_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Restaurant Menu and Food Ordering
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 14.01 ▼0.57 | 5.33 ▲3.40 | 39.22 ▼9.92 |
Dashboard /wp-admin | 2,266 ▲78 | 5.87 ▲0.93 | 105.88 ▼3.01 | 71.69 ▲21.87 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.01 ▲0.03 | 33.93 ▼6.42 | 33.36 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,728 ▲193 | 21.13 ▼2.14 | 785.82 ▲107.42 | 36.54 ▼21.56 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.22 ▲0.04 | 105.27 ▲1.52 | 44.26 ▲0.30 |
Extensions /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-extensions | 887 | 2.02 | 27.90 | 33.17 |
Categories /wp-admin/edit-tags.php?taxonomy=mp_menu_category&post_type=mp_menu_item | 1,803 | 3.19 | 54.71 | 82.03 |
Add New /wp-admin/post-new.php?post_type=mp_menu_item | 3,217 | 7.65 | 188.28 | 137.39 |
Orders 0 /wp-admin/edit.php?post_type=mprm_order | 1,247 | 2.01 | 32.87 | 32.99 |
Ingredients /wp-admin/edit-tags.php?taxonomy=mp_ingredient&post_type=mp_menu_item | 1,297 | 2.14 | 27.10 | 30.97 |
Settings /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-settings | 1,264 | 3.46 | 46.18 | 64.56 |
Customers /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-customers | 1,101 | 1.71 | 24.95 | 27.86 |
Import / Export /wp-admin/edit.php?post_type=mp_menu_item&page=mprm-import | 857 | 2.06 | 27.06 | 31.01 |
Tags /wp-admin/edit-tags.php?taxonomy=mp_menu_tag&post_type=mp_menu_item | 1,300 | 2.15 | 25.74 | 32.15 |
Menu Items /wp-admin/edit.php?post_type=mp_menu_item | 1,204 | 2.02 | 32.85 | 29.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_mprm_customer
- Zombie WordPress options detected upon uninstall: 13 options
- mprm_settings
- widget_mprm_category
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_mprm_menu_item
- theysaidso_admin_options
- mprm_capabilities_version
- widget_recent-posts
- widget_mprm_cart_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mp-restaurant-menu/templates/emails/menu-item-list.php
- > /wp-content/plugins/mp-restaurant-menu/templates/emails/footer.php
- > /wp-content/plugins/mp-restaurant-menu/templates/emails/body.php
- > /wp-content/plugins/mp-restaurant-menu/admin/import/footer.php
- > /wp-content/plugins/mp-restaurant-menu/templates/emails/body-default.php
- 188× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\Core' not found in wp-content/plugins/mp-restaurant-menu/classes/class-controller.php:7
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\Shortcodes' not found in wp-content/plugins/mp-restaurant-menu/classes/shortcodes/class-shortcode-item.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mp-restaurant-menu/admin/metaboxes/price.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mp-restaurant-menu/templates/common/notice.php:3
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\Model' not found in wp-content/plugins/mp-restaurant-menu/classes/models/settings/class-settings-emails.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mp-restaurant-menu/templates/shop/default_cc_address_fields.php:2
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\Core' not found in wp-content/plugins/mp-restaurant-menu/classes/class-model.php:7
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\Core' not found in wp-content/plugins/mp-restaurant-menu/classes/class-module.php:9
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/mp-restaurant-menu/templates/common/menu-item-image.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'mp_restaurant_menu\\classes\\models\\parents\\Parent_query' not found in wp-content/plugins/mp-restaurant-menu/classes/models/shop/class-payments.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
- Screenshots: Please describe screenshot #6 in mp-restaurant-menu/assets to your readme.txt
mp-restaurant-menu/restaurant-menu.php 85% from 13 tests
The main PHP file in "Restaurant Menu and Food Ordering" ver. 2.4.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("mp-restaurant-menu.php" instead of "restaurant-menu.php")
- Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)
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
Everything looks great! No dangerous files found in this plugin41,928 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 206 | 3,632 | 8,210 | 23,968 |
JavaScript | 14 | 1,782 | 1,267 | 7,786 |
CSS | 17 | 527 | 102 | 5,391 |
LESS | 12 | 204 | 32 | 2,544 |
PO File | 1 | 779 | 1,051 | 1,934 |
SVG | 2 | 0 | 0 | 269 |
XML | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 79 | 100.00% |
▷ Final classes | 2 | 2.53% |
Methods | 999 | |
▷ Static methods | 102 | 10.21% |
▷ Public methods | 922 | 92.29% |
▷ Protected methods | 11 | 1.10% |
▷ Private methods | 66 | 6.61% |
Functions | 300 | |
▷ Named functions | 299 | 99.67% |
▷ Anonymous functions | 1 | 0.33% |
Constants | 23 | |
▷ Global constants | 21 | 91.30% |
▷ Class constants | 2 | 8.70% |
▷ Public constants | 2 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/img/shortcode-icon.png | 0.33KB | 0.40KB | 0.00% |
media/img/icons/iphone.png | 0.63KB | 0.70KB | 0.00% |
media/img/close-icon.png | 0.28KB | 0.29KB | 0.00% |
media/css/lib/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
media/img/icons/googlecheckout.png | 1.23KB | 1.31KB | 0.00% |