89% page-redirects

Code Review | Page Redirects - Redirect any Post, Page or Product

WordPress plugin Page Redirects - Redirect any Post, Page or Product scored89%from 54 tests.

About plugin

  • Plugin page: page-redirects
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: May 9, 2023
  • Number of updates: 10
  • Update frequency: every 10.4 days
  • Top authors: pluginsclub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /271 total downloads

Benchmarks

Plugin footprint 82% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.95ms] 75% from 4 tests

A check of server-side resources used by Page Redirects - Redirect any Post, Page or Product
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,474.36ms on /wp-admin/options-general.php?page=pluginsclub_redirect_url)
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.72 ▼4.27
Dashboard /wp-admin3.33 ▲0.0348.13 ▼6.00
Posts /wp-admin/edit.php3.38 ▲0.0350.72 ▼7.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.17 ▼14.16
Media Library /wp-admin/upload.php3.26 ▲0.0337.46 ▼2.97
Redirects /wp-admin/options-general.php?page=pluginsclub_redirect_url3.231,474.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Page Redirects - Redirect any Post, Page or Product
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.30 ▼0.945.00 ▲3.1846.60 ▲3.81
Dashboard /wp-admin2,210 ▲224.84 ▼0.04109.20 ▼0.7541.83 ▼4.97
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0140.68 ▲0.9636.24 ▲1.79
Add New Post /wp-admin/post-new.php6,233 ▲4,71926.18 ▲8.63926.51 ▲226.1055.14 ▼15.18
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.01112.43 ▲3.4248.23 ▲5.83
Redirects /wp-admin/options-general.php?page=pluginsclub_redirect_url8762.0225.2225.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: redirect, post redirect, 301, page redirects, page redirect...

page-redirects/page-redirects.php 92% from 13 tests

The main PHP script in "Page Redirects - Redirect any Post, Page or Product" version 1.2 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin663 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1123488
PHP22622175

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/pluginsclub_logo_black.png22.36KB10.65KB▼ 52.36%