72% ssl-fixer

Code Review | SSL Fixer

WordPress plugin SSL Fixer scored72%from 54 tests.

About plugin

  • Plugin page: ssl-fixer
  • Plugin version: 0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: Mar 12, 2021
  • Number of updates: 4
  • Update frequency: every 76.8 days
  • Top authors: laitskin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.43ms] Passed 4 tests

This is a short check of server-side resources used by SSL Fixer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.04 ▲0.16
Dashboard /wp-admin3.33 ▲0.0251.50 ▼4.77
Posts /wp-admin/edit.php3.38 ▲0.0259.24 ▲9.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.62 ▲4.84
Media Library /wp-admin/upload.php3.25 ▲0.0237.51 ▼1.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
ssl_fixed
db_upgraded

Browser metrics Passed 4 tests

SSL Fixer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.73 ▲0.591.87 ▼0.2346.19 ▲4.12
Dashboard /wp-admin2,202 ▲255.65 ▲0.0894.77 ▲0.7042.42 ▼4.00
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0041.57 ▲4.1236.74 ▼1.94
Add New Post /wp-admin/post-new.php1,534 ▼1123.19 ▲0.06628.35 ▼31.8764.99 ▼5.66
Media Library /wp-admin/upload.php1,401 ▲14.28 ▲0.07103.05 ▼7.5446.76 ▲3.37
SSL Fixer /wp-admin/ssl-fixer.php260.440.0714.42

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ssl-fixer/sf-ssl-fixer.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ssl-fixer/sf-admin.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/ssl-fixer.php
    • > Network (severe)
    wp-admin/ssl-fixer.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: https, ssl, fix, insecure, mixed content

ssl-fixer/sf-ssl-fixer.php 92% from 13 tests

"SSL Fixer" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ssl-fixer.php" instead of "sf-ssl-fixer.php")

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 plugin108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32033108

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.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin