78% convertedin-ai-automation-for-woocommerce

Code Review | ConvertedIn AI-Powered E-Commerce Marketing Automation for WooCommerce

WordPress plugin ConvertedIn AI-Powered E-Commerce Marketing Automation for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: convertedin-ai-au...
  • Plugin version: 1.0.20
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2020
  • Latest release: Sep 15, 2023
  • Number of updates: 33
  • Update frequency: every 31.4 days
  • Top authors: convertedin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.88ms] Passed 4 tests

This is a short check of server-side resources used by ConvertedIn AI-Powered E-Commerce Marketing Automation for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.66 ▼3.01
Dashboard /wp-admin3.31 ▲0.0047.48 ▼1.61
Posts /wp-admin/edit.php3.36 ▲0.0048.54 ▲0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.55 ▼10.92
Media Library /wp-admin/upload.php3.23 ▲0.0037.00 ▲2.51

Server storage [IO: ▲0.09MB] [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: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

ConvertedIn AI-Powered E-Commerce Marketing Automation for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.091.76 ▼0.0744.02 ▼2.85
Dashboard /wp-admin2,206 ▲155.88 ▲1.0096.72 ▼20.1937.79 ▼11.43
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.79 ▲2.0235.77 ▲2.00
Add New Post /wp-admin/post-new.php1,514 ▼1917.64 ▼5.80666.81 ▼9.3758.39 ▲6.88
Media Library /wp-admin/upload.php1,385 ▲34.29 ▲0.0891.53 ▼3.9141.27 ▼6.00

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/convertedin-ai-automation-for-woocommerce/public/partials/ConvertedIn-WooCommerce-public-display.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/convertedin-ai-automation-for-woocommerce/admin/partials/installationPage.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/convertedin-ai-automation-for-woocommerce/includes/class-Synchronization-service.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/convertedin-ai-automation-for-woocommerce/includes/class-ConvertedIn-WooCommerce-activator.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convertedin-ai-automation-for-woocommerce/admin/partials/ConvertedIn-WooCommerce-admin-display.php:146
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/convertedin-ai-automation-for-woocommerce/admin/partials/settingsPage.php:3

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("#")
  • Screenshots: Screenshot #2 (screenshots will be added later) image missing
The official readme.txt might help

convertedin-ai-automation-for-woocommerce/convertedin-woocommerce.php 92% from 13 tests

The main PHP file in "ConvertedIn AI-Powered E-Commerce Marketing Automation for WooCommerce" ver. 1.0.20 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("convertedin-ai-automation-for-woocommerce.php" instead of "convertedin-woocommerce.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
There were no executable files found in this plugin1,219 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP172566911,170
SVG20146
JavaScript11283
CSS1150

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.90
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods72
▷ Static methods45.56%
▷ Public methods6590.28%
▷ Protected methods22.78%
▷ Private methods56.94%
Functions16
▷ Named functions743.75%
▷ Anonymous functions956.25%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png8.13KB3.59KB▼ 55.80%