10% bizuno-migrate

Code Review | Bizuno Migrate

WordPress plugin Bizuno Migrate scored10%from 54 tests.

About plugin

  • Plugin page: bizuno-migrate
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: phreesoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /442 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/bizuno-migrate/bizuno-migrate.php+23
    require_once(wp-content/plugins/bizuno-migrate/../bizuno-accounting/portal/controller.php): failed to open stream: No such file or directory

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

A check of server-side resources used by Bizuno Migrate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.82 ▼5.27
Dashboard /wp-admin3.31 ▲0.0046.86 ▼5.12
Posts /wp-admin/edit.php3.36 ▲0.0050.75 ▲2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.46 ▼7.33
Media Library /wp-admin/upload.php3.23 ▲0.0037.62 ▲0.38

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Bizuno Migrate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.452.11 ▲0.1844.21 ▼4.05
Dashboard /wp-admin2,192 ▲125.52 ▼0.1492.40 ▼5.9737.30 ▼4.80
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0240.77 ▲2.4935.57 ▲1.45
Add New Post /wp-admin/post-new.php1,526 ▼023.99 ▲0.25668.44 ▼24.2159.97 ▲7.46
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0396.41 ▼10.5244.78 ▼5.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/bizuno-migrate/bizuno-migrate.php+44
    require_once(wp-content/plugins/bizuno-migrate/../bizuno-accounting/portal/controller.php): failed to open stream: No such file or directory
  • The plugin did not uninstall successfully, leaving 9 files (0.29MB) in the plugin directory
    • (new file) modules/xfrData/admin.php
    • (new file) modules/xfrQuickBooks/functions.php
    • (new file) readme.txt
    • (new file) bizuno-migrate.php
    • (new file) modules/xfrQuickBooks/admin.php
    • (new file) modules/xfrPhreeBooks/locale/en_US/language.php
    • (new file) modules/xfrQuickBooks/locale/en_US/language.php
    • (new file) modules/xfrPhreeBooks/admin.php
    • (new file) modules/xfrQuickBooks/map.php
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • bizuno_migrate_active

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bizuno-migrate/bizuno-migrate.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bizuno\\bizAutoLoad() in wp-content/plugins/bizuno-migrate/modules/xfrQuickBooks/admin.php:39

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 90% 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 need to be fixed:
  • Screenshots: Screenshot #1 (Line in the Sand Conversion) image not found
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Bizuno Migrate" version 1.0.1
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/locale" does not exist
  • 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

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,420 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP81167453,420

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 244)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity133.33
▷ Minimum class complexity4.00
▷ Maximum class complexity339.00
Average method complexity14.69
▷ Minimum method complexity1.00
▷ Maximum method complexity244.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2275.86%
▷ Protected methods00.00%
▷ Private methods724.14%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected