84% supportflow

Code Review | SupportFlow

WordPress plugin SupportFlow scored84%from 54 tests.

About plugin

  • Plugin page: supportflow
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Jul 5, 2014
  • Latest release: Jun 28, 2016
  • Number of updates: 64
  • Update frequency: every 56.6 days
  • Top authors: iandunn (68.75%)VarunAgw (26.56%)kovshenin (7.81%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.80ms] Passed 4 tests

Analyzing server-side resources used by SupportFlow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1242.87 ▼6.24
Dashboard /wp-admin3.42 ▲0.1256.77 ▲0.08
Posts /wp-admin/edit.php3.54 ▲0.1849.60 ▼6.72
Add New Post /wp-admin/post-new.php6.00 ▲0.12106.80 ▲8.68
Media Library /wp-admin/upload.php3.35 ▲0.1244.14 ▲5.68

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for SupportFlow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.25 ▼0.101.81 ▼0.4845.70 ▼1.76
Dashboard /wp-admin2,200 ▲205.60 ▼0.0197.72 ▲8.6542.60 ▼3.84
Posts /wp-admin/edit.php2,108 ▲82.01 ▲0.0337.91 ▼3.5032.26 ▼0.01
Add New Post /wp-admin/post-new.php1,531 ▲522.98 ▼0.63628.31 ▼75.1655.18 ▼0.61
Media Library /wp-admin/upload.php1,402 ▲54.09 ▼0.12100.82 ▼3.1842.90 ▼1.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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 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
The following issues need your attention
  • 19× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/supportflow/classes/class-supportflow-table.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-statistics.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-wp-cli.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-email-replies.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-admin.php
    • > /wp-content/plugins/supportflow/supportflow-user-widget.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-preferences.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-ui-submissionform.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-ui-widget.php
    • > /wp-content/plugins/supportflow/classes/class-supportflow-logger.php

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: customer, support, it, customer support, admin...

supportflow/supportflow.php 92% from 13 tests

Analyzing the main PHP file in "SupportFlow" version 0.7
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,185 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP191,0469284,266
JavaScript1311048521
CSS4781384
JSON10014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity32.39
▷ Minimum class complexity5.00
▷ Maximum class complexity149.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods211
▷ Static methods52.37%
▷ Public methods20295.73%
▷ Protected methods31.42%
▷ Private methods62.84%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin