90% https-force

Code Review | HTTPS force

WordPress plugin HTTPS force scored90%from 54 tests.

About plugin

  • Plugin page: https-force
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-5.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2017
  • Latest release: Feb 25, 2019
  • Number of updates: 10
  • Update frequency: every 58.7 days
  • Top authors: sitzz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,052 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.21MB] [CPU: ▼25.24ms] Passed 4 tests

Analyzing server-side resources used by HTTPS force
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0326.36 ▼17.27
Dashboard /wp-admin3.12 ▼0.1826.82 ▼29.54
Posts /wp-admin/edit.php3.26 ▼0.0934.25 ▼17.30
Add New Post /wp-admin/post-new.php5.35 ▼0.5468.00 ▼36.86
Media Library /wp-admin/upload.php3.19 ▼0.0327.42 ▼11.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

HTTPS force: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,367 ▼4192.89 ▼11.471.19 ▼0.906.85 ▼38.78
Dashboard /wp-admin1,939 ▼2380.72 ▼4.862.15 ▼89.6139.58 ▼1.57
Posts /wp-admin/edit.php1,919 ▼1810.71 ▼1.291.97 ▼33.1428.57 ▼8.61
Add New Post /wp-admin/post-new.php881 ▼6470.73 ▼22.171.98 ▼661.066.27 ▼50.13
Media Library /wp-admin/upload.php826 ▼5740.72 ▼3.361.90 ▼113.5524.03 ▼29.23

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: https, mixed content, force

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

The main PHP script in "HTTPS force" version 1.1.0 is automatically included on every request by WordPress
117 characters long description:
This Plugin forces HTTPS protocol on internal links and references and will redirect to a secure version 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
No dangerous file extensions were detected113 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12553113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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
There are no PNG files in this plugin