83% zoho-flow

Code Review | Zoho Flow

WordPress plugin Zoho Flow scored83%from 54 tests.

About plugin

  • Plugin page: zoho-flow
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.2.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 31, 2020
  • Latest release: Nov 10, 2023
  • Number of updates: 45
  • Update frequency: every 26.0 days
  • Top authors: zohoflow (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /23,587 total downloads

Benchmarks

Plugin footprint 83% 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.10MB] [CPU: ▼7.74ms] Passed 4 tests

This is a short check of server-side resources used by Zoho Flow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.53 ▼6.15
Dashboard /wp-admin3.44 ▲0.1044.13 ▼16.13
Posts /wp-admin/edit.php3.49 ▲0.1347.69 ▲1.31
Add New Post /wp-admin/post-new.php6.07 ▲0.1986.15 ▼9.99
Media Library /wp-admin/upload.php3.30 ▲0.0736.49 ▲3.83

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zoho Flow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲8514.40 ▲0.171.88 ▼0.0143.26 ▲0.29
Dashboard /wp-admin2,266 ▲895.65 ▲0.0186.77 ▼1.3237.85 ▲1.29
Posts /wp-admin/edit.php2,225 ▲1282.19 ▲0.2236.71 ▲0.5953.38 ▲17.96
Add New Post /wp-admin/post-new.php1,540 ▲1423.20 ▼0.01687.62 ▲14.3151.84 ▼7.82
Media Library /wp-admin/upload.php1,525 ▲1284.27 ▲0.09101.84 ▲3.0472.44 ▲30.73

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Zoho_Flow_Service' not found in wp-content/plugins/zoho-flow/integrations/wpforms/wpforms.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zoho_Flow_Service' not found in wp-content/plugins/zoho-flow/integrations/fluentcrm/fluentcrm.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Zoho_Flow_Service' not found in wp-content/plugins/zoho-flow/integrations/digi-member/digi-member.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Zoho_Flow_Service' not found in wp-content/plugins/zoho-flow/integrations/ultimate-member/ultimate-member.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Zoho_Flow_Service' not found in wp-content/plugins/zoho-flow/integrations/ninja-forms/ninja-forms.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Zoho_Flow_Service' not found in wp-content/plugins/zoho-flow/integrations/elementor/elementor.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (172 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

zoho-flow/zoho-flow.php 92% from 13 tests

"Zoho Flow" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 250 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin16,500 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP361,11834312,467
SVG31913,179
CSS111215600
JavaScript33113254

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 126)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity47.47
▷ Minimum class complexity5.00
▷ Maximum class complexity292.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity126.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods436
▷ Static methods20.46%
▷ Public methods39490.37%
▷ Protected methods40.92%
▷ Private methods388.72%
Functions29
▷ Named functions2689.66%
▷ Anonymous functions310.34%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.70MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logos/gravity-forms.png7.51KB4.10KB▼ 45.41%
assets/images/logos/woocommerce.png15.61KB6.24KB▼ 60.05%
assets/images/logos/ultimate-member.png36.11KB9.65KB▼ 73.27%
assets/images/logos/learndash.png1.46KB1.33KB▼ 9.11%
assets/images/logos/mailpoet.png10.74KB4.01KB▼ 62.67%