84% override-comment-deadline

Code Review | Override Comment Deadline

WordPress plugin Override Comment Deadline scored84%from 54 tests.

About plugin

  • Plugin page: override-comment-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Nov 4, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: scottnelle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,394 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 gracefully, with no errors

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

Server-side resources used by Override Comment Deadline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.39 ▼3.77
Dashboard /wp-admin3.32 ▲0.0148.90 ▲3.31
Posts /wp-admin/edit.php3.37 ▲0.0148.16 ▼1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.81 ▼0.33
Media Library /wp-admin/upload.php3.24 ▲0.0137.10 ▼3.50

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Override Comment Deadline: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.091.60 ▼0.6242.44 ▼1.89
Dashboard /wp-admin2,206 ▲215.85 ▲0.0499.77 ▼6.4939.92 ▼2.96
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0333.68 ▼1.7636.49 ▲2.43
Add New Post /wp-admin/post-new.php6,237 ▲4,72321.75 ▲3.98823.93 ▲143.6655.98 ▼5.13
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0796.94 ▼1.0342.38 ▼4.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/override-comment-deadline/override-comment-deadline.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: discussion, comments

override-comment-deadline/override-comment-deadline.php Passed 13 tests

The principal PHP file in "Override Comment Deadline" v. 1.0 is loaded by WordPress automatically on each request
107 characters long description:
Allows you to enable comments on posts which are older than the comment deadline set in discussion settings

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122936

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
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
There are no PNG files in this plugin