74% flusso-ai-generated-content

Code Review | Flusso AI: ChatGPT Content Generator, AI Tools for WordPress

WordPress plugin Flusso AI: ChatGPT Content Generator, AI Tools for WordPress scored74%from 54 tests.

About plugin

  • Plugin page: flusso-ai-generat...
  • Plugin version: 0.9.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 21, 2023
  • Latest release: Aug 21, 2023
  • Number of updates: 25
  • Update frequency: every 4.9 days
  • Top authors: emanadesign (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /694 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.67MB] [CPU: ▼2.49ms] Passed 4 tests

Analyzing server-side resources used by Flusso AI: ChatGPT Content Generator, AI Tools for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6248.59 ▲5.54
Dashboard /wp-admin4.04 ▲0.6959.71 ▼11.96
Posts /wp-admin/edit.php4.09 ▲0.7357.90 ▲9.22
Add New Post /wp-admin/post-new.php6.58 ▲0.7095.11 ▼10.97
Media Library /wp-admin/upload.php3.90 ▲0.6749.05 ▲7.42
Settings /wp-admin/admin.php?page=flusso-ai-settings3.8739.06
Playground /wp-admin/admin.php?page=flusso-ai-playground3.9248.88
Content Features /wp-admin/admin.php?page=flusso-ai-content-features3.8743.09
Flusso AI /wp-admin/admin.php?page=flusso-ai-generated-content3.8747.16
Delete Content /wp-admin/admin.php?page=flusso-ai-delete3.8739.35
Image Generator /wp-admin/admin.php?page=flusso-ai-image-generator3.8742.97
Post Creator /wp-admin/admin.php?page=flusso-ai-post-creator3.9349.20
Speech to Text /wp-admin/admin.php?page=flusso-ai-speech-to-text3.9155.43

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: 1 new table, 6 new options
New tables
wp_emn_fl_comments_sentiment
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flusso AI: ChatGPT Content Generator, AI Tools for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.40 ▼0.994.40 ▲2.3436.57 ▼5.97
Dashboard /wp-admin2,305 ▲1284.99 ▼0.5694.18 ▼5.9741.46 ▼3.42
Posts /wp-admin/edit.php2,214 ▲1112.42 ▲0.4340.46 ▲4.3236.37 ▲0.05
Add New Post /wp-admin/post-new.php1,774 ▲24621.51 ▼1.76703.37 ▲34.0785.60 ▲33.42
Media Library /wp-admin/upload.php1,586 ▲1834.58 ▲0.39114.85 ▲13.0747.60 ▲1.30
Settings /wp-admin/admin.php?page=flusso-ai-settings1,0842.0535.38105.22
Playground /wp-admin/admin.php?page=flusso-ai-playground1,3734.8862.06118.11
Content Features /wp-admin/admin.php?page=flusso-ai-content-features2,6552.6063.3483.83
Flusso AI /wp-admin/admin.php?page=flusso-ai-generated-content1,5532.0637.7281.85
Delete Content /wp-admin/admin.php?page=flusso-ai-delete9972.0331.3742.55
Image Generator /wp-admin/admin.php?page=flusso-ai-image-generator1,1612.0231.3357.76
Post Creator /wp-admin/admin.php?page=flusso-ai-post-creator2,1427.68143.40105.35
Speech to Text /wp-admin/admin.php?page=flusso-ai-speech-to-text1,3964.8956.3970.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_emn_fl_comments_sentiment
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flusso-ai-generated-content/inc/meta-boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flusso-ai-generated-content/inc/functions.php:2112
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flusso-ai-generated-content/inc/engine/core.php:944
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/flusso-ai-generated-content/main.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: openai, gpt-4, whisper, ai, chatgpt...

flusso-ai-generated-content/main.php 85% from 13 tests

This is the main PHP file of "Flusso AI: ChatGPT Content Generator, AI Tools for WordPress" version 0.9.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 237 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flusso-ai-generated-content.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin11,515 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS111,248545,791
PHP175379333,678
PO File15126261,303
JavaScript79590621
JSON300103
Markdown14017
SVG2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.83
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods96
▷ Static methods3536.46%
▷ Public methods9295.83%
▷ Protected methods00.00%
▷ Private methods44.17%
Functions67
▷ Named functions6698.51%
▷ Anonymous functions11.49%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/symbol.png10.95KB10.79KB▼ 1.48%