10% auto-install-free-ssl

Code Review | WordPress Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL

WordPress plugin WordPress Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL scored10%from 54 tests.

About plugin

  • Plugin page: auto-install-free...
  • Plugin version: 3.6.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Jan 31, 2019
  • Latest release: Nov 18, 2023
  • Number of updates: 111
  • Update frequency: every 15.8 days
  • Top authors: speedify (100%)

Code review

54 tests

User reviews

372 reviews

Install metrics

10,000+ active /384,922 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/auto-install-free-ssl/FreeSSLAuto/src/Admin/Factory.php+1152
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲6.46MB] [CPU: ▲44.16ms] 75% from 4 tests

This is a short check of server-side resources used by WordPress Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL
It is recommended to improve the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 6.46MB on /wp-admin/admin.php?page=auto_install_free_ssl-free-vs-premium)
PageMemory (MB)CPU Time (ms)
Home /9.47 ▲6.0083.08 ▲42.94
Dashboard /wp-admin9.93 ▲6.62159.66 ▲111.61
Posts /wp-admin/edit.php9.95 ▲6.59100.31 ▲52.13
Add New Post /wp-admin/post-new.php12.60 ▲6.71117.81 ▲22.39
Media Library /wp-admin/upload.php9.87 ▲6.6491.16 ▲59.17
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.9873.28
Free vs. Premium /wp-admin/admin.php?page=auto_install_free_ssl-free-vs-premium9.5968.04

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 235 new files
Database: no new tables, 21 new options
New WordPress options
db_upgraded
cpanel_settings_auto_install_free_ssl
basic_settings_auto_install_free_ssl
aifs_display_discount_offer_existing_users
all_domains_auto_install_free_ssl
aifs_display_free_premium_offer
theysaidso_admin_options
aifs_user_since_free_only_version
add_cron_job_auto_install_free_ssl
fs_accounts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.23 ▲0.211.54 ▼0.4040.79 ▼4.65
Dashboard /wp-admin2,248 ▲685.56 ▼0.0695.26 ▼4.6668.28 ▲23.12
Posts /wp-admin/edit.php2,169 ▲691.97 ▼0.1037.87 ▼0.2630.91 ▼6.80
Add New Post /wp-admin/post-new.php1,549 ▲2322.13 ▼1.23680.99 ▲36.8063.04 ▲10.94
Media Library /wp-admin/upload.php1,465 ▲624.18 ▲0.03102.67 ▲2.5566.94 ▲22.30
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0911.6629.4626.19
Free vs. Premium /wp-admin/admin.php?page=auto_install_free_ssl-free-vs-premium1,0041.6628.7740.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/auto-install-free-ssl/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 21 options in the database
    • aifs_generate_ssl_manually
    • aifs_admin_notice_display_counter
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • aifs_display_free_premium_offer
    • fs_accounts
    • db_upgraded
    • all_domains_auto_install_free_ssl
    • aifs_display_discount_offer_existing_users
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/auto-install-free-ssl/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php
    • > /wp-content/plugins/auto-install-free-ssl/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: argc in wp-content/plugins/auto-install-free-ssl/vendor/usrflo/registered-domain-libs/PHP/test-regDomain.php on line 29
    • > PHP Fatal error
      Uncaught Error: Interface 'AutoInstallFreeSSL\\FreeSSLAuto\\Acme\\ClientInterface' not found in wp-content/plugins/auto-install-free-ssl/FreeSSLAuto/src/Acme/Client.php:31
    • > PHP Notice
      Undefined index: argc in wp-content/plugins/auto-install-free-ssl/vendor/usrflo/registered-domain-libs/generateEffectiveTLDs.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/auto-install-free-ssl/auto-install-free-ssl.php:44

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: ssl certificate, https redirect, free ssl certificate, ssl, free ssl

auto-install-free-ssl/auto-install-free-ssl.php 92% from 13 tests

Analyzing the main PHP file in "WordPress Free SSL Certificate Plugin, HTTPS Redirect, Renewal Reminder – Auto-Install Free SSL" version 3.6.8
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin49,124 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PHP1549,45220,54548,188
CSS14626540
JavaScript44567227
JSON300118
Markdown239043
Bourne Shell1108

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity73.63
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces6
Interfaces2
Traits0
Classes71
▷ Abstract classes22.82%
▷ Concrete classes6997.18%
▷ Final classes00.00%
Methods1,473
▷ Static methods21814.80%
▷ Public methods1,06472.23%
▷ Protected methods171.15%
▷ Private methods39226.61%
Functions161
▷ Named functions14891.93%
▷ Anonymous functions138.07%
Constants158
▷ Global constants11170.25%
▷ Class constants4729.75%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/auto-install-free-ssl.png31.13KB12.33KB▼ 60.39%