62% blogger-301-redirect

Code Review | Blogger 301 Redirect

WordPress plugin Blogger 301 Redirect scored62%from 54 tests.

About plugin

  • Plugin page: blogger-301-redirect
  • Plugin version: 2.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Apr 8, 2011
  • Latest release: Jul 14, 2019
  • Number of updates: 44
  • Update frequency: every 68.6 days
  • Top authors: sudiptomahato (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /54,833 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.90MB] [CPU: ▼36.08ms] Passed 4 tests

Analyzing server-side resources used by Blogger 301 Redirect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.60 ▲8.24
Dashboard /wp-admin3.04 ▼0.2623.18 ▼25.48
Posts /wp-admin/edit.php3.04 ▼0.3124.38 ▼26.96
Add New Post /wp-admin/post-new.php3.04 ▼2.8521.44 ▼84.44
Media Library /wp-admin/upload.php3.04 ▼0.1928.33 ▼7.43
Blogger 301 Redirect /wp-admin/options-general.php?page=bloggerredirect3.0422.35

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
blog301stat
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Blogger 301 Redirect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.121.81 ▲0.1246.73 ▲6.16
Dashboard /wp-admin2,207 ▲225.83 ▼0.1797.90 ▼8.4238.33 ▼6.38
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0239.34 ▼1.9335.19 ▼4.52
Add New Post /wp-admin/post-new.php1,525 ▼2023.07 ▲5.01624.57 ▼23.7250.15 ▼1.91
Media Library /wp-admin/upload.php1,392 ▲74.12 ▼0.08100.47 ▼5.0944.30 ▲2.17
Blogger 301 Redirect /wp-admin/options-general.php?page=bloggerredirect1,2251.8625.5135.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • blog301stat
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bloggerredirect
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/blogger-301-redirect/bloggerredirect.php:132

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=bloggerredirect
    • > Network (severe)
    https://techxt.com/blogger301_ad.png - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOrigin

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === blogger-301-redirect === )
The official readme.txt is a good inspiration

blogger-301-redirect/bloggerredirect.php 92% from 13 tests

The entry point to "Blogger 301 Redirect" version 2.5.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blogger-301-redirect.php" instead of "bloggerredirect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin317 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11324317

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin