10% social-wiggle

Code Review | SocialWiggle

WordPress plugin SocialWiggle scored 10% from 54 tests.

About plugin

  • Plugin page: social-wiggle
  • Plugin version: 0.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2013
  • Latest release: Mar 2, 2014
  • Number of updates: 7
  • Update frequency: every 95.4 days
  • Top authors: bradvin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,879 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/social-wiggle/socialwiggle.php+45
    Function create_function() is deprecated

Server metrics [RAM: ▼1.72MB] [CPU: ▼50.74ms] Passed 4 tests

An overview of server-side resources used by SocialWiggle
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.198.34 ▼37.44
Dashboard /wp-admin2.29 ▼1.028.29 ▼41.64
Posts /wp-admin/edit.php2.29 ▼1.078.66 ▼40.15
Add New Post /wp-admin/post-new.php2.29 ▼3.608.97 ▼83.73
Media Library /wp-admin/upload.php2.29 ▼0.948.45 ▼24.78
SocialWiggle /wp-admin/options-general.php?page=socialwiggle2.298.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_socwig_widget
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for SocialWiggle
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲15813.58 ▼0.797.54 ▲5.7643.84 ▼5.44
Dashboard /wp-admin2,217 ▲294.90 ▼0.01113.27 ▼1.0840.86 ▼4.75
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0440.06 ▲2.6436.06 ▲0.18
Add New Post /wp-admin/post-new.php1,399 ▼13418.39 ▼5.17582.24 ▼98.7742.91 ▼16.79
Media Library /wp-admin/upload.php1,399 ▲114.30 ▲0.0995.32 ▼7.9240.18 ▼3.14
SocialWiggle /wp-admin/options-general.php?page=socialwiggle1,3721.7824.6428.56

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
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/social-wiggle/socialwiggle.php+45
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_socwig_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=socialwiggle
    • > Deprecated in wp-content/plugins/social-wiggle/includes/wp_pluginbase_v2_3.php+407
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/social-wiggle/includes/networks_array.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-wiggle/includes/widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-wiggle/includes/widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: metro, social profiles, social, social networks

social-wiggle/socialwiggle.php 92% from 13 tests

This is the main PHP file of "SocialWiggle" version 0.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-wiggle.php" instead of "socialwiggle.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,783 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP113643711,370
JavaScript32711190
CSS2270182
PO File1121241

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity28.75
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods112
▷ Static methods1210.71%
▷ Public methods112100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/img/social-sprite-32.png10.08KB6.70KB▼ 33.53%
css/img/social-sprite-64.png21.71KB13.16KB▼ 39.39%