63% social-sticky

Code Review | Social Sticky

WordPress plugin Social Sticky scored63%from 54 tests.

About plugin

  • Plugin page: social-sticky
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2015
  • Latest release: Feb 8, 2015
  • Number of updates: 16
  • Update frequency: every 2.0 days
  • Top authors: wptpnet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,941 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.65ms] Passed 4 tests

A check of server-side resources used by Social Sticky
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.62 ▼32.30
Dashboard /wp-admin2.05 ▼1.264.93 ▼42.86
Posts /wp-admin/edit.php2.05 ▼1.316.20 ▼42.12
Add New Post /wp-admin/post-new.php2.05 ▼3.845.37 ▼85.32
Media Library /wp-admin/upload.php2.05 ▼1.185.93 ▼27.91
Social Sticky /wp-admin/options-general.php?page=ss2.055.32

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Social Sticky
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲21313.64 ▼0.728.64 ▲7.1136.16 ▼2.76
Dashboard /wp-admin2,224 ▲445.78 ▲0.2084.27 ▼2.6338.19 ▼8.46
Posts /wp-admin/edit.php2,131 ▲312.31 ▲0.3334.94 ▼4.2829.59 ▼4.23
Add New Post /wp-admin/post-new.php1,549 ▲2323.37 ▲0.23698.73 ▲7.0941.55 ▼14.12
Media Library /wp-admin/upload.php1,432 ▲354.34 ▲0.1599.40 ▼6.0642.29 ▼2.05
Social Sticky /wp-admin/options-general.php?page=ss1,6912.9759.8328.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ss
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=ss
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=ss
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-effect handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=ss
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=ss
    • > Notice in wp-content/plugins/social-sticky/ss-options-page.php+203
    Undefined index: ShowFaces
    • > GET request to /wp-admin/options-general.php?page=ss
    • > Notice in wp-content/plugins/social-sticky/ss-options-page.php+204
    Undefined index: ShowStream
    • > GET request to /wp-admin/options-general.php?page=ss
    • > Notice in wp-content/plugins/social-sticky/ss-options-page.php+205
    Undefined index: ShowHeader
    • > GET request to /wp-admin/options-general.php?page=ss
    • > Notice in wp-content/plugins/social-sticky/ss-options-page.php+249
    Undefined index: EnableLeftEffect
    • > GET request to /wp-admin/options-general.php?page=ss
    • > Notice in wp-content/plugins/social-sticky/ss-options-page.php+317
    Undefined index: EnableRightEffect

SRP 0% 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 take a closer look at the following
  • 6× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/social-sticky/ss-box-show-effect-triangle-corner.php
    • > /wp-content/plugins/social-sticky/ss-box-show-effect-arc-in.php
    • > /wp-content/plugins/social-sticky/ss-box-show-effect-arc-out.php
    • > /wp-content/plugins/social-sticky/ss-box-show-TWLikeBox-corner.php
    • > /wp-content/plugins/social-sticky/ss-box-show-GGLikeBox-corner.php
    • > /wp-content/plugins/social-sticky/ss-box-show-FBLikeBox-corner.php
  • 393× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 86
    • > PHP Notice
      Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 76
    • > PHP Notice
      Undefined variable: position in wp-content/plugins/social-sticky/ss-box-init.php on line 56
    • > PHP Notice
      Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 86
    • > PHP Notice
      Undefined variable: effect_size in wp-content/plugins/social-sticky/ss-box-init.php on line 41
    • > PHP Notice
      Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 86
    • > PHP Notice
      Undefined variable: ss_animation_id in wp-content/plugins/social-sticky/ss-box-show-effect-triangle-corner.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-sticky/ss-box-show.php:4
    • > PHP Notice
      Undefined variable: position in wp-content/plugins/social-sticky/ss-box-init.php on line 51
    • > PHP Notice
      Undefined variable: position in wp-content/plugins/social-sticky/ss-box-init.php on line 59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: facebook, wordpress, effect, color, likebox...

social-sticky/social-sticky.php Passed 13 tests

The main PHP file in "Social Sticky" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
Social Sticky is Simply and Effectively to get more shares, more traffic, more fans.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin805 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP119768618
JavaScript31813169
CSS12018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.96
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/gg.png2.08KB1.63KB▼ 21.81%
img/tw.png1.11KB1.25KB0.00%
screenshot-4.png54.38KB19.55KB▼ 64.04%
screenshot-2.png36.46KB19.20KB▼ 47.33%
img/fb.png1.07KB1.12KB0.00%