WordPress plugin jSocial scored83%from 54 tests.

About plugin

  • Plugin page: jsocial-responsiv...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4+
  • WordPress version: 6.3.1
  • First release: Nov 28, 2014
  • Latest release: Dec 27, 2014
  • Number of updates: 13
  • Update frequency: every 2.3 days
  • Top authors: prefermoo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,251 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.10ms] Passed 4 tests

Server-side resources used by jSocial
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.72 ▼3.45
Dashboard /wp-admin3.40 ▲0.0946.30 ▼11.10
Posts /wp-admin/edit.php3.51 ▲0.1550.05 ▼0.86
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.24 ▼8.98
Media Library /wp-admin/upload.php3.32 ▲0.0937.78 ▲0.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 10 new options
New WordPress options
jsocial_attr
jsocial_display
db_upgraded
can_compress_scripts
widget_recent-posts
jsocial_styles
jsocial_options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for jSocial
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,027 ▲28113.90 ▼0.3321.66 ▲19.9153.43 ▲9.26
Dashboard /wp-admin2,224 ▲394.93 ▼0.94110.70 ▼11.7176.36 ▲31.48
Posts /wp-admin/edit.php2,086 ▼62.01 ▼0.0439.04 ▼7.4732.82 ▼5.82
Add New Post /wp-admin/post-new.php1,536 ▼123.28 ▲0.03746.56 ▲77.7874.74 ▲26.57
Media Library /wp-admin/upload.php1,403 ▲124.20 ▼0.04112.56 ▼1.6169.49 ▲27.00

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • jsocial_display
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/jsocial-responsive-floating-social-sharing-media-bar/public/css/jsocial-custom.php

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 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

jsocial-responsive-floating-social-sharing-media-bar/jsocial.php 85% from 13 tests

Analyzing the main PHP file in "jSocial" version 1.0.0
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("jsocial-responsive-floating-social-sharing-media-bar.php" instead of "jsocial.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,132 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS516108,267
PHP132225131,058
SVG100520
JavaScript602287

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
15 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/side_left_top.png4.16KB2.63KB▼ 36.85%
admin/images/extremity_bottom_center.png4.23KB2.64KB▼ 37.69%
admin/images/side_right_center.png4.17KB2.64KB▼ 36.74%
admin/images/extremity_top_center.png4.24KB2.70KB▼ 36.33%
admin/images/jquery.fs.stepper-arrows.png0.30KB0.18KB▼ 40.52%