83% redirect-to-welcome-or-landing-page

Code Review | Redirect wordpress to welcome or landing page

WordPress plugin Redirect wordpress to welcome or landing page scored83%from 54 tests.

About plugin

  • Plugin page: redirect-to-welco...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Feb 11, 2015
  • Latest release: Sep 24, 2017
  • Number of updates: 16
  • Update frequency: every 59.8 days
  • Top authors: hunikal (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /14,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.15ms] Passed 4 tests

Server-side resources used by Redirect wordpress to welcome or landing page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.66 ▼1.28
Dashboard /wp-admin3.34 ▲0.0357.42 ▲5.50
Posts /wp-admin/edit.php3.39 ▲0.0353.66 ▲3.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.00 ▼8.71
Media Library /wp-admin/upload.php3.26 ▲0.0339.45 ▲2.10
Redirect to welcome or landing page /wp-admin/options-general.php?page=eslam_me_wordpress_redirect_to_landing_page3.2233.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Redirect wordpress to welcome or landing page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.74 ▲0.361.78 ▼0.2643.68 ▲0.71
Dashboard /wp-admin2,225 ▲195.88 ▲1.04109.46 ▼1.6143.33 ▲1.10
Posts /wp-admin/edit.php2,104 ▲12.05 ▲0.0139.76 ▼6.2035.60 ▼2.19
Add New Post /wp-admin/post-new.php1,548 ▲1723.22 ▼0.09670.68 ▼27.7561.76 ▲11.29
Media Library /wp-admin/upload.php1,401 ▼24.20 ▼0.0396.51 ▼6.4144.01 ▲0.81
Redirect to welcome or landing page /wp-admin/options-general.php?page=eslam_me_wordpress_redirect_to_landing_page9192.0623.9932.17

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/redirect-to-welcome-or-landing-page/eslam_me_wordpress_redirect_to_landing_page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 34 tag instead of maximum 10
  • Donate link: Invalid URI found ("Eslam Mahmoud")
  • Screenshots: Screenshot #1 (No screen shots available.) image missing
Please take inspiration from this readme.txt

redirect-to-welcome-or-landing-page/eslam_me_wordpress_redirect_to_landing_page.php 92% from 13 tests

Analyzing the main PHP file in "Redirect wordpress to welcome or landing page" version 2.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("redirect-to-welcome-or-landing-page.php" instead of "eslam_me_wordpress_redirect_to_landing_page.php")

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 detected149 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11543149

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.86
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
files/wordpresschatbot.com_logo.png23.50KB9.64KB▼ 58.99%
files/donate-paypal.png8.20KB4.04KB▼ 50.72%