83% add-social-share

Code Review | Social Media Social Share Icon

WordPress plugin Social Media Social Share Icon scored83%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: 6.3.1
  • 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

400+ active /31,343 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.22ms] Passed 4 tests

An overview of server-side resources used by Social Media Social Share Icon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.26 ▲3.76
Dashboard /wp-admin3.34 ▲0.0449.75 ▼1.57
Posts /wp-admin/edit.php3.39 ▲0.0446.71 ▼6.82
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.76 ▼9.43
Media Library /wp-admin/upload.php3.27 ▲0.0438.53 ▲0.96

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Social Media Social Share Icon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲20714.22 ▲0.018.23 ▲6.3432.74 ▼6.64
Dashboard /wp-admin2,236 ▲454.96 ▼0.96114.67 ▲13.4644.05 ▲2.69
Posts /wp-admin/edit.php2,128 ▲392.20 ▲0.1538.24 ▼3.4835.25 ▼0.22
Add New Post /wp-admin/post-new.php1,551 ▲3123.32 ▲0.15651.47 ▼26.5334.47 ▼23.18
Media Library /wp-admin/upload.php1,424 ▲394.36 ▲0.1496.57 ▼7.9342.91 ▼3.09

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-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-share/wpsocial-admin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Tags: You are using too many tags: 70 tag instead of maximum 10
The official readme.txt might help

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

The main PHP script in "Social Media Social Share Icon" version 3.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,644 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS85012066,800
JavaScript410281,156
PHP48815949
SVG200739

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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
76 PNG files occupy 0.80MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/pinteresttheme12.png9.58KB4.08KB▼ 57.46%
admin/images/linkedintheme8.png3.87KB2.18KB▼ 43.67%
admin/images/gplustheme12.png9.70KB4.01KB▼ 58.63%
admin/images/both.png1.65KB0.71KB▼ 57.00%
admin/images/linkedintheme11.png5.90KB3.28KB▼ 44.38%