84% wpcafe-multivendor

Code Review | WPCafe Multivendor Restaurant Addon for Dokan

WordPress plugin WPCafe Multivendor Restaurant Addon for Dokan scored84%from 54 tests.

About plugin

  • Plugin page: wpcafe-multivendor
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Sep 16, 2022
  • Number of updates: 20
  • Update frequency: every 25.8 days
  • Top authors: themewinter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,532 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.52 ▼12.80
Dashboard /wp-admin3.39 ▲0.0945.83 ▼2.66
Posts /wp-admin/edit.php3.51 ▲0.1551.64 ▲5.55
Add New Post /wp-admin/post-new.php5.97 ▲0.0993.65 ▲1.08
Media Library /wp-admin/upload.php3.32 ▲0.0934.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.41 ▼0.831.51 ▼0.3542.58 ▼4.73
Dashboard /wp-admin2,242 ▲544.84 ▼1.05110.47 ▲7.5143.84 ▲2.76
Posts /wp-admin/edit.php2,125 ▲362.01 ▲0.0241.37 ▲5.2637.09 ▲2.67
Add New Post /wp-admin/post-new.php1,563 ▲3023.32 ▲0.06589.84 ▼84.2758.77 ▼20.80
Media Library /wp-admin/upload.php1,427 ▲394.23 ▲0.0895.15 ▼20.6541.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP255306461,686
Sass1323415
CSS2150390
JavaScript214560

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 code0.39
Average class complexity12.25
▷ Minimum class complexity2.00
▷ Maximum class complexity36.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces10
Interfaces0
Traits1
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods86
▷ Static methods2023.26%
▷ Public methods8497.67%
▷ Protected methods00.00%
▷ Private methods22.33%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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