68% ezredirect

Code Review | ezRedirect

WordPress plugin ezRedirect scored68%from 54 tests.

About plugin

  • Plugin page: ezredirect
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Dec 10, 2018
  • Number of updates: 13
  • Update frequency: every 153.5 days
  • Top authors: nuagelab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,466 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼13.21ms] Passed 4 tests

An overview of server-side resources used by ezRedirect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.98 ▼7.87
Dashboard /wp-admin3.31 ▼0.0345.05 ▼20.18
Posts /wp-admin/edit.php3.37 ▲0.0149.99 ▲1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.08 ▼22.98
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▼1.82

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_ezredirect
New WordPress options
ezredirect-dbversion
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

ezRedirect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.35 ▼0.042.05 ▲0.2642.99 ▲0.15
Dashboard /wp-admin2,202 ▲285.63 ▼0.0197.04 ▲2.5442.08 ▼0.47
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0338.38 ▲1.5136.89 ▲4.24
Add New Post /wp-admin/post-new.php1,538 ▲1218.17 ▼4.96620.02 ▼82.5861.03 ▼7.79
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0398.34 ▲1.7242.27 ▲1.44
ezRedirect /wp-admin/ezredirect.php260.420.0818.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_ezredirect
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • ezredirect-dbversion
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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/ezredirect/ezredirect.php:50

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/ezredirect.php
    • > Network (severe)
    wp-admin/ezredirect.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (The redirection management screen)
The official readme.txt is a good inspiration

ezredirect/ezredirect.php Passed 13 tests

The entry point to "ezRedirect" version 1.0.1 is a PHP file that has certain tags in its header comment area
60 characters long description:
Allows creation of URL that redirects to pages or other URLs

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
Good job! No executable or dangerous file extensions detected349 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16075282
PO File1242967

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity7.29
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods114.29%
▷ Private methods114.29%
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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png29.96KB12.28KB▼ 59.03%