90% post-date-change-redirection

Code Review | Post Date Change Redirection

WordPress plugin Post Date Change Redirection scored90%from 54 tests.

About plugin

  • Plugin page: post-date-change-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: May 27, 2023
  • Number of updates: 14
  • Update frequency: every 250.8 days
  • Top authors: gagan0123 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active /43,737 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.86ms] Passed 4 tests

Server-side resources used by Post Date Change Redirection
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.02 ▼4.95
Dashboard /wp-admin3.31 ▲0.0052.58 ▼3.46
Posts /wp-admin/edit.php3.36 ▲0.0047.83 ▼3.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.54 ▼7.02
Media Library /wp-admin/upload.php3.23 ▲0.0047.83 ▲8.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Post Date Change Redirection
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.181.66 ▼0.2750.39 ▼4.99
Dashboard /wp-admin2,206 ▲215.86 ▲0.00107.10 ▼20.2440.98 ▼15.77
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0339.85 ▼4.7036.01 ▼6.19
Add New Post /wp-admin/post-new.php1,533 ▲1323.12 ▼0.31704.04 ▼32.4273.99 ▲2.63
Media Library /wp-admin/upload.php1,385 ▼04.13 ▼0.04119.79 ▲0.6251.67 ▼4.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: 301, redirection, post date

post-date-change-redirection/index.php 92% from 13 tests

The entry point to "Post Date Change Redirection" version 2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-date-change-redirection.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161551

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin