84% fluent-comments

Code Review | Fluent Comments - Spam protection, AntiSpam, Ajax Enhanced Comments

WordPress plugin Fluent Comments - Spam protection, AntiSpam, Ajax Enhanced Comments scored84%from 54 tests.

About plugin

  • Plugin page: fluent-comments
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 30, 2023
  • Latest release: Oct 1, 2023
  • Number of updates: 4
  • Update frequency: every 27.8 days
  • Top authors: techjewel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.32ms] Passed 4 tests

This is a short check of server-side resources used by Fluent Comments - Spam protection, AntiSpam, Ajax Enhanced Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.19 ▲2.53
Dashboard /wp-admin3.47 ▲0.1643.73 ▼3.98
Posts /wp-admin/edit.php3.58 ▲0.2245.38 ▲0.24
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.01 ▼4.03
Media Library /wp-admin/upload.php3.39 ▲0.1633.26 ▼1.50

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Fluent Comments - Spam protection, AntiSpam, Ajax Enhanced Comments: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.421.67 ▼0.0739.90 ▼4.22
Dashboard /wp-admin2,209 ▲184.85 ▼0.07100.33 ▲0.3237.68 ▲0.40
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0336.97 ▲1.0732.65 ▲1.19
Add New Post /wp-admin/post-new.php1,534 ▲1423.26 ▲0.05605.48 ▼95.7249.26 ▼13.70
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0095.03 ▼14.5944.31 ▼2.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Comment' not found in wp-content/plugins/fluent-comments/app/Services/FluentWalkerComment.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: better comments, ajax comments, spam protection, comments

fluent-comments/fluent-comments.php Passed 13 tests

Analyzing the main PHP file in "Fluent Comments - Spam protection, AntiSpam, Ajax Enhanced Comments" version 1.0.0
67 characters long description:
Simple Comments Plugin for WordPress to fight with spams and trolls

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected818 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11192136815
JavaScript2002
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.17
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods34
▷ Static methods1647.06%
▷ Public methods2676.47%
▷ Protected methods38.82%
▷ Private methods514.71%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin