Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.67ms] Passed 4 tests
An overview of server-side resources used by Restrofood Lite - Online Food Ordering System
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.84 ▼1.96 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.18 ▼8.15 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.03 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.12 ▼12.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.85 ▲2.17 |
Server storage [IO: ▲8.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 7 new options
New WordPress options |
---|
restrofoodlite_options |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Restrofood Lite - Online Food Ordering System: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.74 ▼0.55 | 4.05 ▲1.96 | 39.82 ▼3.68 |
Dashboard /wp-admin | 2,220 ▲29 | 5.91 ▲1.00 | 108.48 ▲2.33 | 42.46 ▲0.13 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.02 ▼0.03 | 40.46 ▲3.46 | 36.12 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.00 ▲4.74 | 624.07 ▼62.35 | 49.27 ▼5.94 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.30 ▲0.10 | 101.65 ▲0.82 | 43.57 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
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)
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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/restrofood-lite/view/template-modal-alert.php
- 41× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/restrofood-lite/view/modal-canvas-cart.php:7
- > PHP Warning
Use of undefined constant RESTROFOODLITE_DIR_URL - assumed 'RESTROFOODLITE_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/restrofood-lite/view/modal-canvas-cart.php on line 7
- > PHP Warning
Use of undefined constant RESTROFOODLITE_DIR_ADMIN - assumed 'RESTROFOODLITE_DIR_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/restrofood-lite/admin/inc/settings-fields/class-settings-fields.php on line 17
- > PHP Fatal error
require_once(): Failed opening required 'RESTROFOODLITE_DIR_ADMINinc/settings-fields/checkbox.php' (include_path='.:/usr/share/php') in wp-content/plugins/restrofood-lite/admin/inc/settings-fields/class-settings-fields.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'RestroFoodLite\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/restrofood-lite/admin/inc/tabs-content/color-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function RestroFoodLite\\add_action() in wp-content/plugins/restrofood-lite/admin/admin.php:21
- > PHP Fatal error
Uncaught Error: Class 'RestroFoodLite\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/restrofood-lite/admin/inc/tabs-content/shortcode.php:13
- > PHP Fatal error
Uncaught Error: Class 'RestroFoodLite\\Admin\\Settings_Fields_Base' not found in wp-content/plugins/restrofood-lite/admin/inc/tabs-content/page-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/restrofood-lite/restrofood-lite.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/restrofood-lite/view/template-modal-product-content.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in restrofood-lite/assets to your readme.txt
- Requires php: Invalid version format
restrofood-lite/restrofood-lite.php 85% from 13 tests
The primary PHP file in "Restrofood Lite - Online Food Ordering System" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time 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
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 237 characters long)
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
There were no executable files found in this plugin34,354 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 28 | 0 | 12 | 12,122 |
JavaScript | 9 | 2,621 | 7,276 | 8,204 |
CSS | 11 | 782 | 242 | 8,072 |
PHP | 64 | 1,518 | 1,217 | 5,956 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 17 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 2 | 6.90% |
Methods | 184 | |
▷ Static methods | 83 | 45.11% |
▷ Public methods | 160 | 86.96% |
▷ Protected methods | 19 | 10.33% |
▷ Private methods | 5 | 2.72% |
Functions | 48 | |
▷ Named functions | 45 | 93.75% |
▷ Anonymous functions | 3 | 6.25% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/img/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/img/mapmarkar@2x.png | 0.34KB | 0.34KB | 0.00% |
assets/img/mapmarkar.png | 0.25KB | 0.25KB | 0.00% |
assets/img/icon/item1.png | 18.09KB | 5.94KB | ▼ 67.19% |