74% easy-social-sharing

Code Review | Easy Social Sharing

WordPress plugin Easy Social Sharing scored74%from 54 tests.

About plugin

  • Plugin page: easy-social-sharing
  • Plugin version: 1.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: May 16, 2016
  • Latest release: Jan 11, 2023
  • Number of updates: 21
  • Update frequency: every 116.2 days
  • Top authors: ThemeGrill (76.19%)themegrilldev (28.57%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /82,970 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼3.36ms] Passed 4 tests

Server-side resources used by Easy Social Sharing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4753.43 ▲9.75
Dashboard /wp-admin3.78 ▲0.4451.38 ▼6.98
Posts /wp-admin/edit.php3.83 ▲0.4848.72 ▲4.97
Add New Post /wp-admin/post-new.php6.34 ▲0.4587.03 ▼15.63
Media Library /wp-admin/upload.php3.64 ▲0.4239.21 ▲4.20
Easy Social Sharing /wp-admin/options-general.php?page=easy-social-sharing3.8637.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 121 new files
Database: 2 new tables, 20 new options
New tables
wp_ess_social_statistics
wp_ess_social_networks
New WordPress options
widget_recent-posts
easy_social_sharing_sidebar_icon_shape
easy_social_sharing_all_except_screens
easy_social_sharing_allowed_locations
easy_social_sharing_inline_layouts
easy_social_sharing_inline_icon_shape
widget_recent-comments
widget_theysaidso_widget
easy_social_sharing_allowed_screens
db_upgraded
...

Browser metrics Passed 4 tests

Easy Social Sharing: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,548 ▲80214.14 ▼0.2817.33 ▲15.4278.72 ▲34.81
Dashboard /wp-admin2,215 ▲274.87 ▲0.0298.80 ▼11.1838.67 ▼6.62
Posts /wp-admin/edit.php2,077 ▼122.04 ▲0.0738.75 ▼1.7933.74 ▼2.07
Add New Post /wp-admin/post-new.php6,290 ▲4,74726.29 ▲7.99961.23 ▲338.0143.06 ▼16.38
Media Library /wp-admin/upload.php1,394 ▲64.27 ▲0.0695.83 ▼1.8340.78 ▼0.38
Easy Social Sharing /wp-admin/options-general.php?page=easy-social-sharing1,3202.9760.1835.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_ess_social_statistics
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • ess-social-network-cache-date
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/easy-social-sharing/includes/libraries/wp-background-process.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-social-sharing/easy-social-sharing.php Passed 13 tests

The main file in "Easy Social Sharing" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Easy Social Sharing provides you with an easy way to display various popular social share buttons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin28,389 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript222,65692110,799
PHP391,0271,7764,081
JSON1003,672
CSS1343663,562
Sass1865713,474
SVG4112,801

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity19.35
▷ Minimum class complexity1.00
▷ Maximum class complexity109.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes315.00%
▷ Concrete classes1785.00%
▷ Final classes15.88%
Methods184
▷ Static methods8144.02%
▷ Public methods13070.65%
▷ Protected methods2211.96%
▷ Private methods3217.39%
Functions44
▷ Named functions4397.73%
▷ Anonymous functions12.27%
Constants7
▷ Global constants7100.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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png0.26KB0.09KB▼ 66.79%
assets/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png4.51KB4.18KB▼ 7.28%
assets/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.32KB0.18KB▼ 44.00%
assets/css/jquery-ui/images/ui-icons_222222_256x240.png6.86KB4.18KB▼ 39.05%
assets/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png0.32KB0.16KB▼ 50.46%