72% eps-301-redirects

Code Review | 301 Redirects - Easy Redirect Manager

WordPress plugin 301 Redirects - Easy Redirect Manager scored72%from 54 tests.

About plugin

  • Plugin page: eps-301-redirects
  • Plugin version: 2.73
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: May 2, 2013
  • Latest release: Aug 10, 2023
  • Number of updates: 192
  • Update frequency: every 19.6 days
  • Top authors: shawn@eggplantstudios.ca (64.58%)WebFactory (35.94%)

Code review

54 tests

User reviews

491 reviews

Install metrics

200,000+ active /1,645,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.39MB] [CPU: ▲3.16ms] Passed 4 tests

An overview of server-side resources used by 301 Redirects - Easy Redirect Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3743.01 ▲4.47
Dashboard /wp-admin3.80 ▲0.5049.24 ▲0.35
Posts /wp-admin/edit.php3.79 ▲0.4450.15 ▲2.16
Add New Post /wp-admin/post-new.php6.26 ▲0.3795.39 ▲11.62
Media Library /wp-admin/upload.php3.60 ▲0.3739.55 ▲5.64
301 Redirects /wp-admin/options-general.php?page=eps_redirects3.5637.17

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 15 new options
New tables
wp_redirects
New WordPress options
eps_redirects_import-export
eps_redirects_support
eps_redirects_redirects
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
eps_redirects_pro
eps_pointers
301-redirects-notices
eps_redirects_404s
...

Browser metrics Passed 4 tests

301 Redirects - Easy Redirect Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.76 ▼0.651.76 ▲0.1741.85 ▲2.15
Dashboard /wp-admin2,299 ▲1135.07 ▼0.84116.59 ▲14.5250.86 ▲9.64
Posts /wp-admin/edit.php2,145 ▲562.31 ▲0.3246.15 ▲10.8737.28 ▲6.03
Add New Post /wp-admin/post-new.php1,532 ▲1123.36 ▲0.19610.94 ▼66.2734.99 ▼26.50
Media Library /wp-admin/upload.php1,438 ▲504.37 ▲0.17102.62 ▲0.3047.41 ▲5.06
301 Redirects /wp-admin/options-general.php?page=eps_redirects1,5212.6853.0176.24

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
  • The uninstall procedure has failed, leaving 12 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • eps_redirects_redirects
    • widget_recent-posts
    • db_upgraded
    • eps_redirects_pro
    • eps_redirects_import-export
    • eps_redirects_404s
    • eps_redirects_link-scanner
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=eps_redirects
    • > Notice in wp-content/plugins/eps-301-redirects/libs/eps-plugin-options.php+319
    Undefined index: class

SRP 0% 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
  • 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/eps-301-redirects/templates/template.redirect-entry-edit.php
    • > /wp-content/plugins/eps-301-redirects/eps-301-redirects.php
    • > /wp-content/plugins/eps-301-redirects/plugin.php
    • > /wp-content/plugins/eps-301-redirects/templates/admin-panel-donate.php
    • > /wp-content/plugins/eps-301-redirects/templates/template.redirect-entry.php
    • > /wp-content/plugins/eps-301-redirects/templates/admin-tab-error.php
    • > /wp-content/plugins/eps-301-redirects/templates/admin-tab-404s.php
    • > /wp-content/plugins/eps-301-redirects/templates/admin-tab-support.php
    • > /wp-content/plugins/eps-301-redirects/templates/admin-panel-cache.php
    • > /wp-content/plugins/eps-301-redirects/templates/template.redirect-entry-edit-inline.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'epsdonatj\\UserAgent\\UserAgentInterface' not found in wp-content/plugins/eps-301-redirects/libs/UserAgent/UserAgent.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

eps-301-redirects/eps-301-redirects.php 92% from 13 tests

The entry point to "301 Redirects - Easy Redirect Manager" version 2.73 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.6")

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
No dangerous file extensions were detected3,415 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP265147252,474
CSS211829672
JavaScript34659269

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.90
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces3
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods95
▷ Static methods4143.16%
▷ Public methods8690.53%
▷ Protected methods11.05%
▷ Private methods88.42%
Functions17
▷ Named functions1376.47%
▷ Anonymous functions423.53%
Constants77
▷ Global constants45.19%
▷ Class constants7394.81%
▷ Public constants73100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wp-301-logo-full.png1.57KB1.49KB▼ 4.68%
images/wp-301-logo.png6.33KB3.09KB▼ 51.22%
wf-flyout/icons/wp-reset.png3.11KB2.28KB▼ 26.85%
wf-flyout/icons/301-logo.png6.33KB3.09KB▼ 51.22%
images/icon-check.png2.30KB1.67KB▼ 27.44%