93% add-social-share

Code Review | Social Media Social Share Icon

WordPress plugin Social Media Social Share Icon scored 93% from 54 tests.

About plugin

  • Plugin page: add-social-share
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 5.9.2
  • First release: May 9, 2016
  • Latest release: Aug 21, 2016
  • Number of updates: 33
  • Update frequency: every 7.1 days
  • Top authors: superheroplugins (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active / 30,958 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.14MB] [CPU: ▼287.66ms] Passed 4 tests

Analyzing server-side resources used by Social Media Social Share Icon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1668.22 ▲16.36
Dashboard /wp-admin3.58 ▲0.1735.15 ▲1.77
Posts /wp-admin/edit.php3.80 ▲0.1639.95 ▲4.37
Add New Post /wp-admin/post-new.php7.04 ▲0.0694.96 ▼1,158.32
Media Library /wp-admin/upload.php3.47 ▲0.1724.72 ▲1.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 105 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Social Media Social Share Icon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,972 ▲23016.88 ▲1.2212.56 ▲6.042.54 ▲0.38
Dashboard /wp-admin2,935 ▲746.27 ▲0.04122.03 ▼16.58174.48 ▲6.02
Posts /wp-admin/edit.php2,731 ▲372.95 ▼0.2969.37 ▲5.59159.40 ▲13.88
Add New Post /wp-admin/post-new.php1,695 ▲5916.11 ▼3.13409.37 ▼24.70162.03 ▲3.85
Media Library /wp-admin/upload.php1,738 ▲405.65 ▲0.14127.99 ▼9.84189.97 ▲6.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-share/wpsocial-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-share/wpsocial-enque-script.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-social-share/wpsocial-function.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 70 tag instead of maximum 10
You can look at the official readme.txt

add-social-share/wpsocial-function.php 92% from 13 tests

The main file in "Social Media Social Share Icon" v. 3.0 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("add-social-share.php" instead of "wpsocial-function.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
No dangerous file extensions were detected9,644 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
76 PNG files occupy 0.80MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/facebooktheme5.png1.82KB1.18KB▼ 35.17%
admin/images/linkedintheme5.png2.47KB1.68KB▼ 32.15%
admin/images/linkedintheme11.png5.90KB3.28KB▼ 44.38%
admin/images/pinteresttheme8.png5.31KB2.68KB▼ 49.44%
admin/images/linkedintheme17.png2.71KB1.45KB▼ 46.37%