10% socializer

Code Review | Socializer!

WordPress plugin Socializer! scored 10% from 54 tests.

About plugin

  • Plugin page: socializer
  • Plugin version: 12.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.8.1
  • First release: Sep 5, 2011
  • Latest release: Mar 3, 2021
  • Number of updates: 734
  • Update frequency: every 4.7 days
  • Top authors: TheFreeWindows (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 54,522 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/socializer/socializer.php+451
    Methods with the same name as their class will not be constructors in a future version of PHP; SocializerWidget has a deprecated constructor

Server metrics [RAM: ▼1.64MB] [CPU: ▼191.98ms] Passed 4 tests

A check of server-side resources used by Socializer!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.99 ▼0.8410.43 ▼27.65
Dashboard /wp-admin2.01 ▼1.047.05 ▼41.90
Posts /wp-admin/edit.php2.01 ▼1.095.89 ▼37.73
Add New Post /wp-admin/post-new.php2.01 ▼3.4211.64 ▼657.44
Media Library /wp-admin/upload.php2.01 ▼0.997.10 ▼30.85
Socializer! /wp-admin/options-general.php?page=socializer!2.018.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 18 new options
New WordPress options
tfw_moboption
widget_socializerwidget
tfw_spages
tfw_floatsize
tfw_sindarch
widget_socializerfloatwidget
tfw_stlfloatwdiv
tfw_spbe
tfw_nowsize
tfw_fbprof
...

Browser metrics Passed 4 tests

Checking browser requirements for Socializer!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,894 ▲25718.14 ▲2.3027.24 ▲15.8855.20 ▲3.88
Dashboard /wp-admin2,975 ▲415.95 ▼0.04145.88 ▼21.87110.55 ▼22.00
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0077.34 ▲3.44101.59 ▲1.79
Add New Post /wp-admin/post-new.php1,501 ▼11418.90 ▼2.15404.40 ▲102.77119.62 ▲3.25
Media Library /wp-admin/upload.php1,812 ▲25.02 ▼0.03161.23 ▲7.53125.08 ▲2.50
Socializer! /wp-admin/options-general.php?page=socializer!1,6552.0756.22137.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/socializer/socializer.php+451
    Methods with the same name as their class will not be constructors in a future version of PHP; SocializerWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 18 options in the database
    • tfw_nowsize
    • tfw_floatsize
    • tfw_myname
    • tfw_stlwdiv
    • tfw_stlfloatwdiv
    • tfw_sindarch
    • tfw_spbe
    • tfw_moboption
    • tfw_twiprof
    • tfw_spaf
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=socializer!
    • > Deprecated in wp-content/plugins/socializer/socializer.php+451
    Methods with the same name as their class will not be constructors in a future version of PHP; SocializerWidget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=socializer!
    • > Deprecated in wp-content/plugins/socializer/socializer.php+508
    Methods with the same name as their class will not be constructors in a future version of PHP; SocializerFloatWidget has a deprecated constructor

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/socializer/socializer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 27 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Socializer! Content / Shortcode buttons (displaying Counts)), #2 (Socializer! Widget (the large version, displaying Counts)), #3 (Socializer! Floating Widget (the large version, displaying Counts, here having also a background and border, which can be added or removed or change at will)), #4 (Socializer! Content / Shortcode buttons (not displaying Counts)), #5 (Socializer! Floating Widget (the smaller version, not displaying Counts, without background and border)), #6 (Socializer! Widget (the smaller version, not displaying Counts, without background and border))
You can look at the official readme.txt

socializer/socializer.php 92% from 13 tests

The principal PHP file in "Socializer!" v. 12.9 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 367 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
  • For security reasons, never distribute binary or executable files with your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/socializer/Socializer! On-Line (Read Me).url
1,087 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23206521,087

PHP code Passed 2 tests

This is a short overview 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.68
Average class complexity50.67
▷ Minimum class complexity8.00
▷ Maximum class complexity134.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods923.08%
▷ Public methods3794.87%
▷ Protected methods25.13%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants110.00%
▷ Class constants990.00%
▷ Public constants9100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png16.68KB6.52KB▼ 60.92%
follow.png1.56KB1.14KB▼ 27.23%
csseditor.png1.58KB1.38KB▼ 13.19%