68% fast-flow-dashboard

Code Review | Fast Flow

WordPress plugin Fast Flow scored68%from 54 tests.

About plugin

  • Plugin page: fast-flow-dashboard
  • Plugin version: 1.2.15
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 45
  • Update frequency: every 38.9 days
  • Top authors: fastflow (100%)Otto42 (4.44%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /7,826 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.59MB] [CPU: ▼0.26ms] Passed 4 tests

This is a short check of server-side resources used by Fast Flow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6153.06 ▲5.30
Dashboard /wp-admin3.93 ▲0.6258.48 ▲2.54
Posts /wp-admin/edit.php3.98 ▲0.6257.67 ▲7.41
Add New Post /wp-admin/post-new.php6.47 ▲0.5892.43 ▼16.29
Media Library /wp-admin/upload.php3.79 ▲0.5645.59 ▲9.76
Dashboard /wp-admin/admin.php?page=fast-flow3.7948.83
Add Ons /wp-admin/admin.php?page=fast-flow-addons3.7650.59
License /wp-admin/admin.php?page=fast-flow-act3.7640.04
Settings /wp-admin/admin.php?page=fast-flow-settings3.8150.23
All Tags /wp-admin/admin.php?page=fast-tagger3.7838.84
Add New Tag /wp-admin/edit-tags.php?taxonomy=fast_tag3.7541.70
Widgets /wp-admin/admin.php?page=fast-flow-widgets3.6139.21
Taxonomy /wp-admin/edit-tags.php?taxonomy=for_tag3.7843.75
Tagged Users /wp-admin/admin.php?page=fast_tagged_users3.7848.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: 2 new tables, 9 new options
New tables
wp_fastflow_settings
wp_tags_stats
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
fast_tagger_db_version
widget_theysaidso_widget
widget_fast_flow_html_widget
widget_recent-posts
widget_fast_tagger_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fast Flow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲23914.22 ▼0.188.82 ▲6.6660.51 ▲18.26
Dashboard /wp-admin2,301 ▲1105.37 ▼0.49112.27 ▲8.7439.98 ▼0.79
Posts /wp-admin/edit.php2,195 ▲1062.44 ▲0.3835.77 ▼0.8233.60 ▼0.80
Add New Post /wp-admin/post-new.php1,594 ▲8023.74 ▲6.20665.23 ▲19.5737.68 ▼15.51
Media Library /wp-admin/upload.php1,487 ▲994.59 ▲0.4094.55 ▼21.3842.98 ▼5.56
Dashboard /wp-admin/admin.php?page=fast-flow1,52810.08315.9286.36
Add Ons /wp-admin/admin.php?page=fast-flow-addons9273.0948.8931.22
License /wp-admin/admin.php?page=fast-flow-act1,4789.93287.0853.60
Settings /wp-admin/admin.php?page=fast-flow-settings9113.1351.9437.05
All Tags /wp-admin/admin.php?page=fast-tagger1,1772.5738.6630.06
Add New Tag /wp-admin/edit-tags.php?taxonomy=fast_tag1,4812.3244.5331.18
Widgets /wp-admin/admin.php?page=fast-flow-widgets1,4283.6050.9552.05
Taxonomy /wp-admin/edit-tags.php?taxonomy=for_tag1,3592.2531.1130.47
Tagged Users /wp-admin/admin.php?page=fast_tagged_users1,1472.5838.7034.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_fastflow_settings
    • wp_tags_stats
  • This plugin does not fully uninstall, leaving 9 options in the database
    • can_compress_scripts
    • widget_fast_flow_html_widget
    • widget_fast_tagger_widget
    • widget_recent-comments
    • db_upgraded
    • fast_tagger_db_version
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=fast-flow-settings
    • > Notice in wp-content/plugins/fast-flow-dashboard/lib/class.fastflow-settings.php+149
    Undefined variable: image_src
    • > GET request to /wp-admin/edit-tags.php?taxonomy=fast_tag
    • > Notice in wp-content/plugins/fast-flow-dashboard/includes/fast-tagger-init.php+643
    Trying to get property 'term_id' of non-object
    • > GET request to /wp-admin/admin.php?page=fast-flow-widgets
    • > Notice in wp-content/plugins/fast-flow-dashboard/lib/widgets/fast_tagger_widget_class.php+304
    Undefined variable: ff_from
    • > GET request to /wp-admin/admin.php?page=fast-flow-widgets
    • > Notice in wp-content/plugins/fast-flow-dashboard/lib/widgets/fast_tagger_widget_class.php+308
    Undefined variable: ff_to

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/fast-flow-dashboard/fastflow.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

fast-flow-dashboard/fastflow.php 92% from 13 tests

"Fast Flow" version 1.2.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fast-flow-dashboard.php" instead of "fastflow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected7,821 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP151,7595093,164
JavaScript105729592,953
CSS96761081,704

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity33.00
▷ Minimum class complexity4.00
▷ Maximum class complexity80.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods99
▷ Static methods4444.44%
▷ Public methods9292.93%
▷ Protected methods00.00%
▷ Private methods77.07%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.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
10 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
assets/images/repo-forked.png3.35KB0.47KB▼ 85.82%
assets/images/repo-source.png3.33KB0.41KB▼ 87.74%
assets/css/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%