84% redirect-editor

Code Review | SEO & redirect

WordPress plugin SEO & redirect scored84%from 54 tests.

About plugin

  • Plugin page: redirect-editor
  • Plugin version: 3.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2012
  • Latest release: Jun 3, 2023
  • Number of updates: 128
  • Update frequency: every 30.5 days
  • Top authors: zuda (92.97%)justincwatt (7.81%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /52,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.80ms] Passed 4 tests

Server-side resources used by SEO & redirect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0227.41 ▼11.73
Dashboard /wp-admin3.38 ▲0.0352.85 ▼7.62
Posts /wp-admin/edit.php3.50 ▲0.1345.77 ▼1.00
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.65 ▲1.15
Media Library /wp-admin/upload.php3.30 ▲0.0735.10 ▲1.28

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

SEO & redirect: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.28 ▼0.091.67 ▲0.1344.51 ▲7.28
Dashboard /wp-admin2,210 ▲365.59 ▲0.0284.50 ▲0.0639.77 ▼3.97
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0233.30 ▼3.0333.76 ▼0.28
Add New Post /wp-admin/post-new.php6,296 ▲4,76725.99 ▲2.37875.82 ▲214.7956.44 ▼4.45
Media Library /wp-admin/upload.php1,406 ▲64.19 ▼0.0195.09 ▼11.9642.95 ▼6.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 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-editor/redirect-editor.php:90

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

readme.txt Passed 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
3 plugin tags: xml sitemap, seo, content analysis

redirect-editor/redirect-editor.php 92% from 13 tests

This is the main PHP file of "SEO & redirect" version 3.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 475 characters long)

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
There were no executable files found in this plugin369 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP28868367
CSS2032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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