62% wp-comment-redirect

Code Review | Redirect After Comment To Custom Page

WordPress plugin Redirect After Comment To Custom Page scored62%from 54 tests.

About plugin

  • Plugin page: wp-comment-redirect
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Jan 5, 2021
  • Number of updates: 10
  • Update frequency: every 172.7 days
  • Top authors: pawaryogesh1989 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,970 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.96MB] [CPU: ▼36.78ms] Passed 4 tests

This is a short check of server-side resources used by Redirect After Comment To Custom Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.55 ▼3.67
Dashboard /wp-admin3.00 ▼0.3521.96 ▼38.05
Posts /wp-admin/edit.php3.00 ▼0.3625.14 ▼21.77
Add New Post /wp-admin/post-new.php3.00 ▼2.8921.91 ▼78.00
Media Library /wp-admin/upload.php3.00 ▼0.2323.73 ▼9.31
Comment Redirect Settings /wp-admin/plugins.php?page=comment-redirect-settings3.0022.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Redirect After Comment To Custom Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.27 ▼0.091.84 ▼0.2243.01 ▼0.32
Dashboard /wp-admin2,202 ▲225.61 ▲0.0793.44 ▲0.1042.11 ▲0.77
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0041.81 ▲3.3336.38 ▼1.10
Add New Post /wp-admin/post-new.php1,530 ▲423.06 ▼0.43619.15 ▼76.3851.70 ▼6.40
Media Library /wp-admin/upload.php1,401 ▲14.17 ▲0.0396.82 ▼22.5043.48 ▼3.63
Comment Redirect Settings /wp-admin/plugins.php?page=comment-redirect-settings7932.0125.5825.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/plugins.php?page=comment-redirect-settings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-comment-redirect/wp-comment-redirect.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-comment-redirect/views/redirect-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

wp-comment-redirect/wp-comment-redirect.php 92% from 13 tests

"Redirect After Comment To Custom Page" version 3.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Everything looks great! No dangerous files found in this plugin53 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3153353

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 were not PNG files found in your plugin