84% social-icons-for-woocoomerce-emails

Code Review | Social Icons for WooCoomerce Emails

WordPress plugin Social Icons for WooCoomerce Emails scored84%from 54 tests.

About plugin

  • Plugin page: social-icons-for-...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Aug 11, 2022
  • Number of updates: 45
  • Update frequency: every 49.7 days
  • Top authors: luizbills (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /3,951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.41ms] Passed 4 tests

Server-side resources used by Social Icons for WooCoomerce Emails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0243.76 ▼0.52
Dashboard /wp-admin3.59 ▼0.0451.01 ▼18.18
Posts /wp-admin/edit.php3.70 ▲0.0254.19 ▲4.00
Add New Post /wp-admin/post-new.php6.17 ▲0.02101.23 ▼34.16
Media Library /wp-admin/upload.php3.51 ▲0.0244.31 ▲3.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Social Icons for WooCoomerce Emails: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.041.72 ▼0.5639.10 ▼11.32
Dashboard /wp-admin2,198 ▲185.63 ▼0.0491.99 ▲5.3839.20 ▼5.36
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0139.55 ▲1.7535.42 ▲0.32
Add New Post /wp-admin/post-new.php1,545 ▲1923.28 ▲5.40698.31 ▲66.7768.03 ▲14.27
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.04114.92 ▲9.6852.26 ▲10.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-icons-for-woocoomerce-emails/inc/plugin_hooks.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: links, social, email, footer, woocommerce

social-icons-for-woocoomerce-emails/social-icons-for-woocoomerce-emails.php 92% from 13 tests

The entry point to "Social Icons for WooCoomerce Emails" version 2.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • 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

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
No dangerous file extensions were detected196 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44511155
PO File1121241

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
static/images/instagram.png2.08KB1.23KB▼ 40.87%
static/images/facebook.png0.74KB0.54KB▼ 27.46%
static/images/twitter.png1.43KB1.06KB▼ 26.31%
static/images/youtube.png2.13KB1.59KB▼ 25.31%
static/images/pinterest.png1.89KB1.37KB▼ 27.64%