10% redirect-after-comment-per-page

Code Review | Redirect After Comment Per Page

WordPress plugin Redirect After Comment Per Page scored 10% from 54 tests.

About plugin

  • Plugin page: redirect-after-co...
  • Plugin version: 0.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 5.8.1
  • First release: Dec 22, 2012
  • Latest release: Oct 29, 2019
  • Number of updates: 26
  • Update frequency: every 96.3 days
  • Top authors: policieuxjp (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 5,372 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/redirect-after-comment-per-page/racpp.php+97
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.66ms] Passed 4 tests

Server-side resources used by Redirect After Comment Per Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1441.97 ▲20.29
Dashboard /wp-admin3.08 ▲0.0347.56 ▲3.51
Posts /wp-admin/edit.php3.14 ▲0.0345.17 ▼0.01
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.13 ▼568.22
Media Library /wp-admin/upload.php3.03 ▲0.0233.74 ▲2.09
Redirect after Comment /wp-admin/options-general.php?page=Redirect_after_Comment3.0027.95

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
racpp_redirect_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Redirect After Comment Per Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.99 ▲0.1910.51 ▼2.5550.56 ▲4.34
Dashboard /wp-admin2,975 ▲415.87 ▼0.20136.67 ▼22.31102.92 ▼5.05
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0269.63 ▲2.6882.99 ▼5.43
Add New Post /wp-admin/post-new.php1,732 ▼14018.24 ▼0.94334.41 ▼71.82135.15 ▲24.66
Media Library /wp-admin/upload.php1,812 ▲55.05 ▲0.02153.76 ▼6.48114.38 ▼10.47
Redirect after Comment /wp-admin/options-general.php?page=Redirect_after_Comment1,0562.0856.3571.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/redirect-after-comment-per-page/racpp.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
4 plugin tags: redirect, plugin, comments, launch

redirect-after-comment-per-page/racpp.php 92% from 13 tests

The principal PHP file in "Redirect After Comment Per Page" v. 0.9.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("redirect-after-comment-per-page.php" instead of "racpp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin136 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13340105
PO File18731

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions9
▷ Named functions9100.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
PNG images were not found in this plugin