78% jackshare

Code Review | Jackshare Social Sharing

WordPress plugin Jackshare Social Sharing scored78%from 54 tests.

About plugin

  • Plugin page: jackshare
  • Plugin version: 2.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Jan 8, 2021
  • Number of updates: 68
  • Update frequency: every 16.2 days
  • Top authors: ifrountas (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.29MB] [CPU: ▼16.30ms] Passed 4 tests

Analyzing server-side resources used by Jackshare Social Sharing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.07 ▼0.3922.78 ▼16.86
Dashboard /wp-admin3.48 ▲0.1748.75 ▼3.58
Posts /wp-admin/edit.php3.59 ▲0.2349.09 ▼0.23
Add New Post /wp-admin/post-new.php4.77 ▼1.1248.95 ▼44.52
Media Library /wp-admin/upload.php3.40 ▲0.1736.08 ▲2.21
Jackshare /wp-admin/options-general.php?page=jackshare3.3531.59

Server storage [IO: ▲0.17MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jackshare Social Sharing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.24 ▼0.111.93 ▼0.2747.78 ▼2.00
Dashboard /wp-admin2,196 ▲255.55 ▼0.1483.15 ▼7.4339.08 ▼0.35
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0235.89 ▲0.0539.60 ▲4.00
Add New Post /wp-admin/post-new.php1,540 ▲1225.31 ▲2.35620.14 ▼51.1948.93 ▼9.69
Media Library /wp-admin/upload.php1,407 ▲44.17 ▲0.06101.56 ▼4.7841.70 ▼4.44
Jackshare /wp-admin/options-general.php?page=jackshare1,0781.9923.0734.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=jackshare
    • > Notice in wp-content/plugins/jackshare/inc/class-jackshare-admin-page.php+350
    Trying to access array offset on value of type bool

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
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/jackshare/index.php
    • > /wp-content/plugins/jackshare/uninstall.php
    • > /wp-content/plugins/jackshare/jackshare.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in jackshare/assets to your readme.txt
The official readme.txt might help

jackshare/jackshare.php Passed 13 tests

"Jackshare Social Sharing" version 2.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
Super simple Social media sharing buttons with minimal design and lightning fast performance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,876 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP722192521
HTML1434453
CSS46718357
PO File2111113303
SVG306167
Sass15052
JavaScript1101222
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin