83% quick-pagepost-redirect-plugin

Code Review | Quick Page/Post Redirect Plugin

WordPress plugin Quick Page/Post Redirect Plugin scored83%from 54 tests.

About plugin

  • Plugin page: quick-pagepost-re...
  • Plugin version: 5.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2009
  • Latest release: Jun 8, 2023
  • Number of updates: 98
  • Update frequency: every 51.7 days
  • Top authors: prophecy2040 (72.45%)anadnet (28.57%)

Code review

54 tests

User reviews

146 reviews

Install metrics

100,000+ active /2,223,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.75MB] [CPU: ▲8.23ms] Passed 4 tests

A check of server-side resources used by Quick Page/Post Redirect Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7559.83 ▲19.59
Dashboard /wp-admin4.05 ▲0.7556.70 ▲8.26
Posts /wp-admin/edit.php4.17 ▲0.8157.02 ▲14.34
Add New Post /wp-admin/post-new.php6.65 ▲0.76104.25 ▼7.51
Media Library /wp-admin/upload.php3.96 ▲0.7449.91 ▲17.81
Quick Redirects /wp-admin/admin.php?page=redirect-updates3.9451.17
FAQs/Help /wp-admin/admin.php?page=redirect-faqs4.06368.23
Redirect Summary /wp-admin/admin.php?page=redirect-summary3.9344.22
Meta Options /wp-admin/admin.php?page=meta_addon3.9447.70
Redirect Options /wp-admin/admin.php?page=redirect-options3.9343.14
Import/Export /wp-admin/admin.php?page=redirect-import-export3.9344.12

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
ppr_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Page/Post Redirect Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.30 ▼1.264.70 ▲3.0443.80 ▼2.71
Dashboard /wp-admin2,249 ▲584.87 ▼0.01100.44 ▼11.0138.60 ▼6.01
Posts /wp-admin/edit.php2,151 ▲622.04 ▲0.0540.86 ▲4.6336.93 ▲2.42
Add New Post /wp-admin/post-new.php6,413 ▲4,89925.90 ▲8.28858.38 ▲183.2662.56 ▲2.14
Media Library /wp-admin/upload.php1,431 ▲464.21 ▼0.0399.92 ▲0.6142.25 ▲0.31
Quick Redirects /wp-admin/admin.php?page=redirect-updates1,2602.5546.8838.95
FAQs/Help /wp-admin/admin.php?page=redirect-faqs8142.0525.3826.03
Redirect Summary /wp-admin/admin.php?page=redirect-summary8482.0824.3729.54
Meta Options /wp-admin/admin.php?page=meta_addon1,1402.4145.4251.03
Redirect Options /wp-admin/admin.php?page=redirect-options1,2502.5531.9848.58
Import/Export /wp-admin/admin.php?page=redirect-import-export1,0522.1024.9830.71

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
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • ppr_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

quick-pagepost-redirect-plugin/page_post_redirect_plugin.php 85% from 13 tests

"Quick Page/Post Redirect Plugin" version 5.2.4'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 310 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-pagepost-redirect-plugin.php" instead of "page_post_redirect_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,408 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11272412,324
PO File24324561,526
JavaScript8181400
CSS111142
SVG10016

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.50
Average class complexity555.00
▷ Minimum class complexity555.00
▷ Maximum class complexity555.00
Average method complexity10.72
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods57
▷ Static methods00.00%
▷ Public methods57100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.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
No PNG images were found in this plugin