89% easy-social-sharebar

Code Review | Easy Social Sharebar

WordPress plugin Easy Social Sharebar scored89%from 54 tests.

About plugin

  • Plugin page: easy-social-sharebar
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 17, 2018
  • Latest release: Jan 3, 2019
  • Number of updates: 15
  • Update frequency: every 5.3 days
  • Top authors: nomaniplex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.52ms] Passed 4 tests

An overview of server-side resources used by Easy Social Sharebar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.74 ▲0.72
Dashboard /wp-admin3.45 ▲0.1449.81 ▲1.01
Posts /wp-admin/edit.php3.56 ▲0.2050.03 ▼3.04
Add New Post /wp-admin/post-new.php6.03 ▲0.1482.11 ▼15.16
Media Library /wp-admin/upload.php3.37 ▲0.1435.54 ▼0.61
Easy Social Sharebar /wp-admin/options-general.php?page=ess-settings3.3941.12

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 18 new options
New WordPress options
ess_buttons_color
ess_include_social_meta
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
ess_buttons_hover_color
ess_buttons_placement
ess_version
widget_recent-posts
ess_post_types
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Social Sharebar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.22 ▼1.423.30 ▲1.4838.13 ▼8.85
Dashboard /wp-admin2,227 ▲425.84 ▼0.0195.26 ▼11.9739.40 ▼8.24
Posts /wp-admin/edit.php2,110 ▲182.06 ▲0.0236.15 ▼10.8831.42 ▼9.92
Add New Post /wp-admin/post-new.php6,257 ▲4,72125.99 ▲2.67897.57 ▲252.9965.44 ▲11.85
Media Library /wp-admin/upload.php1,409 ▲214.25 ▲0.0899.68 ▼2.4542.02 ▼2.00
Easy Social Sharebar /wp-admin/options-general.php?page=ess-settings1,7643.6058.1572.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Admin post type.), #2 (Admin socail button.)
You can look at the official readme.txt

easy-social-sharebar/easy_social_sharebar.php 85% from 13 tests

The main PHP script in "Easy Social Sharebar" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-social-sharebar.php" instead of "easy_social_sharebar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin3,940 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP6172222825
CSS4429257
JavaScript15117187

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.20
▷ Minimum class complexity3.00
▷ Maximum class complexity35.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ess-button-large.png4.05KB1.84KB▼ 54.62%
assets/images/ess-button-small.png15.42KB0.76KB▼ 95.08%
assets/images/ess-button-medium.png17.36KB1.72KB▼ 90.07%