10% ssl-quality-checker

Code Review | SSL Quality Checker

WordPress plugin SSL Quality Checker scored 10% from 53 tests.

About plugin

  • Plugin page: ssl-quality-checker
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.7.2
  • WordPress version: 5.8.1
  • First release: Jul 21, 2015
  • Latest release: Feb 9, 2017
  • Number of updates: 25
  • Update frequency: every 22.8 days
  • Top authors: Createful (100%)

Code review

53 tests

User reviews

3 reviews

Install metrics

200+ active / 4,968 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/ssl-quality-checker/admin/class-ssl-labs-admin.php+314
    Undefined index: cronschedule

Server metrics [RAM: ▲0.06MB] [CPU: ▼262.27ms] Passed 4 tests

Analyzing server-side resources used by SSL Quality Checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1543.04 ▲22.23
Dashboard /wp-admin3.12 ▲0.0641.72 ▼0.67
Posts /wp-admin/edit.php3.20 ▲0.1041.82 ▼4.55
Add New Post /wp-admin/post-new.php5.48 ▲0.0591.02 ▼1,037.80
Media Library /wp-admin/upload.php3.06 ▲0.0533.16 ▼6.04
View Status /wp-admin/admin.php?page=ssl-labs-view-status3.0329.58
Settings /wp-admin/admin.php?page=ssl-labs&tab=default_tab3.0331.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options
ssl_quality_checker_settings

Browser metrics Passed 4 tests

A check of browser resources used by SSL Quality Checker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,716 ▲13515.98 ▲0.448.45 ▼0.4145.18 ▼7.69
Dashboard /wp-admin3,000 ▲1506.16 ▲0.31132.61 ▲7.1499.15 ▼1.66
Posts /wp-admin/edit.php2,754 ▲482.72 ▲0.0465.90 ▲1.3493.25 ▼3.46
Add New Post /wp-admin/post-new.php1,614 ▼26821.86 ▲2.96249.98 ▼115.41111.35 ▲4.16
Media Library /wp-admin/upload.php1,820 ▲485.05 ▲0.01144.50 ▼3.30111.18 ▼4.84
View Status /wp-admin/admin.php?page=ssl-labs-view-status1,0392.3754.9857.38
Settings /wp-admin/admin.php?page=ssl-labs&tab=default_tab1,2672.4859.9765.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 1 option
    • ssl_quality_checker_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status-not-ssl.php
    • > /wp-content/plugins/ssl-quality-checker/public/partials/ssl-labs-public-display.php
    • > /wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-email.php
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'endpoints' of non-object in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status.php on line 24
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-email.php on line 100
    • > PHP Notice
      Trying to get property 'startTime' of non-object in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status-not-ready.php on line 8
    • > PHP Notice
      Undefined variable: response in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status-not-ready.php on line 8
    • > PHP Notice
      Trying to get property 'endpoints' of non-object in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-admin-display.php:24
    • > PHP Notice
      Trying to get property 'endpoints' of non-object in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-email.php on line 100
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-view-status.php on line 13
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/ssl-quality-checker/admin/partials/ssl-labs-email.php on line 120

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ssl validator, qualys ssl, security

ssl-quality-checker/ssl-labs.php 85% from 13 tests

"SSL Quality Checker" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ssl-quality-checker.php" instead of "ssl-labs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,443 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP254591,2781,308
CSS184122
JavaScript132713

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.40
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods95
▷ Static methods99.47%
▷ Public methods7781.05%
▷ Protected methods00.00%
▷ Private methods1818.95%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin