84% https-redirection

Code Review | Easy HTTPS Redirection (SSL)

WordPress plugin Easy HTTPS Redirection (SSL) scored84%from 54 tests.

About plugin

  • Plugin page: https-redirection
  • Plugin version: 1.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Jul 25, 2023
  • Number of updates: 58
  • Update frequency: every 57.1 days
  • Top authors: mra13 (100%)

Code review

54 tests

User reviews

70 reviews

Install metrics

100,000+ active /968,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Easy HTTPS Redirection (SSL)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.79 ▲5.46
Dashboard /wp-admin3.39 ▲0.0950.22 ▼0.36
Posts /wp-admin/edit.php3.50 ▲0.1548.22 ▲0.70
Add New Post /wp-admin/post-new.php5.97 ▲0.08103.54 ▲11.18
Media Library /wp-admin/upload.php3.31 ▲0.0836.81 ▲1.02
HTTPS Redirection /wp-admin/options-general.php?page=https-redirection3.2634.21

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
httpsrdrctn_options
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Easy HTTPS Redirection (SSL)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.121.85 ▼0.2547.49 ▲1.58
Dashboard /wp-admin2,210 ▲225.85 ▼0.01104.46 ▼13.3842.06 ▼0.53
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0033.80 ▼2.9733.73 ▲0.79
Add New Post /wp-admin/post-new.php1,517 ▼317.66 ▼5.36606.27 ▼64.6251.32 ▼5.35
Media Library /wp-admin/upload.php1,389 ▼24.19 ▲0.0696.03 ▼8.9244.24 ▲1.21
HTTPS Redirection /wp-admin/options-general.php?page=https-redirection9421.7225.8033.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=https-redirection
    • > Notice in wp-content/plugins/https-redirection/https-redirection-settings.php+62
    Undefined variable: message

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (Plugin settings page.) image missing
You can look at the official readme.txt

https-redirection/https-redirection.php Passed 13 tests

"Easy HTTPS Redirection (SSL)" version 1.9.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
The plugin HTTPS Redirection allows an automatic redirection to the "HTTPS" version/URL of the site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin604 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP49170466
PO File117335188
CSS12330
JavaScript10120

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/status-icons.png3.16KB0.49KB▼ 84.48%
images/px.png2.73KB0.09KB▼ 96.60%
screenshot-1.png57.90KB52.32KB▼ 9.63%