83% aicomments

Code Review | AIcomments - комментарии и отзывы ChatGPT

WordPress plugin AIcomments - комментарии и отзывы ChatGPT scored83%from 54 tests.

About plugin

  • Plugin page: aicomments
  • Plugin version: 1.2.7
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Oct 3, 2023
  • Number of updates: 25
  • Update frequency: every 9.7 days
  • Top authors: aipost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /997 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.47ms] Passed 4 tests

Analyzing server-side resources used by AIcomments - комментарии и отзывы ChatGPT
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.64 ▼4.81
Dashboard /wp-admin3.33 ▲0.0348.17 ▼1.24
Posts /wp-admin/edit.php3.38 ▲0.0347.38 ▲1.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.53 ▼5.71
Media Library /wp-admin/upload.php3.25 ▲0.0336.44 ▲4.55

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
_neyro_comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

AIcomments - комментарии и отзывы ChatGPT: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.23 ▼1.161.82 ▲0.0140.78 ▼5.54
Dashboard /wp-admin2,222 ▲315.90 ▲1.0399.80 ▼16.2639.33 ▼9.05
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0437.97 ▼3.8935.83 ▲4.25
Add New Post /wp-admin/post-new.php1,547 ▲2223.30 ▼0.04621.88 ▲23.9156.21 ▲1.74
Media Library /wp-admin/upload.php1,404 ▲134.18 ▼0.0595.93 ▼3.0140.20 ▼1.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • _neyro_comments
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/aicomments/tpl/stats.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aicomments/class.wpai.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/aicomments/tpl/options.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: reviews, neural network, comments, ai

aicomments/index.php 77% from 13 tests

The entry point to "AIcomments - комментарии и отзывы ChatGPT" version 1.2.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aicomments.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,004 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS1876442
PHP41039359
JavaScript1360117
PO File1303086

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity44.00
▷ Minimum class complexity44.00
▷ Maximum class complexity44.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1161.11%
▷ Protected methods00.00%
▷ Private methods738.89%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assetst/css/images/check.png1.11KB0.24KB▼ 78.30%
assetst/css/images/comment.png2.38KB1.47KB▼ 38.00%
assetst/css/images/arrow.png1.11KB0.29KB▼ 73.71%
assetst/css/images/doc.png1.52KB0.66KB▼ 56.24%
assetst/css/images/active.png1.10KB0.25KB▼ 77.28%