73% http-https-remover

Code Review | SSL Mixed Content Fix

WordPress plugin SSL Mixed Content Fix scored73%from 54 tests.

About plugin

  • Plugin page: http-https-remover
  • Plugin version: 3.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 16, 2016
  • Latest release: Nov 7, 2023
  • Number of updates: 76
  • Update frequency: every 34.0 days
  • Top authors: condacore (57.89%)Steve85b (36.84%)iclyde (7.89%)

Code review

54 tests

User reviews

35 reviews

Install metrics

10,000+ active /284,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▲1.75ms] Passed 4 tests

Analyzing server-side resources used by SSL Mixed Content Fix
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5044.53 ▲1.47
Dashboard /wp-admin3.79 ▲0.4955.09 ▲1.32
Posts /wp-admin/edit.php3.90 ▲0.5458.60 ▲11.22
Add New Post /wp-admin/post-new.php6.38 ▲0.4999.39 ▼1.63
Media Library /wp-admin/upload.php3.72 ▲0.4842.05 ▲5.85
HTTP/HTTPs Removal Settings /wp-admin/options-general.php?page=httphttpsRemoval3.7339.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 12 new options
New WordPress options
_tifm_disable_feature_forever
can_compress_scripts
widget_theysaidso_widget
db_upgraded
jr_plugin_version
analyst_cache
_tifm_feature_enabled
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

SSL Mixed Content Fix: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,119 ▲35714.33 ▲0.071.76 ▲0.0538.55 ▼8.83
Dashboard /wp-admin2,526 ▲3495.76 ▲0.1496.76 ▼6.3975.00 ▲27.40
Posts /wp-admin/edit.php2,444 ▲3442.32 ▲0.3144.96 ▲8.4545.71 ▲10.62
Add New Post /wp-admin/post-new.php1,925 ▲39922.26 ▼0.97611.18 ▼70.1943.51 ▼16.56
Media Library /wp-admin/upload.php1,731 ▲3284.29 ▲0.04108.70 ▲11.0576.39 ▲33.55
HTTP/HTTPs Removal Settings /wp-admin/options-general.php?page=httphttpsRemoval2,2632.4850.27109.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • analyst_cache
    • httpHttpsRemovalOptions
    • db_upgraded
    • _tifm_disable_feature_forever
    • widget_theysaidso_widget
    • widget_recent-posts
    • jr_plugin_version
    • _tifm_force_disable_feature_fix
    • _tifm_feature_enabled
    • can_compress_scripts
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/http-https-remover/analyst/templates/forms/deactivate.php
    • > /wp-content/plugins/http-https-remover/analyst/templates/forms/install.php
    • > /wp-content/plugins/http-https-remover/analyst/templates/optout.php
    • > /wp-content/plugins/http-https-remover/analyst/templates/optin.php
  • 23× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: smileImage in wp-content/plugins/http-https-remover/analyst/templates/forms/deactivate.php on line 11
    • > PHP Notice
      Undefined variable: shieldImage in wp-content/plugins/http-https-remover/analyst/templates/forms/install.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/http-https-remover/analyst/src/Http/Requests/ActivateRequest.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\RequestorContract' not found in wp-content/plugins/http-https-remover/analyst/src/ApiRequestor.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/http-https-remover/analyst/src/Http/Requests/OptOutRequest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/http-https-remover/analyst/src/Http/Requests/InstallRequest.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/http-https-remover/analyst/src/Http/DummyHttpClient.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/http-https-remover/analyst/src/Http/Requests/UninstallRequest.php:14
    • > PHP Fatal error
      Uncaught Error: Call to a member function getPluginName() on null in wp-content/plugins/http-https-remover/analyst/templates/notice.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Analyst\\Contracts\\AnalystContract' not found in wp-content/plugins/http-https-remover/analyst/src/Analyst.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=httphttpsRemoval
    • > Other (warning) in unknown
    /wp-admin/options-general.php?page=httphttpsRemoval - Failed to decode downloaded font: https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap
    • > GET request to /wp-admin/options-general.php?page=httphttpsRemoval
    • > Other (warning) in unknown
    /wp-admin/options-general.php?page=httphttpsRemoval - OTS parsing error: invalid sfntVersion: 791289974

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

http-https-remover/http-https-remover.php Passed 13 tests

"SSL Mixed Content Fix" version 3.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
79 characters long description:
This Plugin creates protocol relative urls by removing http + https from links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,604 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
PHP639201,4593,117
CSS3425271
SVG2802177
JavaScript34139

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces6
Traits0
Classes25
▷ Abstract classes28.00%
▷ Concrete classes2392.00%
▷ Final classes00.00%
Methods215
▷ Static methods2310.70%
▷ Public methods18686.51%
▷ Protected methods104.65%
▷ Private methods198.84%
Functions24
▷ Named functions937.50%
▷ Anonymous functions1562.50%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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
28 PNG files occupy 0.30MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner/views/projects/red/imgs/big-colored-logo-rr.png8.54KB4.02KB▼ 52.89%
banner/views/projects/cdp/imgs/background-texture-grey.png4.97KB4.98KB0.00%
analyst/assets/img/shield_question.png22.05KB11.19KB▼ 49.26%
banner/views/projects/bmi/imgs/background-images.png4.10KB4.09KB0.07%
banner/views/projects/fit/imgs/face3.png2.33KB2.29KB▼ 1.47%