84% flows

Code Review | Flows

WordPress plugin Flows scored84%from 54 tests.

About plugin

  • Plugin page: flows
  • Plugin version: 0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Jun 10, 2022
  • Latest release: Jun 10, 2022
  • Number of updates: 22
  • Update frequency: every 0.9 days
  • Top authors: isabellatech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /393 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.66MB] [CPU: ▼3.62ms] Passed 4 tests

Server-side resources used by Flows
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3840.73 ▲3.70
Dashboard /wp-admin4.07 ▲0.7253.06 ▼12.94
Posts /wp-admin/edit.php4.16 ▲0.8056.82 ▲11.80
Add New Post /wp-admin/post-new.php6.70 ▲0.8183.29 ▼13.88
Media Library /wp-admin/upload.php3.97 ▲0.7441.49 ▲8.63
Add new /wp-admin/post-new.php?post_type=flows4.5355.26
All Flows /wp-admin/edit.php?post_type=flows4.0445.70

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 385 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flows
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲24014.77 ▲0.411.95 ▲0.3442.92 ▲1.34
Dashboard /wp-admin2,385 ▲1946.50 ▲1.61117.15 ▲7.2238.63 ▼2.19
Posts /wp-admin/edit.php2,291 ▲2023.39 ▲1.3949.87 ▲11.5831.35 ▼2.11
Add New Post /wp-admin/post-new.php1,548 ▲423.58 ▲5.35589.24 ▼54.4134.38 ▼27.80
Media Library /wp-admin/upload.php1,421 ▲334.23 ▲0.0383.24 ▼15.2543.60 ▲0.39
Add new /wp-admin/post-new.php?post_type=flows2,8208.14201.6268.62
All Flows /wp-admin/edit.php?post_type=flows1,2603.4743.5228.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 45× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/flows/CMB2/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/flows/CMB2/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/flows/shortcode-function.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: stepts, shortcode, layout, timelines, flows...

flows/flows.php Passed 13 tests

Analyzing the main PHP file in "Flows" version 0.1
123 characters long description:
Flows lets you easily show your business processes, software process, or workflow in a creative responsive design template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin54,176 lines of code in 225 files:
LanguageFilesBlank linesComment linesLines of code
PO File12314,42018,61332,593
PHP602,1276,1397,198
JSON2006,602
CSS142991,1934,840
JavaScript93785851,532
Sass17306291,411

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.31
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes913.24%
▷ Concrete classes5986.76%
▷ Final classes00.00%
Methods542
▷ Static methods9116.79%
▷ Public methods45083.03%
▷ Protected methods8916.42%
▷ Private methods30.55%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.96MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png439.02KB118.55KB▼ 73.00%
CMB2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
assets/screenshot-2.png376.30KB96.23KB▼ 74.43%
assets/banner-1544x500.png77.46KB32.28KB▼ 58.33%
assets/icon-128x128.png14.03KB5.35KB▼ 61.87%