72% bg-patriarchia-bu

Code Review | Bg Patriarchia BU

WordPress plugin Bg Patriarchia BU scored72%from 54 tests.

About plugin

  • Plugin page: bg-patriarchia-bu
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: Jan 13, 2023
  • Number of updates: 31
  • Update frequency: every 69.2 days
  • Top authors: VBog (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /1,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.89ms] Passed 4 tests

Server-side resources used by Bg Patriarchia BU
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.21 ▼1.09
Dashboard /wp-admin3.40 ▲0.1047.80 ▼1.47
Posts /wp-admin/edit.php3.52 ▲0.1654.33 ▲4.11
Add New Post /wp-admin/post-new.php5.98 ▲0.1092.06 ▼4.08
Media Library /wp-admin/upload.php3.33 ▲0.1040.13 ▲3.07
Богослужебные указания /wp-admin/options-general.php?page=bg_pbu_slug3.2930.76

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
bg_pbu_options_2_1_3
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
bg_pbu_options

Browser metrics Passed 4 tests

A check of browser resources used by Bg Patriarchia BU
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.72 ▲0.311.85 ▲0.1640.48 ▼7.22
Dashboard /wp-admin2,202 ▲255.64 ▼0.0184.38 ▼1.2942.35 ▲1.69
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0237.31 ▲1.9436.10 ▲1.88
Add New Post /wp-admin/post-new.php1,531 ▲523.24 ▼0.03710.44 ▲19.8460.56 ▲1.49
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.06108.26 ▼10.4648.09 ▼2.88
Богослужебные указания /wp-admin/options-general.php?page=bg_pbu_slug9321.9921.5330.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-20/print.html, line: 248
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-20/print.html, line: 250
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-20/print.html, line: 339
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-20/print.html, line: 341
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-21/print.html, line: 249
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-21/print.html, line: 251
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-21/print.html, line: 340
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-21/print.html, line: 342
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-22/print.html, line: 325
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-22/print.html, line: 327
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-22/print.html, line: 416
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-22/print.html, line: 418
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-23/print.html, line: 327
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-23/print.html, line: 329
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-23/print.html, line: 418
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-23/print.html, line: 420
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-24/print.html, line: 236
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-24/print.html, line: 238
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-24/print.html, line: 327
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-24/print.html, line: 329
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-25/print.html, line: 237
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): Unexpected end tag : span in http://www.patriarchia.ru/bu/2018-01-25/print.html, line: 239
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-25/print.html, line: 328
    • > GET request to /wp-admin/options-general.php?page=bg_pbu_slug
    • > POST request to /wp-cron.php?doing_wp_cron=1697573451.3645250797271728515625
    • > Warning in wp-content/plugins/bg-patriarchia-bu/inc/upload.php+53
    DOMDocument::loadHTMLFile(): htmlParseEntityRef: expecting ';' in http://www.patriarchia.ru/bu/2018-01-25/print.html, line: 330

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bg-patriarchia-bu/bg_pbu.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bg-patriarchia-bu/inc/options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bg-patriarchia-bu/inc/upload.php:92

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

bg-patriarchia-bu/bg_pbu.php 92% from 13 tests

The primary PHP file in "Bg Patriarchia BU" version 2.2.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bg-patriarchia-bu.php" instead of "bg_pbu.php")

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
No dangerous file extensions were detected406 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP374128401
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions2692.86%
▷ Anonymous functions27.14%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin