10% ralo-post-redirect

Code Review | Post Redirect by Ralo

WordPress plugin Post Redirect by Ralo scored 10% from 54 tests.

About plugin

  • Plugin page: ralo-post-redirect
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 15, 2016
  • Latest release: Jan 15, 2016
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: renatosakamoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 692 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/ralo-post-redirect/ralo-post-redirect.php+33
    Use of undefined constant RALO_REDIRECT_METAKEY - assumed 'RALO_REDIRECT_METAKEY' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.81ms] Passed 4 tests

An overview of server-side resources used by Post Redirect by Ralo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.48 ▼39.26
Dashboard /wp-admin2.09 ▼1.215.73 ▼43.68
Posts /wp-admin/edit.php2.09 ▼1.265.49 ▼47.45
Add New Post /wp-admin/post-new.php2.09 ▼3.795.88 ▼88.83
Media Library /wp-admin/upload.php2.09 ▼1.146.04 ▼28.74

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Post Redirect by Ralo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.201.66 ▼0.3039.07 ▼3.47
Dashboard /wp-admin2,206 ▲215.86 ▲0.9697.82 ▼14.4539.26 ▼2.95
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0239.47 ▲2.0235.90 ▲0.09
Add New Post /wp-admin/post-new.php6,465 ▲4,94620.44 ▼2.72944.42 ▲281.9864.42 ▲2.65
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0097.13 ▼4.5443.25 ▼1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/ralo-post-redirect/ralo-post-redirect.php+33
    Use of undefined constant RALO_REDIRECT_METAKEY - assumed 'RALO_REDIRECT_METAKEY' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ralo-post-redirect/ralo-post-redirect.php:23

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === ralo-post-redirect === )
The official readme.txt might help

ralo-post-redirect/ralo-post-redirect.php Passed 13 tests

The primary PHP file in "Post Redirect by Ralo" version 1.0 is used by WordPress to initiate all plugin functionality
20 characters long description:
Simple post redirect

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
There were no executable files found in this plugin102 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23115100
Markdown1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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 are no PNG files in this plugin