78% wp-exit-page-redirect

Code Review | WP Exit Page Redirect

WordPress plugin WP Exit Page Redirect scored78%from 54 tests.

About plugin

  • Plugin page: wp-exit-page-redi...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Feb 12, 2014
  • Latest release: Dec 10, 2018
  • Number of updates: 13
  • Update frequency: every 135.5 days
  • Top authors: LGRIS (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /7,748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼13.29ms] Passed 4 tests

Server-side resources used by WP Exit Page Redirect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.87 ▼5.25
Dashboard /wp-admin3.34 ▼0.0144.52 ▼19.78
Posts /wp-admin/edit.php3.39 ▲0.0343.77 ▼6.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.08 ▼21.33
Media Library /wp-admin/upload.php3.26 ▲0.0336.18 ▲1.47

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
lgr_exitpage_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Exit Page Redirect: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.31 ▼1.091.82 ▲0.2341.85 ▲2.48
Dashboard /wp-admin2,210 ▲184.85 ▼0.1095.66 ▼16.1738.67 ▼4.10
Posts /wp-admin/edit.php2,093 ▲42.16 ▲0.1535.00 ▲0.3930.07 ▼3.74
Add New Post /wp-admin/post-new.php1,517 ▼217.53 ▼5.53684.77 ▲21.9457.42 ▲5.99
Media Library /wp-admin/upload.php1,389 ▲14.25 ▲0.04102.21 ▼3.4745.33 ▲0.47
Exit Page Options /wp-admin/wp-exit-page-redirect.php260.440.1014.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-exit-page-redirect/wp-exit-page-redirect.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/wp-exit-page-redirect.php
    • > Network (severe)
    wp-admin/wp-exit-page-redirect.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: redirect, short code, exit page, meta redirect, shortcode

wp-exit-page-redirect/wp-exit-page-redirect.php 92% from 13 tests

The primary PHP file in "WP Exit Page Redirect" version 1.2.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)

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
Everything looks great! No dangerous files found in this plugin162 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22432162

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin