83% wc-ssl-seal

Code Review | WooCommerce SSL Seal

WordPress plugin WooCommerce SSL Seal scored 83% from 54 tests.

About plugin

  • Plugin page: wc-ssl-seal
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 29
  • Update frequency: every 97.2 days
  • Top authors: wpfixit (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active / 16,052 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.03MB] [CPU: ▼1.37ms] Passed 4 tests

A check of server-side resources used by WooCommerce SSL Seal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.27 ▼5.28
Dashboard /wp-admin3.33 ▲0.0346.33 ▼2.97
Posts /wp-admin/edit.php3.38 ▲0.0350.15 ▲1.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.18 ▲0.82
Media Library /wp-admin/upload.php3.25 ▲0.0335.93 ▲4.57

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WooCommerce SSL Seal: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.31 ▼1.134.54 ▲2.7043.19 ▼9.43
Dashboard /wp-admin2,218 ▲305.84 ▲0.94105.46 ▼9.5942.11 ▼6.86
Posts /wp-admin/edit.php2,100 ▲112.00 ▲0.0140.55 ▲5.2237.49 ▲3.97
Add New Post /wp-admin/post-new.php1,542 ▲2223.38 ▲0.16657.60 ▲16.3755.54 ▼0.82
Media Library /wp-admin/upload.php1,397 ▲94.26 ▲0.1097.13 ▼1.2242.43 ▼1.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-ssl-seal/WCsslseal.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: A description for screenshot #3 is missing in wc-ssl-seal/assets to your readme.txt
You can look at the official readme.txt

wc-ssl-seal/WCsslseal.php 85% from 13 tests

The entry point to "WooCommerce SSL Seal" version 3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-ssl-seal.php" instead of "WCsslseal.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)

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
There were no executable files found in this plugin166 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11049128
JavaScript17427
CSS10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected