77% bulgarisation-for-woocommerce

Code Review | Bulgarisation for WooCommerce

WordPress plugin Bulgarisation for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: bulgarisation-for...
  • Plugin version: 3.0.11
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.3.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2021
  • Latest release: Dec 1, 2023
  • Number of updates: 172
  • Update frequency: every 6.2 days
  • Top authors: autopolisbg (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

900+ active /14,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Bulgarisation for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.79 ▼5.62
Dashboard /wp-admin3.32 ▼0.0243.75 ▼16.15
Posts /wp-admin/edit.php3.37 ▲0.0246.71 ▼0.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.09 ▼8.89
Media Library /wp-admin/upload.php3.25 ▲0.0233.26 ▼1.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 782 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Bulgarisation for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.67 ▼0.071.92 ▲0.0935.66 ▼8.06
Dashboard /wp-admin2,199 ▲285.59 ▼0.0292.61 ▼3.3841.59 ▼1.94
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0639.09 ▼3.0437.48 ▲3.52
Add New Post /wp-admin/post-new.php1,532 ▲623.22 ▼0.11672.82 ▲23.6754.49 ▼0.54
Media Library /wp-admin/upload.php1,404 ▲74.17 ▲0.0095.28 ▼6.2242.21 ▼2.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/masterminds/html5/bin/entities.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto5.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto3.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto4.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto6.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto2.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto1.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/makefont.php
    • > /wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdf/tutorial/tuto7.php
  • 240× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QRImage' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/examples/QRImageWithText.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/Text.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCode\\Output\\QROutputAbstract' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/src/Output/QRString.php:25
    • > PHP Warning
      require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/public/qrcode.php on line 15
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameDecorator\\Block' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/dompdf/dompdf/src/FrameDecorator/TableCell.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\FrameReflower\\Block' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/dompdf/dompdf/src/FrameReflower/TableCell.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/phenx/php-svg-lib/src/Svg/Tag/Image.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/tests/Data/DatainterfaceTestAbstract.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/bulgarisation-for-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/Lzw.php:16
    • > PHP Warning
      require_once(wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/bulgarisation-for-woocommerce/vendor/chillerlan/php-qrcode/examples/fpdf.php on line 7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: You can look at the official readme.txt

bulgarisation-for-woocommerce/bulgarisation-for-woocommerce.php 69% from 13 tests

"Bulgarisation for WooCommerce" version 3.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 189 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.4.0")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "7.3.0")

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
Success! There were no dangerous files found in this plugin72,519 lines of code in 626 files:
LanguageFilesBlank linesComment linesLines of code
PHP47314,18727,82862,468
HTML619803,411
Markdown2164802,376
JSON19401,514
CSS10202531,354
PO File1351454914
YAML8628241
XML520100
reStructuredText19613997
JavaScript2525835
SVG2009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.28
▷ Minimum class complexity1.00
▷ Maximum class complexity811.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces97
Interfaces28
Traits6
Classes395
▷ Abstract classes225.57%
▷ Concrete classes37394.43%
▷ Final classes184.83%
Methods3,582
▷ Static methods40711.36%
▷ Public methods2,81478.56%
▷ Protected methods63117.62%
▷ Private methods1373.82%
Functions167
▷ Named functions3621.56%
▷ Anonymous functions13178.44%
Constants388
▷ Global constants51.29%
▷ Class constants38398.71%
▷ Public constants37196.87%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.56MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/dompdf/dompdf/lib/res/broken_image.png0.60KB0.47KB▼ 22.33%
(invalid) dist/images/sprite.png0.00KB0.00KB0.00%
app/Admin/Tabs/Econt_Tab/images/econt-help.png22.46KB12.52KB▼ 44.26%
vendor/chillerlan/php-qrcode/examples/example_image.png2.23KB1.09KB▼ 50.94%
dist/images/question-icon.e859d4d0a0.png2.04KB1.68KB▼ 17.92%