68% awesome-ssl

Code Review | Awesome SSL

WordPress plugin Awesome SSL scored 68% from 54 tests.

About plugin

  • Plugin page: awesome-ssl
  • Plugin version: 1.7.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 5.9.2
  • First release: Apr 30, 2021
  • Latest release: Dec 27, 2021
  • Number of updates: 161
  • Update frequency: every 1.5 days
  • Top authors: ejslondon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 786 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.80MB] [CPU: ▼274.31ms] Passed 4 tests

A check of server-side resources used by Awesome SSL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.65 ▲5.5272.76 ▲46.37
Dashboard /wp-admin8.66 ▲5.2657.03 ▲23.27
Posts /wp-admin/edit.php8.67 ▲5.0360.45 ▲22.05
Add New Post /wp-admin/post-new.php10.52 ▲3.55117.42 ▼1,160.51
Media Library /wp-admin/upload.php8.66 ▲5.3744.17 ▲17.94
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.6744.08

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 4 new options
New WordPress options
fs_active_plugins
fs_accounts
fs_debug_mode
fs_gdpr

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome SSL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,809 ▲6715.96 ▼0.146.41 ▲0.792.54 ▲0.08
Dashboard /wp-admin2,938 ▲806.06 ▼0.14119.17 ▼16.90173.00 ▲14.44
Posts /wp-admin/edit.php2,734 ▲403.24 ▲0.0067.58 ▲5.86164.36 ▲23.93
Add New Post /wp-admin/post-new.php1,678 ▼7421.98 ▲1.04428.81 ▼66.50181.15 ▲27.85
Media Library /wp-admin/upload.php1,744 ▲465.53 ▲0.01139.15 ▼3.05200.35 ▲11.95
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,4472.5355.02112.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Notice in wp-content/plugins/awesome-ssl/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 4 options in the database
    • fs_accounts
    • fs_gdpr
    • fs_debug_mode
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/awesome-ssl/freemius/templates/ajax-loader.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/awesome-ssl/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-ssl/Index.php:18
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/awesome-ssl/freemius/templates/account/partials/addon.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (This is the Admin Area admin area.(png|jpg|jpeg|gif).) image not found
You can look at the official readme.txt

awesome-ssl/Index.php 92% from 13 tests

The primary PHP file in "Awesome SSL" version 1.7.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("awesome-ssl.php" instead of "Index.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected31,057 lines of code in 125 files:
LanguageFilesBlank linesComment linesLines of code
PHP1087,24416,10130,599
Markdown1680214
JavaScript43459203
JSON10027
CSS110014

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity88.65
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes24.35%
▷ Concrete classes4495.65%
▷ Final classes00.00%
Methods1,144
▷ Static methods17315.12%
▷ Public methods80470.28%
▷ Protected methods151.31%
▷ Private methods32528.41%
Functions98
▷ Named functions98100.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 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%