78% burger-companion

Code Review | Burger Companion

WordPress plugin Burger Companion scored78%from 54 tests.

About plugin

  • Plugin page: burger-companion
  • Plugin version: 6.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2020
  • Latest release: Nov 3, 2023
  • Number of updates: 60
  • Update frequency: every 18.5 days
  • Top authors: burgersoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /430,878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.69ms] Passed 4 tests

Server-side resources used by Burger Companion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.05 ▼2.43
Dashboard /wp-admin3.33 ▼0.0247.12 ▼17.26
Posts /wp-admin/edit.php3.38 ▲0.0247.49 ▼0.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.33 ▼4.65
Media Library /wp-admin/upload.php3.25 ▲0.0235.08 ▼2.43

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 438 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
item_details_page
widget_recent-posts

Browser metrics Passed 4 tests

Burger Companion: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.68 ▲0.032.09 ▲0.0943.69 ▼2.08
Dashboard /wp-admin2,195 ▲145.64 ▼0.0993.23 ▼8.4042.63 ▼1.88
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0134.45 ▼1.3234.64 ▲2.00
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▼0.06666.21 ▼32.5151.18 ▲5.09
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.05100.79 ▼9.6544.49 ▼5.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • item_details_page
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/burger-companion/inc/custom-controls/customizer-repeater/inc/icons.php
    • > /wp-content/plugins/burger-companion/inc/setto-lifestyle/sections/section-browse.php
    • > /wp-content/plugins/burger-companion/inc/setto/sections/section-browse-cat.php
  • 285× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/burger-companion/burger-companion.php:11
    • > PHP Warning
      require(BURGER_COMPANION_PLUGIN_DIRinc/appetizer/extras.php): failed to open stream: No such file or directory in wp-content/plugins/burger-companion/inc/rasam/rasam.php on line 6
    • > PHP Warning
      require(BURGER_COMPANION_PLUGIN_DIRinc/spintech/extras.php): failed to open stream: No such file or directory in wp-content/plugins/burger-companion/inc/burgertech/burgertech.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/burger-companion/inc/appetizer/default-pages/home-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burger-companion/inc/seokart/sections/section-above-header.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/burger-companion/inc/decorme/sections/section-info.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burger-companion/inc/digipress/sections/section-above-header.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/burger-companion/inc/decorme/default-widgets/default-widget.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/burger-companion/inc/storebiz/default-pages/home-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burger-companion/inc/spabiz/features/spabiz-header.php:241

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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
1 plugin tags: spintech

burger-companion/burger-companion.php Passed 13 tests

"Burger Companion" version 6.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
The Burger Companion plugin adds sections functionality to the Spintech Theme.

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
Everything looks great! No dangerous files found in this plugin26,610 lines of code in 228 files:
LanguageFilesBlank linesComment linesLines of code
PHP2202,8251,95424,847
JavaScript4251591,365
CSS4690398

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.81
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes57
▷ Abstract classes00.00%
▷ Concrete classes57100.00%
▷ Final classes00.00%
Methods69
▷ Static methods11.45%
▷ Public methods6188.41%
▷ Protected methods00.00%
▷ Private methods811.59%
Functions420
▷ Named functions420100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
131 PNG files occupy 5.36MB with 1.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/cozipress/images/clipArt/testimonials/shape4.png0.63KB0.70KB0.00%
inc/spintech/images/clipArt/ctaClipart/shape7.png2.30KB0.98KB▼ 57.34%
inc/appetizer/images/clipArt/services/shape1.png1.50KB1.76KB0.00%
inc/seokart/images/slider-man-img.png119.75KB34.94KB▼ 70.83%
inc/spacare/images/slider/04.png499.32KB506.62KB0.00%