10% bizuno-locale

Code Review | Bizuno Locale

WordPress plugin Bizuno Locale scored10%from 54 tests.

About plugin

  • Plugin page: bizuno-locale
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Nov 24, 2020
  • Latest release: Aug 12, 2021
  • Number of updates: 11
  • Update frequency: every 24.1 days
  • Top authors: phreesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /558 total downloads

Benchmarks

Plugin footprint 22% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/bizuno-locale/bizuno-locale.php+23
    require_once(wp-content/plugins/bizuno-locale/../bizuno-accounting/controllers/portal/controller.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.79ms] Passed 4 tests

A check of server-side resources used by Bizuno Locale
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.41 ▼4.89
Dashboard /wp-admin3.31 ▲0.0048.78 ▼9.77
Posts /wp-admin/edit.php3.36 ▲0.0046.79 ▼1.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.20 ▼3.00
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▼0.11

Server storage [IO: ▲27.22MB] [DB: ▲0.07MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Try to limit filesystem usage to 25MB (currently using 27.22MB)
Filesystem: 750 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
bizuno_locale_active
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Bizuno Locale
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.46 ▲0.071.88 ▼0.3441.23 ▼2.38
Dashboard /wp-admin2,221 ▲185.87 ▼0.04107.20 ▼8.9240.38 ▼3.75
Posts /wp-admin/edit.php2,100 ▼32.06 ▲0.0439.41 ▲0.8635.93 ▼2.14
Add New Post /wp-admin/post-new.php1,545 ▼423.20 ▼0.02607.59 ▼49.9952.19 ▲5.45
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0999.77 ▼7.4643.58 ▼4.57

Uninstaller [IO: ▲27.22MB] [DB: ▲0.07MB] 25% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/bizuno-locale/bizuno-locale.php+43
    require_once(wp-content/plugins/bizuno-locale/../bizuno-accounting/controllers/portal/controller.php): failed to open stream: No such file or directory
  • This plugin has failed uninstalling correctly, leaving 750 files (27.22MB) in the plugin directory
    • (new file) fonts-pdf/FPDF/barcodes/I25.php
    • (new file) controllers/toolXlate/admin.php
    • (new file) bizuno-locale.php
    • (new file) controllers/toolXlate/locale/en_US/language.php
    • (new file) fonts-pdf/FPDF/barcodes/EAN13.php
    • (new file) fonts-pdf/FPDF/barcodes/C128.php
    • (new file) controllers/toolXlate/toolXlate.js
    • (new file) fonts-pdf/FPDF/barcodes/CODABAR.php
    • (new file) fonts-pdf/FPDF/barcodes/C39.php
    • (new file) fonts-pdf/FPDF/barcodes/C39E.php
    • ...
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • bizuno_locale_active
    • can_compress_scripts
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bizuno-locale/bizuno-locale.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant BIZUNO_3P_PDF - assumed 'BIZUNO_3P_PDF' (this will throw an Error in a future version of PHP) in wp-content/plugins/bizuno-locale/fonts-pdf/FPDF/bizuno_config.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/bizuno-locale/fonts-pdf/FPDF/barcodes/C39E.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bizuno\\bizAutoLoad() in wp-content/plugins/bizuno-locale/controllers/toolXlate/admin.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bizuno\\bizAutoLoad() in wp-content/plugins/bizuno-locale/modules/toolXlate/admin.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 () image missing
You can look at the official readme.txt

bizuno-locale/bizuno-locale.php 85% from 13 tests

The main PHP file in "Bizuno Locale" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • 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
  • Domain Path: The domain path folder was not found ("/locale")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin27,666 lines of code in 553 files:
LanguageFilesBlank linesComment linesLines of code
PHP5436263,16519,305
XML8408,243
JavaScript2616118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity93.62
▷ Minimum class complexity5.00
▷ Maximum class complexity435.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods278
▷ Static methods00.00%
▷ Public methods17061.15%
▷ Protected methods7928.42%
▷ Private methods2910.43%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
PNG images were not found in this plugin