83% ai-assistant-by-10web

Code Review | 10Web AI Assistant – AI content writing assistant

WordPress plugin 10Web AI Assistant – AI content writing assistant scored83%from 54 tests.

About plugin

  • Plugin page: ai-assistant-by-1...
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 11, 2023
  • Latest release: Sep 12, 2023
  • Number of updates: 34
  • Update frequency: every 7.2 days
  • Top authors: 10web (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30,000+ active /14,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▲1.24ms] Passed 4 tests

Analyzing server-side resources used by 10Web AI Assistant – AI content writing assistant
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5544.83 ▲1.76
Dashboard /wp-admin3.88 ▲0.5354.65 ▼9.98
Posts /wp-admin/edit.php3.93 ▲0.5756.98 ▲4.89
Add New Post /wp-admin/post-new.php6.44 ▲0.55105.90 ▲8.30
Media Library /wp-admin/upload.php3.74 ▲0.5145.28 ▲9.61

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
taa_version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for 10Web AI Assistant – AI content writing assistant
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4114.46 ▲0.101.71 ▼0.1842.23 ▲3.38
Dashboard /wp-admin2,221 ▲445.60 ▲0.0886.37 ▼6.8467.73 ▲26.17
Posts /wp-admin/edit.php2,141 ▲442.02 ▲0.0638.09 ▼2.2634.91 ▼5.42
Add New Post /wp-admin/post-new.php1,717 ▲19122.23 ▼1.22722.78 ▲41.0763.92 ▲7.65
Media Library /wp-admin/upload.php1,429 ▲324.16 ▼0.15101.11 ▼20.6882.26 ▲32.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • taa_version
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AIAssistantTenWeb\\Library' not found in wp-content/plugins/ai-assistant-by-10web/views/logs.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ai-assistant-by-10web/config.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php on line 27
    • > PHP Fatal error
      Uncaught Error: Class 'Automatic_Upgrader_Skin' not found in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ai-assistant-by-10web/views/customer_support.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Tenweb_Authorization\\Product' not found in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/InstalledPlugin.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AIAssistantTenWeb\\Utils' not found in wp-content/plugins/ai-assistant-by-10web/views/setting.php:2
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/class-wp-upgrader-skins.php): failed to open stream: No such file or directory in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php on line 27
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/class-wp-upgrader-skins.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/WpAjaxUpgraderSkin.php on line 27
    • > PHP Fatal error
      Uncaught Error: Class 'Tenweb_Authorization\\Product' not found in wp-content/plugins/ai-assistant-by-10web/vendor/10web/authorization/src/InstalledTheme.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
3 plugin tags: ai assistant, content, gutenberg

ai-assistant-by-10web/ai-assistant-by-10web.php 77% from 13 tests

The main PHP script in "10Web AI Assistant – AI content writing assistant" version 1.0.18 is automatically included on every request by WordPress
The following require your attention:
  • Git Repository: A Git repository was detected inside this plugin
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin7,053 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP361,0336154,643
CSS211221,121
JavaScript41623141,024
SVG2200205
JSON20059
Markdown1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.90
▷ Minimum class complexity1.00
▷ Maximum class complexity199.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces6
Interfaces1
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods228
▷ Static methods8235.96%
▷ Public methods19485.09%
▷ Protected methods62.63%
▷ Private methods2812.28%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants114
▷ Global constants10491.23%
▷ Class constants108.77%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/how_to_use.png17.09KB16.95KB▼ 0.85%
assets/images/waving_hand.png0.91KB0.96KB0.00%
assets/images/info_icon_black.png0.27KB0.19KB▼ 30.15%
assets/images/step_icon.png0.61KB0.32KB▼ 46.70%
assets/images/welcome_image.png143.01KB63.10KB▼ 55.88%