74% ssl-verification-badge

Code Review | SSL Verification Badge

WordPress plugin SSL Verification Badge scored 74% from 54 tests.

About plugin

  • Plugin page: ssl-verification-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.7.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Feb 5, 2018
  • Number of updates: 9
  • Update frequency: every 82.0 days
  • Top authors: philipjewell (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 3,040 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼31.24ms] Passed 4 tests

Analyzing server-side resources used by SSL Verification Badge
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0060.54 ▲14.83
Dashboard /wp-admin2.99 ▼0.3125.46 ▼21.69
Posts /wp-admin/edit.php2.99 ▼0.3623.28 ▼22.88
Add New Post /wp-admin/post-new.php2.99 ▼2.8925.23 ▼69.18
Media Library /wp-admin/upload.php2.99 ▼0.2322.42 ▼11.20

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SSL Verification Badge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.64 ▼0.751.92 ▲0.0449.38 ▲3.76
Dashboard /wp-admin2,206 ▲185.87 ▲0.97101.63 ▼14.5441.42 ▼3.67
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0137.97 ▲3.9635.22 ▼0.42
Add New Post /wp-admin/post-new.php1,533 ▲423.31 ▲5.08651.47 ▼2.0176.14 ▲14.53
Media Library /wp-admin/upload.php1,388 ▲34.14 ▼0.11110.93 ▼3.8747.30 ▲1.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'sslvb_my_plugin_menu' not found or invalid function name
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ssl-verification-badge/ssl-verification-badge.php:14

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot shows a site secured by an SSL.), #2 (This screen shot description corresponds to screenshot-2.(png|jpg|jpeg|gif). This screenshot shows a site with an expired SSL certificate.), #3 (This screen shot description corresponds to screenshot-3.(png|jpg|jpeg|gif). Note that the screenshot shows a site that doesn't match any SANs on a current certificate or simply not secured by an SSL yet.)
You can look at the official readme.txt

ssl-verification-badge/ssl-verification-badge.php 92% from 13 tests

"SSL Verification Badge" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP171941
CSS10032
JSON1106

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/secure-s.png15.82KB1.01KB▼ 93.61%
img/insecure-s.png16.58KB1.60KB▼ 90.34%
img/unsecure-s.png15.79KB1.05KB▼ 93.35%