Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.05ms] Passed 4 tests
A check of server-side resources used by Restaurant Menu / bulk order plugin for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.28 ▼5.82 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.43 ▲4.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.55 ▼2.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.60 ▼4.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.37 ▲4.78 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Restaurant Menu / bulk order plugin for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.67 ▲0.43 | 1.94 ▲0.13 | 36.40 ▼8.18 |
Dashboard /wp-admin | 2,204 ▲24 | 5.60 ▼0.13 | 95.86 ▼4.37 | 44.29 ▲1.42 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▲0.01 | 40.64 ▲1.78 | 36.19 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 24.04 ▲1.19 | 656.37 ▲62.35 | 48.17 ▼16.20 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▼0.04 | 96.80 ▼1.11 | 42.14 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/restaurant-menu-using-woocommerce/include/pisol.class.form.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/include/pisol_categories.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/front/view/product.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/pisol_restaurant_menu.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/front/view/child-cat-product-loop.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/front/view/button.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/include/pisol_products.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/single-product/product-sidedish-group.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/admin/pisol_admin.php
- > /wp-content/plugins/restaurant-menu-using-woocommerce/front/pisol_front.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant PISOL_RM_FREE_VERSION - assumed 'PISOL_RM_FREE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/restaurant-menu-using-woocommerce/admin/pisol_restaurant_menu_design.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-menu-using-woocommerce/sidedish/class-side-dish.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/restaurant-menu-using-woocommerce/include/banner-sample.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/restaurant-menu-using-woocommerce/front/pisol-design.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/restaurant-menu-using-woocommerce/single-product/single-product-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/restaurant-menu-using-woocommerce/admin/pisol_restaurant_menu_design.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/restaurant-menu-using-woocommerce/admin/pisol_restaurant_menu_food_type.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-menu-using-woocommerce/sidedish/class-side-dish-integrator.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/restaurant-menu-using-woocommerce/admin/pisol_restaurant_menu_speed.php:23
- > PHP Warning
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 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #2, #3, #4, #5, #6, #7 in restaurant-menu-using-woocommerce/assets to your readme.txt
restaurant-menu-using-woocommerce/pisol_restaurant_menu.php 85% from 13 tests
Analyzing the main PHP file in "Restaurant Menu / bulk order plugin for WooCommerce" version 6.2.24
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("restaurant-menu-using-woocommerce.php" instead of "pisol_restaurant_menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected16,243 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 2,247 | 27 | 10,475 |
PHP | 30 | 860 | 379 | 3,291 |
JavaScript | 9 | 260 | 226 | 1,250 |
SVG | 10 | 2 | 5 | 1,016 |
PO File | 2 | 66 | 74 | 211 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
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 | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 16 | 10.81% |
▷ Public methods | 148 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/background.png | 74.27KB | 26.29KB | ▼ 64.60% |