90% override-comment-options

Code Review | Override Comment Options

WordPress plugin Override Comment Options scored90%from 54 tests.

About plugin

  • Plugin page: override-comment-...
  • Plugin version: 2.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2019
  • Latest release: Oct 25, 2023
  • Number of updates: 14
  • Update frequency: every 105.1 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.28ms] Passed 4 tests

This is a short check of server-side resources used by Override Comment Options
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.26 ▼0.83
Dashboard /wp-admin3.32 ▲0.0243.00 ▼2.66
Posts /wp-admin/edit.php3.37 ▲0.0140.53 ▼15.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.64 ▼9.81
Media Library /wp-admin/upload.php3.24 ▲0.0135.00 ▲0.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Override Comment Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.35 ▼0.051.71 ▲0.1141.03 ▲0.07
Dashboard /wp-admin2,198 ▲175.61 ▼0.1481.24 ▼15.2135.93 ▼8.74
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0033.25 ▼10.3635.08 ▼10.23
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.13667.95 ▲29.1753.18 ▼11.60
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.0195.44 ▼6.3640.83 ▼3.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: discussion, comments, options

override-comment-options/override-comment-options.php 92% from 13 tests

The main PHP script in "Override Comment Options" version 2.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2343654

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin