10% cleverwise-redirect-it

Code Review | Cleverwise Redirect It

WordPress plugin Cleverwise Redirect It scored10%from 54 tests.

About plugin

  • Plugin page: cleverwise-redire...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Mar 28, 2023
  • Number of updates: 45
  • Update frequency: every 74.2 days
  • Top authors: cyberws (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /7,105 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/cleverwise-redirect-it/ria.php+948
    Undefined variable: sql

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.67ms] Passed 4 tests

An overview of server-side resources used by Cleverwise Redirect It
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.74 ▲3.97
Dashboard /wp-admin3.42 ▲0.0850.05 ▼15.84
Posts /wp-admin/edit.php3.54 ▲0.1845.53 ▼4.49
Add New Post /wp-admin/post-new.php6.01 ▲0.1182.26 ▼12.42
Media Library /wp-admin/upload.php3.35 ▲0.1136.75 ▲2.07

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_redirect_it
New WordPress options
redirect_it_version
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Cleverwise Redirect It: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.74 ▲0.361.75 ▲0.1441.51 ▼0.13
Dashboard /wp-admin2,218 ▲305.87 ▼0.01108.63 ▲4.8042.08 ▲0.78
Posts /wp-admin/edit.php2,104 ▲152.05 ▲0.0236.13 ▲2.1331.73 ▼2.62
Add New Post /wp-admin/post-new.php1,524 ▲517.68 ▼5.30685.52 ▲105.7756.63 ▲1.80
Media Library /wp-admin/upload.php1,403 ▲154.29 ▲0.0994.97 ▼6.3339.48 ▼3.92

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/cleverwise-redirect-it/index.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cleverwise-redirect-it/ria.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cleverwise-redirect-it/index.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === cleverwise-redirect-it === )
The official readme.txt is a good inspiration

cleverwise-redirect-it/index.php 85% from 13 tests

The primary PHP file in "Cleverwise Redirect It" version 2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 719 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cleverwise-redirect-it.php" instead of "index.php")

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
No dangerous file extensions were detected906 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4174205906

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin