Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.65ms] Passed 4 tests
Server-side resources used by Food Online for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.19 ▼0.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.41 ▼0.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.46 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.48 ▼17.37 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.94 ▲2.12 |
Server storage [IO: ▲3.88MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 86 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_theysaidso_widget |
fdoe_left_menu |
widget_recent-comments |
fdoe_item_icon |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
fdoe_override_shop |
fdoe_hide_minicart |
fdoe_layout |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Food Online for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.07 | 1.66 ▼0.00 | 44.19 ▲7.86 |
Dashboard /wp-admin | 2,198 ▲17 | 5.59 ▼0.08 | 94.46 ▼4.39 | 42.06 ▲1.03 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.02 | 35.58 ▼0.70 | 29.41 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▲81 | 23.28 ▲6.74 | 674.72 ▲217.58 | 55.37 ▲4.95 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.22 ▲0.04 | 104.88 ▲9.40 | 46.44 ▲3.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 15 options in the database
- widget_theysaidso_widget
- fdoe_layout
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- fdoe_override_shop
- fdoe_hide_minicart
- fdoe_menu_titles_icon
- fdoe_is_prem
- fdoe_item_icon
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/food-online-for-woocommerce/templates/search.php
- > /wp-content/plugins/food-online-for-woocommerce/templates/product.php
- > /wp-content/plugins/food-online-for-woocommerce/templates/top_menu.php
- > /wp-content/plugins/food-online-for-woocommerce/templates/product-modal-fallback.php
- > /wp-content/plugins/food-online-for-woocommerce/templates/product-modal.php
- > /wp-content/plugins/food-online-for-woocommerce/templates/categories.php
- > /wp-content/plugins/food-online-for-woocommerce/templates/side_menu.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Food_Online' not found in wp-content/plugins/food-online-for-woocommerce/templates/woocommerce/content-product.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/food-online-for-woocommerce/fdoe-order.php:29
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: online, order, woocommerce, restaurant, menu...
food-online-for-woocommerce/fdoe-order.php 92% from 13 tests
The primary PHP file in "Food Online for WooCommerce" version 5.4.6.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("food-online-for-woocommerce.php" instead of "fdoe-order.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin34,575 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 25 | 594 | 72 | 16,424 |
PHP | 31 | 1,676 | 289 | 7,166 |
SVG | 3 | 0 | 0 | 5,603 |
JavaScript | 12 | 310 | 265 | 5,382 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 131)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 94.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 313.00 |
Average method complexity | 6.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 131.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 55 | 35.48% |
▷ Public methods | 150 | 96.77% |
▷ Protected methods | 3 | 1.94% |
▷ Private methods | 2 | 1.29% |
Functions | 15 | |
▷ Named functions | 9 | 60.00% |
▷ Anonymous functions | 6 | 40.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected