89% easy-social-icons

Code Review | Easy Social Icons

WordPress plugin Easy Social Icons scored89%from 54 tests.

About plugin

  • Plugin page: easy-social-icons
  • Plugin version: 3.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2012
  • Latest release: Nov 19, 2023
  • Number of updates: 129
  • Update frequency: every 31.4 days
  • Top authors: cybernetikz (100%)

Code review

54 tests

User reviews

78 reviews

Install metrics

30,000+ active /710,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.79ms] Passed 4 tests

A check of server-side resources used by Easy Social Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2636.03 ▲0.46
Dashboard /wp-admin3.55 ▲0.2444.48 ▼11.25
Posts /wp-admin/edit.php3.66 ▲0.3048.55 ▲3.53
Add New Post /wp-admin/post-new.php6.13 ▲0.2489.29 ▼4.37
Media Library /wp-admin/upload.php3.47 ▲0.2434.81 ▲0.02
Sort Icons /wp-admin/admin.php?page=cnss_social_icon_sort3.4432.30
Add New /wp-admin/admin.php?page=cnss_social_icon_add3.5539.29
All Icons /wp-admin/admin.php?page=cnss_social_icon_page3.4431.49
Settings & Instructions /wp-admin/admin.php?page=cnss_social_icon_option3.4432.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 69 new files
Database: 1 new table, 21 new options
New tables
wp_cn_social_icon
New WordPress options
db_upgraded
cnss-row-count
cnss-social-profile-links
widget_recent-posts
cnss-width
can_compress_scripts
widget_recent-comments
cnss-social-profile-type
cnss-margin
cnss-icon-hover-color
...

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Social Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲18913.75 ▼0.168.87 ▲7.2838.54 ▼4.82
Dashboard /wp-admin2,248 ▲715.79 ▲0.1293.46 ▼9.4342.32 ▼0.60
Posts /wp-admin/edit.php2,157 ▲542.29 ▲0.2739.91 ▲1.0536.69 ▲3.56
Add New Post /wp-admin/post-new.php1,569 ▲4323.57 ▲0.47668.47 ▼25.3756.65 ▼8.60
Media Library /wp-admin/upload.php1,444 ▲444.25 ▲0.06101.65 ▲1.3142.00 ▼1.73
Sort Icons /wp-admin/admin.php?page=cnss_social_icon_sort9722.2630.9947.30
Add New /wp-admin/admin.php?page=cnss_social_icon_add4,4223.2347.45100.86
All Icons /wp-admin/admin.php?page=cnss_social_icon_page1,0822.0028.7643.05
Settings & Instructions /wp-admin/admin.php?page=cnss_social_icon_option1,8372.8157.9045.67

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_cnss_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (display social icons in sidebar using widget), #2 (display social icons in sidebar using widget different icons shape), #3 (display social icons in sidebar using widget different icons colors), #4 (manage icons page layout), #5 (add new icon page layout), #6 (sort icons usign drag drop), #7 (plugins settings page layout), #8 (add Easy Social Icon widget to sidebar using drag drop)
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

easy-social-icons/easy-social-icons.php 92% from 13 tests

Analyzing the main PHP file in "Easy Social Icons" version 3.2.5
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 390 characters long)

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
No dangerous file extensions were detected15,563 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG40011,282
CSS100152,482
PHP3164671,754
JavaScript23645

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants0
▷ Global constants00.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
20 PNG files occupy 0.44MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon/Google-Plus.png2.68KB1.77KB▼ 33.69%
images/icon/pinterest.png2.67KB1.77KB▼ 33.66%
images/icon/Twitter.png2.05KB1.15KB▼ 43.90%
images/icon/flickr.png2.06KB1.16KB▼ 43.74%
screenshot-2.png40.88KB19.08KB▼ 53.34%