83% redirect-for-bloom-by-logic-hop

Code Review | Redirect for Bloom by Logic Hop

WordPress plugin Redirect for Bloom by Logic Hop scored83%from 54 tests.

About plugin

  • Plugin page: redirect-for-bloo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2016
  • Latest release: Nov 15, 2016
  • Number of updates: 9
  • Update frequency: every 2.8 days
  • Top authors: logichop (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,315 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

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

Server-side resources used by Redirect for Bloom by Logic Hop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.47 ▼2.49
Dashboard /wp-admin3.31 ▲0.0145.93 ▼2.93
Posts /wp-admin/edit.php3.37 ▲0.0146.54 ▼0.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.14 ▼2.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.00 ▲0.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Redirect for Bloom by Logic Hop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.56 ▼1.266.36 ▲4.5943.33 ▼0.82
Dashboard /wp-admin2,206 ▲185.79 ▲0.8693.42 ▼9.8941.02 ▼0.62
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0339.44 ▲0.2837.81 ▲4.65
Add New Post /wp-admin/post-new.php1,539 ▲623.05 ▼0.23598.25 ▼70.5850.34 ▼21.61
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.0493.70 ▼8.2042.43 ▼3.07

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/redirect-for-bloom-by-logic-hop/logichop-bloom-redirect.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
4 plugin tags: bloom, optin, redirect, email

redirect-for-bloom-by-logic-hop/logichop-bloom-redirect.php 69% from 13 tests

The entry point to "Redirect for Bloom by Logic Hop" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("redirect-for-bloom-by-logic-hop.php" instead of "logichop-bloom-redirect.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin61 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript30140
PHP2134721

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png119.19KB55.83KB▼ 53.16%