84% social-profile-icons

Code Review | Social Profile Icons Widget

WordPress plugin Social Profile Icons Widget scored 84% from 54 tests.

About plugin

  • Plugin page: social-profile-icons
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5.3
  • WordPress version: 6.3.1
  • First release: Sep 10, 2016
  • Latest release: Sep 10, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: Gravitas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,019 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: ▼3.58ms] Passed 4 tests

This is a short check of server-side resources used by Social Profile Icons Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.80 ▼7.03
Dashboard /wp-admin3.32 ▲0.0145.86 ▼6.00
Posts /wp-admin/edit.php3.37 ▲0.0148.54 ▲2.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.93 ▲5.25
Media Library /wp-admin/upload.php3.24 ▲0.0132.38 ▼3.34

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_social-profile-icons
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Social Profile Icons Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1313.54 ▲0.221.61 ▼4.4244.56 ▲0.39
Dashboard /wp-admin2,206 ▼34.86 ▲0.01109.42 ▼4.9739.94 ▼4.90
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0339.95 ▲4.7335.58 ▲2.92
Add New Post /wp-admin/post-new.php1,519 ▲10823.07 ▲5.24652.72 ▲11.6555.18 ▲6.75
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0194.16 ▼3.7744.71 ▼0.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_social-profile-icons

Smoke tests 75% 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)
Everything seems fine, however 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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/social-profile-icons/widget-view.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: social profiles, widget, social buttons, social media, social...

social-profile-icons/social-profile-icons.php 85% from 13 tests

The primary PHP file in "Social Profile Icons Widget" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin610 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP25195318
JSON100136
CSS1611115
SVG120032
JavaScript1109

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods541.67%
▷ Protected methods00.00%
▷ Private methods758.33%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected