10% wpsocialite

Code Review | WPSocialite

WordPress plugin WPSocialite scored10%from 54 tests.

About plugin

  • Plugin page: wpsocialite
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: May 19, 2012
  • Latest release: Oct 10, 2013
  • Number of updates: 28
  • Update frequency: every 18.3 days
  • Top authors: TM3909 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

700+ active /38,502 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wpsocialite/wpsocialite.php+118
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.55ms] Passed 4 tests

Analyzing server-side resources used by WPSocialite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.29 ▲9.34
Dashboard /wp-admin3.34 ▲0.0351.07 ▼1.55
Posts /wp-admin/edit.php3.45 ▲0.0946.77 ▲0.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.12 ▼15.62
Media Library /wp-admin/upload.php3.26 ▲0.0335.74 ▼1.39

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WPSocialite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲15013.43 ▼1.1412.13 ▲10.4142.62 ▼1.02
Dashboard /wp-admin2,195 ▲185.57 ▼0.0890.50 ▲0.1541.19 ▼7.76
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0636.88 ▼0.0433.74 ▼2.59
Add New Post /wp-admin/post-new.php1,529 ▲323.02 ▲0.03661.44 ▼35.4555.52 ▼7.34
Media Library /wp-admin/upload.php1,406 ▲94.20 ▲0.07101.59 ▼2.9342.04 ▼4.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsocialite/wpsocialite.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (WPSocialite shown before a post, before load.), #2 (WPSocialite shown before a post, after hover.), #3 (Plugin settings, located in Settings->Discussion)
  • Donate link: Invalid url: ""
The official readme.txt might help

wpsocialite/wpsocialite.php 92% from 13 tests

The entry point to "WPSocialite" version 2.4.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 397 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,131 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript171483061,115
PHP111430460
HTML24116337
Markdown158096
PO File1296177
CSS2191946

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
7 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png23.30KB8.21KB▼ 64.79%
lib/social-sprite.png14.33KB4.91KB▼ 65.72%
screenshot-3.png31.49KB12.45KB▼ 60.48%
lib/wpsocialite-tinymce.png3.53KB1.31KB▼ 62.86%
screenshot-1.png19.21KB6.89KB▼ 64.13%