78% social-elementor-lite

Code Review | Social Addons for Elementor (Lite)

WordPress plugin Social Addons for Elementor (Lite) scored78%from 54 tests.

About plugin

  • Plugin page: social-elementor-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2019
  • Latest release: Feb 7, 2021
  • Number of updates: 16
  • Update frequency: every 37.4 days
  • Top authors: webempire (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,400 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.01MB] [CPU: ▼9.42ms] Passed 4 tests

This is a short check of server-side resources used by Social Addons for Elementor (Lite)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.08 ▼6.24
Dashboard /wp-admin3.32 ▲0.0146.06 ▼9.75
Posts /wp-admin/edit.php3.37 ▲0.0149.39 ▼5.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.16 ▼16.13
Media Library /wp-admin/upload.php3.24 ▲0.0140.86 ▲5.40

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Social Addons for Elementor (Lite)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.25 ▼0.531.63 ▼0.1643.27 ▼2.24
Dashboard /wp-admin2,215 ▲355.60 ▼0.0583.92 ▼9.0066.86 ▲27.20
Posts /wp-admin/edit.php2,129 ▲261.99 ▼0.0539.20 ▼1.9836.62 ▲2.86
Add New Post /wp-admin/post-new.php1,712 ▲18424.51 ▲1.40693.07 ▲30.7048.31 ▼6.24
Media Library /wp-admin/upload.php1,420 ▲204.13 ▼0.10102.87 ▼2.5467.33 ▲21.93

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php
  • 16× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 20
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 21
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 19
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 27
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 11
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 21
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/social-elementor-lite/modules/icons/widgets/template.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: posts addon elementor, blog elementor, elementor

social-elementor-lite/social-elementor-lite.php 85% from 13 tests

"Social Addons for Elementor (Lite)" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 225 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected10,651 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
PHP331,3902,0286,313
JavaScript168549893,261
CSS8178311,024
SVG10053

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.04
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes26
▷ Abstract classes519.23%
▷ Concrete classes2180.77%
▷ Final classes29.52%
Methods225
▷ Static methods5524.44%
▷ Public methods20691.56%
▷ Protected methods156.67%
▷ Private methods41.78%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants1285.71%
▷ Class constants214.29%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/user.png2.97KB2.34KB▼ 21.33%
admin/assets/images/Siteicon.png5.63KB2.27KB▼ 59.63%
admin/assets/images/WebEmpire.png18.10KB6.14KB▼ 66.06%