67% bakkbone-florist-companion

Code Review | BAKKBONE Florist Companion

WordPress plugin BAKKBONE Florist Companion scored 67% from 54 tests.

About plugin

  • Plugin page: bakkbone-florist-...
  • Plugin version: 3.0.7.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 85
  • Update frequency: every 4.5 days
  • Top authors: bakkbone (57.65%)leggroup (43.53%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,885 total downloads

Benchmarks

Plugin footprint 64% 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: ▲7.93MB] [CPU: ▲62.04ms] 50% from 4 tests

This is a short check of server-side resources used by BAKKBONE Florist Companion
Please take the time to fix the following items
  • RAM: Total memory usage must be kept under 10MB (currently 11.32MB on /wp-admin/edit.php?post_type=acf-field-group)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 7.93MB on /wp-admin/edit.php?post_type=acf-field-group)
PageMemory (MB)CPU Time (ms)
Home /10.98 ▲7.52106.80 ▲64.76
Dashboard /wp-admin11.35 ▲8.05116.53 ▲71.40
Posts /wp-admin/edit.php11.42 ▲8.06101.51 ▲56.14
Add New Post /wp-admin/post-new.php14.16 ▲8.28170.96 ▲84.16
Media Library /wp-admin/upload.php11.33 ▲8.10100.49 ▲55.85
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy11.3498.33
Post Types /wp-admin/edit.php?post_type=acf-post-type11.3492.14
Scheduled Actions /wp-admin/tools.php?page=action-scheduler11.4687.30
Field Groups /wp-admin/edit.php?post_type=acf-field-group11.3288.21

Server storage [IO: ▲32.46MB] [DB: ▲0.01MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • Total filesystem usage should be limited to 25MB (currently using 32.46MB)
Filesystem: 1,236 new files
Database: 4 new tables, 26 new options
New tables
wp_actionscheduler_groups
wp_actionscheduler_logs
wp_actionscheduler_actions
wp_actionscheduler_claims
New WordPress options
bkf_dd_full
bkf_dm_setting
bkf_dd_setting
action_scheduler_lock_async-request-runner
bkf_options_setting
bkf_localisation_setting
action_scheduler_hybrid_store_demarkation
bkf_ddi_setting
recovery_mode_email_last_sent
acf_version
...

Browser metrics Passed 4 tests

Checking browser requirements for BAKKBONE Florist Companion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,234 ▼50112.42 ▼1.952.51 ▲0.8745.93 ▲8.20
Dashboard /wp-admin1,618 ▼5711.38 ▼3.6315.34 ▼92.5843.45 ▲2.92
Posts /wp-admin/edit.php2,132 ▲462.01 ▼0.0143.99 ▲8.4350.98 ▲19.24
Add New Post /wp-admin/post-new.php6,918 ▲5,49424.79 ▲4.531,238.92 ▲611.07139.62 ▲96.17
Media Library /wp-admin/upload.php1,981 ▲5998.34 ▲4.13225.97 ▲57.9549.12 ▼27.70
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy1,6812.2835.6165.53
Post Types /wp-admin/edit.php?post_type=acf-post-type1,6832.2836.8039.73
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2771.8525.3031.70
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,6502.1840.3244.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_actionscheduler_groups
    • wp_actionscheduler_actions
    • wp_actionscheduler_logs
    • wp_actionscheduler_claims
  • Zombie WordPress options were found after uninstall: 26 options
    • bkf_dd_closed
    • schema-ActionScheduler_StoreSchema
    • db_upgraded
    • widget_theysaidso_widget
    • action_scheduler_lock_async-request-runner
    • can_compress_scripts
    • bkf_localisation_setting
    • schema-ActionScheduler_LoggerSchema
    • bkf_advanced_setting
    • bkf_dd_ds_fees
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 42× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/bakkbone-florist-companion/src/core.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/dd/fees/date-specific.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/petals/petals.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/pickup.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/pdf/actions.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/dd/fees/index.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/ajax.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/dd/blocks.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/dd/calendar.php
    • > /wp-content/plugins/bakkbone-florist-companion/src/dd/dd-options.php
  • 260× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bakkbone-florist-companion/lib/acf/includes/admin/views/upgrade/upgrade.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/bakkbone-florist-companion/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Type/os2.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/bakkbone-florist-companion/lib/dompdf/vendor/dompdf/dompdf/src/Renderer.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/bakkbone-florist-companion/lib/acf/includes/admin/views/acf-field-group/conditional-logic.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Value\\CSSFunction' not found in wp-content/plugins/bakkbone-florist-companion/lib/dompdf/vendor/sabberworm/php-css-parser/src/Value/CalcFunction.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/bakkbone-florist-companion/lib/dompdf/vendor/dompdf/dompdf/src/Renderer/Text.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/bakkbone-florist-companion/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/bakkbone-florist-companion/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\Positioner\\AbstractPositioner' not found in wp-content/plugins/bakkbone-florist-companion/lib/dompdf/vendor/dompdf/dompdf/src/Positioner/TableCell.php:17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bakkbone-florist-companion/lib/acf/includes/admin/views/acf-field-group/location-rule.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: woocommerce, ecommerce, florist, package, filters

bakkbone-florist-companion/bakkbone-florist-companion.php Passed 13 tests

"BAKKBONE Florist Companion" version 3.0.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Provides standardized features for floristry websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected334,568 lines of code in 1,022 files:
LanguageFilesBlank linesComment linesLines of code
PO File4544,30467,605106,278
PHP53421,40444,68087,875
JavaScript2818,79111,05581,677
JSON140042,061
CSS228701,57813,548
Markdown1646301,489
HTML1414001,271
SVG9500334
YAML19035

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity24.32
▷ Minimum class complexity1.00
▷ Maximum class complexity811.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces40
Interfaces12
Traits0
Classes429
▷ Abstract classes306.99%
▷ Concrete classes39993.01%
▷ Final classes20.50%
Methods4,269
▷ Static methods2235.22%
▷ Public methods3,61684.70%
▷ Protected methods54312.72%
▷ Private methods1102.58%
Functions640
▷ Named functions58491.25%
▷ Anonymous functions568.75%
Constants272
▷ Global constants238.46%
▷ Class constants24991.54%
▷ Public constants24497.99%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
45 PNG files occupy 0.87MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
lib/acf/assets/images/field-type-previews/field-preview-clone.png44.19KB20.25KB▼ 54.17%
lib/acf/assets/images/field-type-previews/field-preview-repeater.png56.77KB26.74KB▼ 52.90%
lib/acf/assets/inc/select2/3/select2.png0.51KB0.99KB0.00%
lib/acf/assets/images/field-type-previews/field-preview-radio-button.png15.22KB6.14KB▼ 59.69%