90% ssl-secure-seal-for-woocommerce

Code Review | SSL Secure Seal for WooCommerce

WordPress plugin SSL Secure Seal for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: ssl-secure-seal-f...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Nov 11, 2017
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: widianto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.25ms] Passed 4 tests

An overview of server-side resources used by SSL Secure Seal for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.63 ▼6.74
Dashboard /wp-admin3.31 ▲0.0046.08 ▼3.93
Posts /wp-admin/edit.php3.36 ▲0.0046.65 ▼5.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.27 ▼8.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.31 ▼1.32

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SSL Secure Seal for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.81 ▲0.1140.58 ▼0.96
Dashboard /wp-admin2,198 ▲245.54 ▼0.0086.53 ▼0.7440.65 ▼1.52
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0236.23 ▼8.6234.07 ▼6.33
Add New Post /wp-admin/post-new.php1,526 ▼1223.26 ▼0.04663.02 ▼23.8053.12 ▲6.73
Media Library /wp-admin/upload.php1,403 ▲34.35 ▲0.16104.72 ▲5.4947.44 ▼5.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 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
4 plugin tags: secure woocommerce, ssl, woocommerce, woocommerce ssl

ssl-secure-seal-for-woocommerce/ssl-secure-seal-for-woocommerce.php Passed 13 tests

The main PHP file in "SSL Secure Seal for WooCommerce" ver. 0.3.1 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
Show and manage SSL secure seal or custom image on WooCommerce pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12622116
JavaScript15229

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions12
▷ Named functions12100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
secure-seal.png9.65KB3.66KB▼ 62.06%