83% sticky-social-link

Code Review | Sticky Social Link

WordPress plugin Sticky Social Link scored 83% from 54 tests.

About plugin

  • Plugin page: sticky-social-link
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: May 20, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 9
  • Update frequency: every 9.0 days
  • Top authors: hrhabibpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 413 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.84ms] Passed 4 tests

Analyzing server-side resources used by Sticky Social Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.41 ▲3.26
Dashboard /wp-admin3.40 ▲0.0944.24 ▼6.38
Posts /wp-admin/edit.php3.45 ▲0.0950.64 ▲4.18
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.62 ▲2.28
Media Library /wp-admin/upload.php3.32 ▲0.0938.18 ▲4.21

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Sticky Social Link
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.22 ▼1.151.92 ▼0.1242.42 ▼8.18
Dashboard /wp-admin2,220 ▲355.00 ▼0.85100.10 ▼17.2978.57 ▲28.33
Posts /wp-admin/edit.php2,109 ▲232.07 ▲0.0539.62 ▲2.3735.84 ▲0.99
Add New Post /wp-admin/post-new.php1,422 ▼11217.88 ▼5.42764.88 ▲36.2430.98 ▼27.74
Media Library /wp-admin/upload.php1,396 ▲144.29 ▲0.05111.90 ▲9.8274.25 ▲27.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sticky-social-link/frontend/sslink-frontend.php
    • > /wp-content/plugins/sticky-social-link/sticky-social-link.php
    • > /wp-content/plugins/sticky-social-link/dashboard/sslink-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Screenshot-1.png), #2 (Screenshot-2.png), #3 (Screenshot-3.png), #4 (Screenshot-4.png), #5 (Screenshot-5.png), #6 (Screenshot-6.png), #7 (Screenshot-7.png), #8 (Screenshot-8.png), #9 (Screenshot-9.png), #10 (Screenshot-10.png)
The official readme.txt might help

sticky-social-link/sticky-social-link.php 85% from 13 tests

This is the main PHP file of "Sticky Social Link" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin804 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS21114468
PHP43360330
JavaScript1206

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
22 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/sslink-email.png1.08KB1.03KB▼ 4.51%
img/sslink-whatsapp.png1.87KB1.79KB▼ 4.13%
img/sslink-instagram.png3.41KB1.95KB▼ 42.91%
img/sslink-linkedin.png0.83KB0.78KB▼ 5.80%
img/sslink-behance.png0.71KB0.65KB▼ 8.56%