84% redirect-to-wp

Code Review | Redirect To WP

WordPress plugin Redirect To WP scored84%from 54 tests.

About plugin

  • Plugin page: redirect-to-wp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.1
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: May 4, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: yehudah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼9.64ms] Passed 4 tests

A check of server-side resources used by Redirect To WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.99 ▼7.15
Dashboard /wp-admin3.31 ▼0.0441.74 ▼17.99
Posts /wp-admin/edit.php3.36 ▲0.0047.53 ▲4.41
Add New Post /wp-admin/post-new.php5.44 ▼0.4477.29 ▼13.64
Media Library /wp-admin/upload.php3.23 ▲0.0032.64 ▲0.22

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

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

Browser metrics Passed 4 tests

Redirect To WP: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.224.68 ▲2.9042.13 ▼0.31
Dashboard /wp-admin2,203 ▲124.84 ▼0.26110.46 ▲10.0343.89 ▲2.05
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0339.21 ▲4.0235.09 ▼1.46
Add New Post /wp-admin/post-new.php6,273 ▲4,75921.76 ▲4.15836.05 ▲162.6551.72 ▼27.21
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0592.44 ▼5.0942.00 ▼5.41

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/redirect-to-wp/redirect.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: htaccess, redirection, 301, redirect

redirect-to-wp/redirect.php 85% from 13 tests

The primary PHP file in "Redirect To WP" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 278 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("redirect-to-wp.php" instead of "redirect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin91 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1352691

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.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%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin