Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.96ms] Passed 4 tests
A check of server-side resources used by FoodBook Lite - Online Food Ordering System
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.84 ▼0.73 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.28 ▼14.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.79 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.66 ▼28.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.32 ▲1.65 |
Server storage [IO: ▲8.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 175 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
foodbooklite_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by FoodBook Lite - Online Food Ordering System
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲71 | 13.28 ▼1.39 | 1.97 ▼0.14 | 42.87 ▲1.00 |
Dashboard /wp-admin | 2,217 ▲29 | 5.83 ▼0.05 | 106.21 ▲4.39 | 39.85 ▼3.85 |
Posts /wp-admin/edit.php | 2,106 ▲20 | 2.05 ▼0.02 | 39.86 ▲0.59 | 38.35 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.25 ▲4.83 | 674.31 ▲61.97 | 53.87 ▲1.07 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.21 ▼0.13 | 94.37 ▼1.49 | 40.35 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/foodbook-light-online-food-ordering-system/view/template-modal-alert.php
- > /wp-content/plugins/foodbook-light-online-food-ordering-system/view/template-modal-checkout-hold.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function FoodBookLite\\add_action() in wp-content/plugins/foodbook-light-online-food-ordering-system/admin/admin.php:20
- > PHP Warning
require_once(FOODBOOKLITE_DIR_INChelper-functions.php): failed to open stream: No such file or directory in wp-content/plugins/foodbook-light-online-food-ordering-system/foodbook-init.php on line 14
- > PHP Warning
Use of undefined constant FOODBOOKLITE_DIR_INC - assumed 'FOODBOOKLITE_DIR_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/foodbook-light-online-food-ordering-system/foodbooklite-init.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'FOODBOOKLITE_DIR_INChelper-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/foodbook-light-online-food-ordering-system/foodbook-init.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/foodbook-light-online-food-ordering-system/view/template-modal-billing-summary.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function FoodBookLite\\add_action() in wp-content/plugins/foodbook-light-online-food-ordering-system/admin/inc/class-admin-menu.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/foodbook-light-online-food-ordering-system/view/template-modal-steps.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function FoodBookLite\\add_shortcode() in wp-content/plugins/foodbook-light-online-food-ordering-system/inc/class-hooks.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function FoodBookLite\\add_action() in wp-content/plugins/foodbook-light-online-food-ordering-system/inc/class-products.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function FoodBookLite\\add_action() in wp-content/plugins/foodbook-light-online-food-ordering-system/inc/class-woo-hooks.php:18
- > 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 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #10, #11, #12, #13, #14, #15 in foodbook-light-online-food-ordering-system/assets to your readme.txt
- Requires php: Version not formatted correctly
- Requires at least: Version not formatted correctly
foodbook-light-online-food-ordering-system/foodbook-lite.php 77% from 13 tests
"FoodBook Lite - Online Food Ordering System" version 1.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("foodbook-light-online-food-ordering-system.php" instead of "foodbook-lite.php")
- Description: The description should be shorter than 140 characters (currently 288 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected33,369 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 19 | 0 | 12 | 12,054 |
JavaScript | 7 | 3,024 | 7,260 | 8,568 |
CSS | 9 | 634 | 174 | 5,297 |
PHP | 36 | 1,372 | 854 | 5,165 |
Sass | 30 | 176 | 27 | 2,285 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 121 | |
▷ Static methods | 49 | 40.50% |
▷ Public methods | 116 | 95.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.13% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon/cart.png | 1.29KB | 1.29KB | 0.00% |
assets/img/smile.png | 1.99KB | 1.99KB | 0.05% |
assets/img/mapmarkar@2x.png | 0.34KB | 0.34KB | 0.00% |
assets/img/pngfuel.com.png | 1.19KB | 1.19KB | 0.33% |
assets/img/card.png | 2.75KB | 2.73KB | ▼ 0.64% |