74% social-link-groups

Code Review | Social Link Groups

WordPress plugin Social Link Groups scored 74% from 54 tests.

About plugin

  • Plugin page: social-link-groups
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5.0
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Sep 11, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: acespritech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 332 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.92ms] Passed 4 tests

An overview of server-side resources used by Social Link Groups
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.64 ▼7.06
Dashboard /wp-admin3.31 ▲0.0145.97 ▼10.08
Posts /wp-admin/edit.php3.36 ▲0.0149.05 ▲0.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.50 ▼10.19
Media Library /wp-admin/upload.php3.24 ▲0.0135.57 ▼0.35
Add New /wp-admin/admin.php?page=aspl_asl_add_new_group_list3.3131.15
Social Links /wp-admin/admin.php?page=aspl_asl_group_list3.2533.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: 1 new table, 6 new options
New tables
wp_aspl_asl_group_data
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Social Link Groups
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲20615.79 ▲1.1113.74 ▲11.9341.96 ▼2.22
Dashboard /wp-admin2,233 ▲815.80 ▲0.2396.84 ▼14.1237.62 ▼8.61
Posts /wp-admin/edit.php2,116 ▲272.02 ▼0.0238.91 ▲3.7536.83 ▼1.02
Add New Post /wp-admin/post-new.php1,540 ▲2117.72 ▼5.38639.89 ▲1.6049.30 ▼4.65
Media Library /wp-admin/upload.php1,418 ▲394.21 ▲0.0395.43 ▼1.4542.92 ▼0.37
Add New /wp-admin/admin.php?page=aspl_asl_add_new_group_list1,2021.7229.8232.73
Social Links /wp-admin/admin.php?page=aspl_asl_group_list8921.7023.4227.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_aspl_asl_group_data
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-link-groups/index.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-link-groups/templates/add_new_group.php:179

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: social buttons, aspl, links, social, wordpress

social-link-groups/index.php 85% from 13 tests

"Social Link Groups" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-link-groups.php" instead of "index.php")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected16,849 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,026
JavaScript2388614,080
CSS31,44563,100
PHP48422643

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assest/images/link.png3.02KB2.17KB▼ 28.16%
assest/images/line.png4.08KB2.42KB▼ 40.70%
assest/images/you_tube.png4.31KB2.47KB▼ 42.68%
assest/images/Twiter.png3.75KB2.40KB▼ 36.00%
assest/images/Tumblr.png1.71KB1.26KB▼ 25.95%