84% new-social-media-widget

Code Review | Social Media Icons - Social Icons Widget

WordPress plugin Social Media Icons - Social Icons Widget scored84%from 54 tests.

About plugin

  • Plugin page: new-social-media-...
  • Plugin version: 1.1.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2016
  • Latest release: Oct 20, 2023
  • Number of updates: 119
  • Update frequency: every 22.6 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

6,000+ active /176,258 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.16ms] Passed 4 tests

This is a short check of server-side resources used by Social Media Icons - Social Icons Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.49 ▼0.21
Dashboard /wp-admin3.43 ▲0.1344.78 ▼0.82
Posts /wp-admin/edit.php3.49 ▲0.1345.32 ▼0.59
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.92 ▼3.03
Media Library /wp-admin/upload.php3.36 ▲0.1332.33 ▼0.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_new_social_media_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Social Media Icons - Social Icons Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.68 ▲0.1839.72 ▼5.57
Dashboard /wp-admin2,195 ▲185.55 ▼0.0280.18 ▼9.0038.22 ▼0.46
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0434.05 ▼2.2732.11 ▼3.81
Add New Post /wp-admin/post-new.php1,526 ▼923.22 ▲5.03635.08 ▼5.1555.83 ▼17.21
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0595.40 ▼17.5141.58 ▼6.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_new_social_media_widget
    • widget_recent-comments
    • 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 | 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/new-social-media-widget/new-social-media-widget.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: social media icons, facebook twitter icon, social account icons, social profile icons, profile icon plugin

new-social-media-widget/new-social-media-widget.php 92% from 13 tests

The principal PHP file in "Social Media Icons - Social Icons Widget" v. 1.1.22 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 257 characters long)

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
Everything looks great! No dangerous files found in this plugin15,708 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS4214,15810,843
JavaScript21,0775013,469
SVG100685
PHP13347625
PO File1374186

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity136.00
▷ Minimum class complexity136.00
▷ Maximum class complexity136.00
Average method complexity34.75
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin