90% remove-http

Code Review | Remove HTTP: Fix Mixed Content Warning

WordPress plugin Remove HTTP: Fix Mixed Content Warning scored90%from 54 tests.

About plugin

  • Plugin page: remove-http
  • Plugin version: 2.2.0
  • PHP compatiblity: 4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.4
  • WordPress version: 6.3.1
  • First release: Sep 5, 2016
  • Latest release: Apr 7, 2020
  • Number of updates: 14
  • Update frequency: every 93.6 days
  • Top authors: factmaven (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

5,000+ active /50,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.86ms] Passed 4 tests

A check of server-side resources used by Remove HTTP: Fix Mixed Content Warning
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.57 ▼6.36
Dashboard /wp-admin3.34 ▼0.0048.08 ▼14.38
Posts /wp-admin/edit.php3.39 ▲0.0449.06 ▲3.32
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.45 ▼10.02
Media Library /wp-admin/upload.php3.26 ▲0.0438.18 ▲4.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
factmaven_rhttp_version
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Remove HTTP: Fix Mixed Content Warning
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.23 ▼1.421.72 ▼0.2939.59 ▼3.01
Dashboard /wp-admin2,209 ▲214.88 ▼0.9797.80 ▼17.9336.92 ▼5.18
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0441.57 ▲7.5334.90 ▼2.37
Add New Post /wp-admin/post-new.php1,536 ▲1522.98 ▼0.64677.49 ▲6.7364.90 ▲4.93
Media Library /wp-admin/upload.php1,394 ▲34.19 ▲0.00110.41 ▲9.4747.22 ▼0.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

remove-http/remove-http.php Passed 13 tests

"Remove HTTP: Fix Mixed Content Warning" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Removes both HTTP and HTTPS protocols from links.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected93 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3126693

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin