84% comments-engine-ai

Code Review | Comments Engine AI

WordPress plugin Comments Engine AI scored84%from 54 tests.

About plugin

  • Plugin page: comments-engine-ai
  • Plugin version: 1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 30, 2023
  • Latest release: Oct 6, 2023
  • Number of updates: 5
  • Update frequency: every 25.8 days
  • Top authors: Mcurly (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.21ms] Passed 4 tests

An overview of server-side resources used by Comments Engine AI
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.33 ▲2.54
Dashboard /wp-admin3.45 ▲0.1150.29 ▼12.86
Posts /wp-admin/edit.php3.57 ▲0.2149.83 ▼2.49
Add New Post /wp-admin/post-new.php6.05 ▲0.1793.27 ▼4.04
Media Library /wp-admin/upload.php3.37 ▲0.1539.20 ▲4.99
All Comments /wp-admin/edit-comments.php3.4444.23
Comments Engine AI /wp-admin/edit-comments.php?page=cea_comments3.3934.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Comments Engine AI
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7814.35 ▼0.211.82 ▲0.0443.34 ▲1.15
Dashboard /wp-admin2,233 ▲625.62 ▲0.0492.78 ▼1.2242.63 ▲2.68
Posts /wp-admin/edit.php2,135 ▲382.20 ▲0.2536.93 ▲0.6834.42 ▼0.44
Add New Post /wp-admin/post-new.php6,444 ▲4,91326.34 ▲3.25971.74 ▲300.1642.78 ▼17.50
Media Library /wp-admin/upload.php1,438 ▲354.34 ▲0.1699.05 ▲0.6543.34 ▼2.30
All Comments /wp-admin/edit-comments.php1,8422.3937.7138.55
Comments Engine AI /wp-admin/edit-comments.php?page=cea_comments1,2511.8327.3328.86

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/comments-engine-ai/public/partials/comments-engine-ai-public-display.php
    • > /wp-content/plugins/comments-engine-ai/admin/partials/comments-engine-ai-admin-display.php

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Comments Engine AI : Plugin Setup), #2 (Comments Engine AI : MetaBox to generate comments), #3 (Comments Engine AI : Comments generated)
The official readme.txt might help

comments-engine-ai/comments-engine-ai.php 92% from 13 tests

The principal PHP file in "Comments Engine AI" v. 1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 234 characters long)

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,109 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12198508630
PO File1124131277
JavaScript23546116
CSS3261386

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.22
Average class complexity7.43
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods2674.29%
▷ Protected methods00.00%
▷ Private methods925.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png5.78KB5.77KB0.10%
screenshot-1.png19.85KB19.73KB▼ 0.62%
admin/css/images/ui-icons_444444_256x240.png6.97KB4.18KB▼ 40.04%
admin/img/generate.png0.46KB0.66KB0.00%
screenshot-3.png20.24KB20.33KB0.00%