84% wpcafe-oxygen-addon

Code Review | WPCafe Restaurant Addon for Oxygen Builder

WordPress plugin WPCafe Restaurant Addon for Oxygen Builder scored84%from 54 tests.

About plugin

  • Plugin page: wpcafe-oxygen-addon
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 4, 2021
  • Latest release: Jan 10, 2023
  • Number of updates: 8
  • Update frequency: every 50.4 days
  • Top authors: themewinter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼12.42ms] Passed 4 tests

This is a short check of server-side resources used by WPCafe Restaurant Addon for Oxygen Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0552.27 ▲8.20
Dashboard /wp-admin3.35 ▲0.0548.72 ▼7.51
Posts /wp-admin/edit.php3.46 ▲0.1147.88 ▼4.73
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.77 ▼32.15
Media Library /wp-admin/upload.php3.27 ▲0.0433.59 ▼5.27

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WPCafe Restaurant Addon for Oxygen Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5713.23 ▼1.281.82 ▲0.0642.58 ▼1.57
Dashboard /wp-admin2,221 ▲155.77 ▲0.8799.93 ▼14.3940.25 ▲0.13
Posts /wp-admin/edit.php2,085 ▼152.00 ▼0.0437.35 ▼2.8137.52 ▼2.07
Add New Post /wp-admin/post-new.php1,529 ▼217.66 ▼5.35657.82 ▲61.3852.41 ▲0.89
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0099.92 ▲2.9443.75 ▲1.22

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/menu_slider_pro.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/menu_location_list_pro.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/reservation_form.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/reservation_form_pro.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/category_list_pro.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/food_menu_list_pro.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/food_location_filter.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/food_menu_loadmore.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Oxy_Wpcafe_El' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/reservation_with_food.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'OxyEl' not found in wp-content/plugins/wpcafe-oxygen-addon/elements/oxy_wpcafe_el.php:3

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: editor, oxygen builder, restaurant, builder, food menu

wpcafe-oxygen-addon/wpcafe-oxygen-addon.php 92% from 13 tests

Analyzing the main PHP file in "WPCafe Restaurant Addon for Oxygen Builder" version 1.1.1
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,891 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP226273163,875
Sass11010
CSS1106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity3.33
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods113
▷ Static methods1412.39%
▷ Public methods11198.23%
▷ Protected methods00.00%
▷ Private methods21.77%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected