84% social-share-by-7span

Code Review | Social Connect: Social Share/Follow By 7Span

WordPress plugin Social Connect: Social Share/Follow By 7Span scored 84% from 54 tests.

About plugin

  • Plugin page: social-share-by-7...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Apr 3, 2023
  • Number of updates: 47
  • Update frequency: every 28.6 days
  • Top authors: 7span (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.32ms] Passed 4 tests

A check of server-side resources used by Social Connect: Social Share/Follow By 7Span
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.05 ▲2.96
Dashboard /wp-admin3.39 ▲0.0948.02 ▼2.00
Posts /wp-admin/edit.php3.44 ▲0.0847.25 ▼1.40
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.22 ▼16.85
Media Library /wp-admin/upload.php3.31 ▲0.0841.23 ▲4.10

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_social_connect
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Social Connect: Social Share/Follow By 7Span: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.27 ▼1.124.62 ▲2.7744.26 ▲5.66
Dashboard /wp-admin2,203 ▲144.83 ▼0.1198.74 ▼16.6938.56 ▼3.40
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0036.20 ▼1.6831.77 ▲0.54
Add New Post /wp-admin/post-new.php1,528 ▼518.43 ▼4.78604.27 ▼13.2148.86 ▼23.97
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0397.12 ▼8.8543.38 ▲1.96

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_social_connect
    • db_upgraded
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 4× 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/social-share-by-7span/includes/core.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-share-by-7span/social-share-by-7span.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-share-by-7span/includes/embed.php:220
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-share-by-7span/assets/widget/widget_social_connect.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
These attributes 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

social-share-by-7span/social-share-by-7span.php Passed 13 tests

"Social Connect: Social Share/Follow By 7Span" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Adds very attractive responsive social icons on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected563 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49257326
CSS2510237

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.66MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-7.png71.91KB19.19KB▼ 73.31%
assets/screenshot-4.png10.88KB4.61KB▼ 57.59%
assets/screenshot-2.png47.06KB12.84KB▼ 72.72%
assets/screenshot-5.png136.94KB39.91KB▼ 70.86%
assets/screenshot-1.png99.48KB29.91KB▼ 69.93%