79% flowbox

Code Review | Flowbox

WordPress plugin Flowbox scored79%from 54 tests.

About plugin

  • Plugin page: flowbox
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 11, 2022
  • Latest release: Jul 12, 2023
  • Number of updates: 15
  • Update frequency: every 34.4 days
  • Top authors: flowboxab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Flowbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.39 ▼4.67
Dashboard /wp-admin3.32 ▲0.0242.24 ▼2.70
Posts /wp-admin/edit.php3.37 ▲0.0145.54 ▼2.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.77 ▼16.78
Media Library /wp-admin/upload.php3.24 ▲0.0134.28 ▼2.33

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 62 new files
Database: 2 new tables, 6 new options
New tables
wp_flowlocal
wp_userflow
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Flowbox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲22715.03 ▲0.6510.75 ▲9.0338.56 ▼4.66
Dashboard /wp-admin2,242 ▲545.79 ▼0.11110.36 ▲11.0132.05 ▼14.25
Posts /wp-admin/edit.php2,122 ▲362.65 ▲0.6647.16 ▲12.0132.82 ▼3.99
Add New Post /wp-admin/post-new.php1,549 ▲723.85 ▲5.67688.31 ▲38.3155.96 ▼0.65
Media Library /wp-admin/upload.php1,490 ▲1025.00 ▲0.78107.38 ▼4.3640.53 ▼10.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/flowbox/index.php
    • > /wp-content/plugins/flowbox/flowbox.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function flowbox_get_flow() in wp-content/plugins/flowbox/includes/flowboxdetails.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/flowbox/includes/setupwizard.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flowbox/includes/functions.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: ugc, influencer, flowbox, product tagging, engagement...

flowbox/flowbox.php Passed 13 tests

"Flowbox" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
260 characters long description:
Flowbox is an award-winning SaaS company offering a User Generated Content platform developed for established eCommerce brands that helps brands leverage and distribute social content throughout the buyer journey to increase engagement, social proof and sales.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin50,296 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
CSS178,16513835,216
JavaScript83,5401,62212,092
PHP94521022,622
SVG300366

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png15.22KB6.85KB▼ 55.03%
assets/icon-256x256.png2.07KB2.07KB0.00%