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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.09ms] Passed 4 tests
Server-side resources used by WPCafe Multivendor Restaurant Addon for Dokan
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.52 ▼12.80 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.83 ▼2.66 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.64 ▲5.55 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 93.65 ▲1.08 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.65 ▼1.98 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WPCafe Multivendor Restaurant Addon for Dokan
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.41 ▼0.83 | 1.51 ▼0.35 | 42.58 ▼4.73 |
Dashboard /wp-admin | 2,242 ▲54 | 4.84 ▼1.05 | 110.47 ▲7.51 | 43.84 ▲2.76 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.01 ▲0.02 | 41.37 ▲5.26 | 37.09 ▲2.67 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.32 ▲0.06 | 589.84 ▼84.27 | 58.77 ▼20.80 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.23 ▲0.08 | 95.15 ▼20.65 | 41.18 ▼7.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/wpcafe-multivendor/core/settings/part/menu-settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'Wpcafe_Multivendor' not found in wp-content/plugins/wpcafe-multivendor/templates/store-front/menu-style/list-style-one.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wpcafe-multivendor/templates/store-front/store-footer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wpcafe-multivendor/index.php:3
- > PHP Notice
Undefined variable: layout in wp-content/plugins/wpcafe-multivendor/templates/store-front/menu-style/store-footer.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Wpcafe_Multivendor' not found in wp-content/plugins/wpcafe-multivendor/templates/store-front/menu-style/list-style-slider.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wpcafe-multivendor/templates/store-front/menu-style/store-footer.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wpcafe-multivendor/core/settings/part/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function dokan() in wp-content/plugins/wpcafe-multivendor/templates/store-front/wpcafe-settings/store-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wpcafe-multivendor/core/modules/product-addons/views/settings.php:8
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: free multi vendor, multivendor, food menu, dokan, food ordering
wpcafe-multivendor/wpcafe-multivendor.php Passed 13 tests
The principal PHP file in "WPCafe Multivendor Restaurant Addon for Dokan" v. 1.0.8 is loaded by WordPress automatically on each request
55 characters long description:
WordPress Restaurant solution plugin multivendor addon.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,551 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 530 | 646 | 1,686 |
Sass | 1 | 32 | 3 | 415 |
CSS | 2 | 15 | 0 | 390 |
JavaScript | 2 | 14 | 5 | 60 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 86 | |
▷ Static methods | 20 | 23.26% |
▷ Public methods | 84 | 97.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin