Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/advanced-online-ordering-and-delivery-platform/includes/client/class-bnd-flex-order-delivery-clover-client.php+118
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.38MB] [CPU: ▼47.90ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Online Ordering and Delivery Platform
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.61 ▼0.85 | 9.79 ▼31.36 |
Dashboard /wp-admin | 2.63 ▼0.67 | 9.82 ▼40.70 |
Posts /wp-admin/edit.php | 2.63 ▼0.73 | 8.79 ▼40.29 |
Add New Post /wp-admin/post-new.php | 2.63 ▼3.26 | 8.99 ▼79.24 |
Media Library /wp-admin/upload.php | 2.63 ▼0.60 | 7.46 ▼24.87 |
Server storage [IO: ▲13.15MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 448 new files
Database: 31 new tables, 8 new options
New tables |
---|
wp_bnd_customer_profile |
wp_bnd_tax_rate |
wp_bnd_item |
wp_bnd_item_category |
wp_bnd_order_line_item |
wp_bnd_category |
wp_bnd_tag_item |
wp_bnd_sequence |
wp_bnd_tag |
wp_bnd_attribute |
... |
New WordPress options |
---|
bnd_settings |
can_compress_scripts |
bnd_use_php_sessions |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Online Ordering and Delivery Platform
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,191 ▲430 | 19.91 ▲5.75 | 23.35 ▲21.31 | 42.56 ▲1.08 |
Dashboard /wp-admin | 2,421 ▲244 | 7.74 ▲2.06 | 154.98 ▲69.18 | 108.18 ▲69.67 |
Posts /wp-admin/edit.php | 2,354 ▲251 | 5.37 ▲3.41 | 71.41 ▲35.10 | 72.00 ▲29.46 |
Add New Post /wp-admin/post-new.php | 1,619 ▲93 | 19.61 ▼3.59 | 678.81 ▼48.13 | 189.44 ▲130.44 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 6.46 ▲2.32 | 104.75 ▼2.37 | 89.60 ▲46.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/advanced-online-ordering-and-delivery-platform/includes/client/class-bnd-flex-order-delivery-clover-client.php+118
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- bnd_use_php_sessions
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 26× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/faq.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/templates/flexmenu/edit_modifier.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/order-payment/read-paging.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/paging.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/training.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/login/admin-login-license.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/discount-coupon/read-paging.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/order-type/read.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/category/read-paging.php
- > /wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/discount-coupon/create.php
- 237× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include_once(BUYNOWDEPOT_PLUGIN_DIR/admin/templates/paging.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/category/read-paging.php on line 113
- > PHP Warning
include_once(): Failed opening 'BUYNOWDEPOT_PLUGIN_DIR/admin/templates/paging.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/discount-coupon/read-paging.php on line 104
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/read-categories.php on line 63
- > PHP Notice
Undefined variable: response in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/order-payment/read-paging.php on line 65
- > PHP Notice
Undefined variable: keywords in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/paging.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/modifier-group/read-paging.php on line 79
- > PHP Warning
Use of undefined constant BUYNOWDEPOT_PLUGIN_DIR - assumed 'BUYNOWDEPOT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/discount-coupon/read-paging.php on line 104
- > PHP Fatal error
Uncaught Error: Class 'Bnd_Flex_Order_Delivery_API_Base' not found in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/api/class-bnd-flex-order-delivery-api-discount-coupon.php:12
- > PHP Notice
Undefined variable: response in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/modifier-group/read-modal.php on line 34
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-online-ordering-and-delivery-platform/admin/templates/category/read-modal.php on line 35
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: comments, spam
advanced-online-ordering-and-delivery-platform/bnd-flex-order-delivery.php 85% from 13 tests
The primary PHP file in "Advanced Online Ordering and Delivery Platform" version 2.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-online-ordering-and-delivery-platform.php" instead of "bnd-flex-order-delivery.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
Success! There were no dangerous files found in this plugin85,496 lines of code in 335 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 162 | 4,964 | 5,386 | 34,246 |
CSS | 27 | 3,878 | 807 | 19,351 |
PHP | 132 | 1,434 | 3,742 | 16,772 |
SVG | 8 | 1 | 12 | 14,686 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
Markdown | 2 | 11 | 0 | 19 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 58 | 100.00% |
▷ Final classes | 1 | 1.72% |
Methods | 483 | |
▷ Static methods | 17 | 3.52% |
▷ Public methods | 455 | 94.20% |
▷ Protected methods | 7 | 1.45% |
▷ Private methods | 21 | 4.35% |
Functions | 66 | |
▷ Named functions | 65 | 98.48% |
▷ Anonymous functions | 1 | 1.52% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
35 PNG files occupy 0.40MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/flexmenu/img/p6.png | 1.82KB | 0.08KB | ▼ 95.49% |
admin/templates/car1.png | 1.10KB | 1.05KB | ▼ 4.09% |
templates/flexmenu/img/fav.png | 0.86KB | 0.82KB | ▼ 5.44% |
templates/flexmenu/img/halal.png | 3.53KB | 2.29KB | ▼ 35.12% |
admin/assets/img/launcher.png | 0.86KB | 0.82KB | ▼ 5.44% |