90% share-social-media

Code Review | Social Icons Sticky

WordPress plugin Social Icons Sticky scored90%from 54 tests.

About plugin

  • Plugin page: share-social-media
  • Plugin version: 1.5.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 26, 2019
  • Latest release: Nov 2, 2023
  • Number of updates: 52
  • Update frequency: every 31.2 days
  • Top authors: scriptstown (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /62,832 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.31ms] Passed 4 tests

Analyzing server-side resources used by Social Icons Sticky
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.93 ▲1.93
Dashboard /wp-admin3.32 ▲0.0244.75 ▼3.16
Posts /wp-admin/edit.php3.37 ▲0.0246.20 ▲0.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.22 ▲2.25
Media Library /wp-admin/upload.php3.24 ▲0.0235.06 ▼0.32
Social Share /wp-admin/options-general.php?page=stssm_settings3.3134.10

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Social Icons Sticky
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲14314.30 ▼0.312.86 ▲0.9659.53 ▲13.71
Dashboard /wp-admin2,199 ▲195.64 ▼0.0195.39 ▼0.6839.96 ▼2.40
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0639.30 ▲5.7935.75 ▲0.86
Add New Post /wp-admin/post-new.php1,529 ▼823.30 ▲4.93633.00 ▼10.9948.55 ▼14.05
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.0495.81 ▼4.2542.04 ▼0.97
Social Share /wp-admin/options-general.php?page=stssm_settings1,6721.9026.3048.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: share, social, icons, media, social icon...

share-social-media/share-social-media.php Passed 13 tests

The main PHP file in "Social Icons Sticky" ver. 1.5.5 adds more information about the plugin and also serves as the entry point for this plugin
140 characters long description:
Add social sharing icons to a post or page of your WordPress website and allow visitors to share your content on various social media sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,061 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS830481,412
PHP15167221,110
JavaScript3323363
PO File17698176

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.86
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods37
▷ Static methods3491.89%
▷ Public methods3491.89%
▷ Protected methods00.00%
▷ Private methods38.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin