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
Installer ran successfully
Server metrics [RAM: ▲1.10MB] [CPU: ▲4.74ms] Passed 4 tests
Server-side resources used by RestroPress - Online Food Ordering System
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.83 | 41.80 ▲1.26 |
Dashboard /wp-admin | 4.55 ▲1.21 | 82.52 ▲19.36 |
Posts /wp-admin/edit.php | 4.61 ▲1.25 | 58.13 ▲15.90 |
Add New Post /wp-admin/post-new.php | 7.05 ▲1.17 | 86.20 ▼5.93 |
Media Library /wp-admin/upload.php | 4.44 ▲1.21 | 40.91 ▲7.74 |
Extensions /wp-admin/admin.php?page=rpress-extensions | 4.87 | 46.77 |
All Food Items /wp-admin/edit.php?post_type=fooditem | 4.58 | 60.02 |
Tools /wp-admin/admin.php?page=rpress-tools | 4.45 | 40.40 |
Settings /wp-admin/admin.php?page=rpress-settings | 4.59 | 58.76 |
Categories /wp-admin/edit-tags.php?taxonomy=food-category&post_type=fooditem | 4.51 | 47.80 |
Orders /wp-admin/admin.php?page=rpress-payment-history | 5.07 | 49.58 |
Discount Codes /wp-admin/admin.php?page=rpress-discounts | 4.56 | 45.02 |
Addons /wp-admin/edit-tags.php?taxonomy=addon_category&post_type=fooditem | 4.48 | 46.06 |
Reports /wp-admin/admin.php?page=rpress-reports | 4.43 | 45.27 |
Customers /wp-admin/admin.php?page=rpress-customers | 4.46 | 43.86 |
Server storage [IO: ▲7.39MB] [DB: ▲0.11MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 394 new files
Database: 2 new tables, 13 new options
New tables |
---|
wp_rpress_customermeta |
wp_rpress_customers |
New WordPress options |
---|
_rpress_table_check |
widget_recent-posts |
wp_rpress_customermeta_db_version |
can_compress_scripts |
rpress_version |
theysaidso_admin_options |
rpress_settings |
rpress_use_php_sessions |
wp_rpress_customers_db_version |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by RestroPress - Online Food Ordering System
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,670 ▲883 | 16.25 ▲1.96 | 6.90 ▲4.91 | 37.14 ▼6.95 |
Dashboard /wp-admin | 2,886 ▲715 | 7.53 ▲1.90 | 152.54 ▲57.50 | 72.54 ▲26.35 |
Posts /wp-admin/edit.php | 2,617 ▲517 | 4.07 ▲2.13 | 69.20 ▲34.41 | 36.64 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,691 ▲165 | 22.92 ▼0.38 | 754.20 ▲97.86 | 36.89 ▼10.82 |
Media Library /wp-admin/upload.php | 1,833 ▲436 | 5.52 ▲1.33 | 100.50 ▲1.61 | 40.32 ▼4.26 |
Extensions /wp-admin/admin.php?page=rpress-extensions | 3,619 | 4.08 | 76.19 | 105.57 |
All Food Items /wp-admin/edit.php?post_type=fooditem | 1,676 | 4.14 | 71.17 | 29.51 |
Tools /wp-admin/admin.php?page=rpress-tools | 1,506 | 4.20 | 65.42 | 27.37 |
Settings /wp-admin/admin.php?page=rpress-settings | 3,358 | 4.59 | 80.86 | 38.08 |
Categories /wp-admin/edit-tags.php?taxonomy=food-category&post_type=fooditem | 1,827 | 4.21 | 63.62 | 30.69 |
Orders /wp-admin/admin.php?page=rpress-payment-history | 1,712 | 4.03 | 66.86 | 24.42 |
Discount Codes /wp-admin/admin.php?page=rpress-discounts | 1,583 | 4.01 | 59.44 | 32.12 |
Addons /wp-admin/edit-tags.php?taxonomy=addon_category&post_type=fooditem | 1,808 | 4.11 | 61.92 | 29.37 |
Reports /wp-admin/admin.php?page=rpress-reports | 2,295 | 4.45 | 78.33 | 33.31 |
Customers /wp-admin/admin.php?page=rpress-customers | 1,545 | 4.14 | 57.89 | 27.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_rpress_customers
- wp_rpress_customermeta
- This plugin did not uninstall successfully, leaving 13 options in the database
- rpress_earnings_total
- rpress_settings
- widget_recent-comments
- rpress_version
- can_compress_scripts
- wp_rpress_customermeta_db_version
- db_upgraded
- theysaidso_admin_options
- rpress_use_php_sessions
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/restropress/templates/rpress-popup.php
- 33× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/restropress/templates/shortcode-register.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/restropress/templates/rpress-show-order-details.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restropress/includes/emails/email-tags.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/restropress/templates/rpress-edit-product.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/restropress/templates/fooditem/category.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/restropress/templates/email-foodlist.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/restropress/templates/account-pending.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/restropress/templates/payment-processing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/restropress/templates/checkout_cart.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/restropress/templates/receipt/print-receipt-content.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in restropress/assets to your readme.txt
restropress/restro-press.php 77% from 13 tests
The primary PHP file in "RestroPress - Online Food Ordering System" version 2.9.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("restropress.php" instead of "restro-press.php")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected90,127 lines of code in 298 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 214 | 14,858 | 22,694 | 48,688 |
JavaScript | 44 | 2,505 | 1,040 | 19,559 |
CSS | 22 | 1,275 | 535 | 16,164 |
PO File | 1 | 1,731 | 2,299 | 5,425 |
SVG | 16 | 0 | 3 | 290 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 44.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 306.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 90.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 1 | 1.09% |
▷ Concrete classes | 91 | 98.91% |
▷ Final classes | 3 | 3.30% |
Methods | 1,304 | |
▷ Static methods | 97 | 7.44% |
▷ Public methods | 1,030 | 78.99% |
▷ Protected methods | 50 | 3.83% |
▷ Private methods | 224 | 17.18% |
Functions | 974 | |
▷ Named functions | 974 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 12 | 63.16% |
▷ Class constants | 7 | 36.84% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/non_veg.png | 3.62KB | 1.28KB | ▼ 64.79% |
assets/images/checkbox.png | 0.26KB | 0.20KB | ▼ 22.85% |
assets/images/tick-order.png | 1.99KB | 1.24KB | ▼ 37.71% |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/icons/mastercard.png | 1.22KB | 1.24KB | 0.00% |