10% juiz-social-post-sharer

Code Review | Nobs • Share Buttons

WordPress plugin Nobs • Share Buttons scored10%from 54 tests.

About plugin

  • Plugin page: juiz-social-post-...
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Dec 26, 2022
  • Number of updates: 114
  • Update frequency: every 32.4 days
  • Top authors: CreativeJuiz (100%)

Code review

54 tests

User reviews

93 reviews

Install metrics

5,000+ active /245,336 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/juiz-social-post-sharer/inc/admin/register-settings.php+28
    Undefined variable: default_settings

Server metrics [RAM: ▲0.57MB] [CPU: ▲3.26ms] Passed 4 tests

Analyzing server-side resources used by Nobs • Share Buttons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3244.66 ▲2.34
Dashboard /wp-admin4.00 ▲0.6956.03 ▲7.30
Posts /wp-admin/edit.php4.05 ▲0.6954.87 ▲1.00
Add New Post /wp-admin/post-new.php6.52 ▲0.6394.36 ▲2.40
Media Library /wp-admin/upload.php3.85 ▲0.6352.37 ▲16.91
Nobs Share Buttons /wp-admin/options-general.php?page=juiz-social-post-sharer4.0248.79
Social Post Sharer /wp-admin/admin.php?page=juiz-social-post-sharer-welcome3.8239.20

Server storage [IO: ▲1.72MB] [DB: ▲0.03MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/juiz-social-post-sharer/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 88 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
juiz_SPS_settings
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Nobs • Share Buttons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,173 ▲41213.28 ▼0.942.12 ▲0.5328.91 ▼18.90
Dashboard /wp-admin2,557 ▲3515.90 ▲1.00120.67 ▲4.8094.50 ▲53.22
Posts /wp-admin/edit.php2,461 ▲3582.06 ▲0.0937.92 ▼6.5693.46 ▲56.08
Add New Post /wp-admin/post-new.php6,743 ▲5,19827.57 ▲4.29969.07 ▲283.7137.45 ▼15.02
Media Library /wp-admin/upload.php1,742 ▲3424.24 ▼0.01118.88 ▲12.9587.89 ▲42.53
Nobs Share Buttons /wp-admin/options-general.php?page=juiz-social-post-sharer3,6382.1041.88154.09
Social Post Sharer /wp-admin/admin.php?page=juiz-social-post-sharer-welcome1,7611.7229.4446.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • 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 no errors were found, this is by no means 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
Please fix the following
  • 21× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/juiz-social-post-sharer/inc/admin/settings.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/options.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/front/buttons.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/admin/metaboxes.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/admin/upgrade-notice.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/register-network.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/admin/partials/promo-form.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/register-skin.php
    • > /wp-content/plugins/juiz-social-post-sharer/juiz-social-post-sharer.php
    • > /wp-content/plugins/juiz-social-post-sharer/inc/front/third-parties/wp-job-manager.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (25 tag instead of maximum 10)
  • Screenshots: These screenshots do not have images: #1 (Default Themes available), #2 (After a post), #3 (The new 1.3.0 Black theme and sharings counter), #4 (The metabox to hide buttons on a post), #5 (New themes: Brands Colors & Material Design), #6 (New admin panel for Nobs.), #7 (New networks panel you can now order with drag n' drop.), #8 (Gutenberg's block in action)
Please take inspiration from this readme.txt

juiz-social-post-sharer/juiz-social-post-sharer.php 92% from 13 tests

The main file in "Nobs • Share Buttons" v. 2.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 309 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,594 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
CSS198132024,531
PHP247751,6863,182
JavaScript5140137728
SVG50094
HTML17049
XML1009
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods211.11%
▷ Private methods316.67%
Functions94
▷ Named functions94100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
26 PNG files occupy 0.48MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/7/demo@2x.png11.53KB6.98KB▼ 39.49%
screenshot-4.png5.36KB5.68KB0.00%
skins/1/demo@2x.png14.63KB8.33KB▼ 43.03%
skins/7/demo.png9.83KB5.13KB▼ 47.80%
skins/1/demo.png7.77KB4.88KB▼ 37.21%