89% ai-assistant-elementor

Code Review | AI Assistant for Elementor - Auto Content Writer, OpenAI, ChatGPT

WordPress plugin AI Assistant for Elementor - Auto Content Writer, OpenAI, ChatGPT scored89%from 54 tests.

About plugin

  • Plugin page: ai-assistant-elem...
  • Plugin version: 1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2023
  • Latest release: Oct 27, 2023
  • Number of updates: 16
  • Update frequency: every 16.8 days
  • Top authors: livemesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.94ms] Passed 4 tests

A check of server-side resources used by AI Assistant for Elementor - Auto Content Writer, OpenAI, ChatGPT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1937.25 ▼0.93
Dashboard /wp-admin3.53 ▲0.2248.54 ▼0.01
Posts /wp-admin/edit.php3.65 ▲0.2847.13 ▼6.00
Add New Post /wp-admin/post-new.php6.11 ▲0.2281.22 ▼16.61
Media Library /wp-admin/upload.php3.45 ▲0.2235.37 ▼0.20
Elementor AI Assistant /wp-admin/options-general.php?page=livemesh_el_assistant3.4632.33

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

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

Browser metrics Passed 4 tests

A check of browser resources used by AI Assistant for Elementor - Auto Content Writer, OpenAI, ChatGPT
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.17 ▼0.461.67 ▲0.0036.83 ▼2.29
Dashboard /wp-admin2,202 ▲225.53 ▼0.1483.94 ▼5.4235.71 ▼8.97
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0040.97 ▼0.7737.41 ▲1.15
Add New Post /wp-admin/post-new.php1,529 ▼623.67 ▲5.25677.74 ▲73.3053.40 ▼9.48
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.0795.71 ▲1.4644.13 ▲1.52
Elementor AI Assistant /wp-admin/options-general.php?page=livemesh_el_assistant1,1182.2433.5243.86

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ai, openai, elementor addons, livemesh, elementor...

ai-assistant-elementor/ai-assistant-elementor.php 77% from 13 tests

The main file in "AI Assistant for Elementor - Auto Content Writer, OpenAI, ChatGPT" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,644 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP134343001,304
Sass41522888
CSS39816615
PO File25891,219502
JavaScript611026335

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.14
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods47
▷ Static methods12.13%
▷ Public methods4187.23%
▷ Protected methods36.38%
▷ Private methods36.38%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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/assets/images/logo-dark.png7.81KB3.31KB▼ 57.60%