84% comment-tweaks

Code Review | Comment Tweaks

WordPress plugin Comment Tweaks scored84%from 54 tests.

About plugin

  • Plugin page: comment-tweaks
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2019
  • Latest release: Sep 13, 2021
  • Number of updates: 23
  • Update frequency: every 41.7 days
  • Top authors: jnorell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /975 total downloads


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.09MB] [CPU: ▼2.00ms] Passed 4 tests

An overview of server-side resources used by Comment Tweaks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.45 ▲3.62
Dashboard /wp-admin3.39 ▲0.0943.23 ▼3.85
Posts /wp-admin/edit.php3.50 ▲0.1544.57 ▲1.62
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.12 ▼6.55
Media Library /wp-admin/upload.php3.31 ▲0.0832.83 ▲0.79

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comment Tweaks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.17 ▼1.221.74 ▼0.1843.25 ▲3.47
Dashboard /wp-admin2,208 ▲164.84 ▼0.05106.15 ▼7.6240.67 ▼0.64
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0333.74 ▼2.8333.88 ▲1.37
Add New Post /wp-admin/post-new.php1,530 ▲1623.20 ▲5.63678.62 ▲3.6561.82 ▲9.36
Media Library /wp-admin/upload.php1,390 ▲24.24 ▼0.0197.01 ▼0.4043.43 ▲2.74

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/comment-tweaks/public/partials/comment-tweaks-public-display.php
    • > /wp-content/plugins/comment-tweaks/admin/partials/comment-tweaks-admin-display.php

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comments, editor

comment-tweaks/comment-tweaks.php Passed 13 tests

"Comment Tweaks" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Enhance Wordpress native comments (enables WP editor)

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
No dangerous file extensions were detected562 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity10.43
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods820.51%
▷ Public methods3384.62%
▷ Protected methods00.00%
▷ Private methods615.38%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin