10% logo-page-redirect

Code Review | Logo Page Redirect

WordPress plugin Logo Page Redirect scored10%from 54 tests.

About plugin

  • Plugin page: logo-page-redirect
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-3.8
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Jan 19, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mcavalon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼0.15MB] [CPU: ▼14.66ms] Passed 4 tests

This is a short check of server-side resources used by Logo Page Redirect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6421.16 ▼21.63
Dashboard /wp-admin3.31 ▲0.0147.14 ▼1.76
Posts /wp-admin/edit.php3.37 ▲0.0146.21 ▼7.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.55 ▼27.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.22 ▼0.86
Logo Page Redirect /wp-admin/options-general.php?page=logo-page-redirect3.1830.21

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Logo Page Redirect: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /8 ▼2,7530.42 ▼14.080.06 ▼2.030.18 ▼42.91
Dashboard /wp-admin2,198 ▲185.56 ▼0.1182.37 ▼9.3040.86 ▼0.02
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0437.62 ▲2.7433.14 ▼0.77
Add New Post /wp-admin/post-new.php1,534 ▲423.34 ▲0.22631.79 ▼42.9065.82 ▲10.11
Media Library /wp-admin/upload.php1,409 ▲94.19 ▼0.0496.20 ▼22.4344.97 ▼4.26
Logo Page Redirect /wp-admin/options-general.php?page=logo-page-redirect8442.0325.5225.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=logo-page-redirect
    • > Notice in wp-content/plugins/logo-page-redirect/logo-page-redirect.php+78
    Undefined index: submit

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/logo-page-redirect/logo-page-redirect.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: logo page, redirect, cookie, settings

logo-page-redirect/logo-page-redirect.php Passed 13 tests

Analyzing the main PHP file in "Logo Page Redirect" version 1.0.1
53 characters long description:
Plugin for redirection to the logo page using cookies

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12239107
CSS1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon16.png0.65KB0.64KB▼ 1.95%
icon.png1.46KB1.43KB▼ 2.33%
screenshot-1.png11.97KB5.13KB▼ 57.14%