10% bbq

Code Review | BBQ

WordPress plugin BBQ scored10%from 54 tests.

About plugin

  • Plugin page: bbq
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Jun 20, 2017
  • Latest release: Oct 29, 2019
  • Number of updates: 97
  • Update frequency: every 8.9 days
  • Top authors: vashkatsi (51.55%)denntl (25.77%)shemetovdn (20.62%)perederko (4.12%)deviks (2.06%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /12,946 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/phpQueryObject.php+1059
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼0.83MB] [CPU: ▼54.70ms] Passed 4 tests

This is a short check of server-side resources used by BBQ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.17 ▼0.298.89 ▼33.43
Dashboard /wp-admin3.19 ▼0.1513.16 ▼52.99
Posts /wp-admin/edit.php3.19 ▼0.1710.04 ▼40.31
Add New Post /wp-admin/post-new.php3.19 ▼2.7011.41 ▼92.06
Media Library /wp-admin/upload.php3.19 ▼0.0412.64 ▼28.12
BBQ.MONEY /wp-admin/options-general.php?page=bbq3.1910.91

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BBQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12713.87 ▼0.6711.40 ▲9.7741.49 ▼2.27
Dashboard /wp-admin2,203 ▲255.58 ▼0.1387.16 ▼22.7240.12 ▲0.38
Posts /wp-admin/edit.php2,108 ▲112.02 ▲0.0439.40 ▲2.2835.79 ▲2.41
Add New Post /wp-admin/post-new.php1,533 ▲723.25 ▼0.41685.55 ▼5.8658.08 ▲3.97
Media Library /wp-admin/upload.php1,411 ▲114.19 ▲0.0297.35 ▼16.4941.94 ▼6.73
BBQ.MONEY /wp-admin/options-general.php?page=bbq1,0322.1635.5129.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/phpQueryObject.php+1059
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bbq
    • > Deprecated in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/phpQueryObject.php+1074
    Array and string offset access syntax with curly braces is deprecated

SRP 0% 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
The following issues need your attention
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bbq/includes/parser/test-cases/test_php.php
    • > /wp-content/plugins/bbq/includes/parser/test-cases/document-types/document-utf8.php
    • > /wp-content/plugins/bbq/public/partials/bbq-public-display.php
    • > /wp-content/plugins/bbq/includes/parser/test-cases/test_manual.php
    • > /wp-content/plugins/bbq/includes/parser/test-cases/test_charset.php
    • > /wp-content/plugins/bbq/includes/parser/test-cases/test_insert.php
    • > /wp-content/plugins/bbq/includes/parser/test-cases/test_attr.php
  • 165× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Exception: Host '' not authorized to make requests. in wp-content/plugins/bbq/includes/parser/jQueryServer/jQueryServer.php:41
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery.php on line 350
    • > PHP Warning
      require_once(Zend/Validate/Hostname/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Validate/Hostname/Se.php on line 27
    • > PHP Warning
      require_once(Zend/Uri/Http.php): failed to open stream: No such file or directory in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Http/Client/Adapter/Proxy.php on line 24
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Uri.php on line 25
    • > PHP Warning
      require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Validate/Barcode/UpcA.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Hostname/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Validate/Hostname/Se.php on line 27
    • > PHP Notice
      Undefined index: HTTP_REFERER in wp-content/plugins/bbq/includes/parser/jQueryServer/jQueryServer.php on line 37
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Hostname/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Validate/Hostname/Li.php on line 27
    • > PHP Warning
      require_once(Zend/Validate/Abstract.php): failed to open stream: No such file or directory in wp-content/plugins/bbq/includes/parser/phpQuery/phpQuery/Zend/Validate/Identical.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Главная страница плагина) image not found
The official readme.txt might help

bbq/bbq.php Passed 13 tests

Analyzing the main PHP file in "BBQ" version 1.4.4
63 characters long description:
Плагин интеграции с сервисом BBQ.MONEY

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected28,434 lines of code in 171 files:
LanguageFilesBlank linesComment linesLines of code
HTML281,297014,171
PHP1241,8229,02511,497
JavaScript66275372,374
CSS3356186
XHTML5720126
XML50080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity21.41
▷ Minimum class complexity1.00
▷ Maximum class complexity557.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes94
▷ Abstract classes88.51%
▷ Concrete classes8691.49%
▷ Final classes00.00%
Methods684
▷ Static methods16123.54%
▷ Public methods57584.06%
▷ Protected methods9313.60%
▷ Private methods162.34%
Functions22
▷ Named functions1881.82%
▷ Anonymous functions418.18%
Constants135
▷ Global constants42.96%
▷ Class constants13197.04%
▷ Public constants131100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/parser/api-reference/media/empty.png0.20KB0.09KB▼ 53.88%
includes/parser/api-reference/media/background.png0.23KB0.10KB▼ 58.82%