10% tipsy-social-icons

Code Review | Tipsy Social Icons

WordPress plugin Tipsy Social Icons scored10%from 54 tests.

About plugin

  • Plugin page: tipsy-social-icons
  • Plugin version: 4.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.0
  • WordPress version: 6.3.1
  • First release: Jan 11, 2011
  • Latest release: Jan 22, 2017
  • Number of updates: 105
  • Update frequency: every 21.0 days
  • Top authors: tommcfarlin (95.24%)wpidiots (3.81%)philiparthurmoore (2.86%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /58,148 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/tipsy-social-icons/tipsy-social-icons.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; Tipsy_Social_Icons has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼51.30ms] Passed 4 tests

This is a short check of server-side resources used by Tipsy Social Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.304.81 ▼36.26
Dashboard /wp-admin2.19 ▼1.126.13 ▼40.47
Posts /wp-admin/edit.php2.19 ▼1.175.57 ▼42.48
Add New Post /wp-admin/post-new.php2.19 ▼3.706.62 ▼86.00
Media Library /wp-admin/upload.php2.19 ▼1.055.72 ▼27.99

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_tipsy-social-icons
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Tipsy Social Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12813.60 ▼0.785.64 ▲3.2944.84 ▼3.03
Dashboard /wp-admin2,208 ▲174.84 ▼0.06101.82 ▼6.0739.73 ▲0.61
Posts /wp-admin/edit.php2,088 ▲21.97 ▼0.0338.57 ▼2.1434.01 ▼2.67
Add New Post /wp-admin/post-new.php1,516 ▼1717.85 ▼5.16635.79 ▼41.8159.76 ▲7.84
Media Library /wp-admin/upload.php1,387 ▼14.28 ▲0.08101.79 ▼4.3043.42 ▼0.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/tipsy-social-icons/tipsy-social-icons.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; Tipsy_Social_Icons has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_tipsy-social-icons

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tipsy-social-icons/views/widget.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/tipsy-social-icons/views/widget.php on line 4
    • > PHP Notice
      Undefined variable: use_large_icons in wp-content/plugins/tipsy-social-icons/views/widget.php on line 3
    • > PHP Notice
      Undefined variable: tooltip_position in wp-content/plugins/tipsy-social-icons/views/widget.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tipsy-social-icons/tipsy-social-icons.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tipsy-social-icons/views/admin.php:2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/tipsy-social-icons/views/widget.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: widgets, icons, social

tipsy-social-icons/tipsy-social-icons.php Passed 13 tests

"Tipsy Social Icons" version 4.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
The easiest way to add your social networks to your blog.

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 plugin551 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP34475254
PO File23434117
JavaScript427599
LESS223065
CSS30016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.30
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity5.11
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
65 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/32/mixcloud_32.png5.43KB1.29KB▼ 76.18%
images/16/stumbleupon_16.png4.33KB0.46KB▼ 89.29%
images/16/digg_16.png0.66KB0.45KB▼ 31.74%
images/16/skype_16.png0.70KB0.54KB▼ 22.32%
images/16/googleplus_16.png0.52KB0.41KB▼ 21.55%