10% social-icon-links

Code Review | Social Icon Links

WordPress plugin Social Icon Links scored 10% from 54 tests.

About plugin

  • Plugin page: social-icon-links
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2012
  • Latest release: Nov 7, 2014
  • Number of updates: 14
  • Update frequency: every 51.9 days
  • Top authors: svincoll4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,958 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/social-icon-links/icon-links.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; CGI_IconLinkWidget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.84ms] Passed 4 tests

An overview of server-side resources used by Social Icon Links
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.86 ▼37.03
Dashboard /wp-admin2.11 ▼1.207.10 ▼47.58
Posts /wp-admin/edit.php2.11 ▼1.256.47 ▼40.58
Add New Post /wp-admin/post-new.php2.11 ▼3.786.26 ▼86.18
Media Library /wp-admin/upload.php2.11 ▼1.125.59 ▼32.06

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Social Icon Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.166.32 ▲4.4643.06 ▼6.45
Dashboard /wp-admin2,209 ▲215.85 ▲0.99100.34 ▼4.9639.44 ▼7.79
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0233.41 ▼4.1936.42 ▼0.55
Add New Post /wp-admin/post-new.php1,534 ▲1523.11 ▼0.37671.05 ▼11.1162.44 ▲1.69
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0194.56 ▼8.2041.23 ▼2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/social-icon-links/icon-links.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; CGI_IconLinkWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_cgi-icon-links-widget
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-icon-links/icon-links.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (At front page), #2 (At admin widgets)
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

social-icon-links/icon-links.php 92% from 13 tests

"Social Icon Links" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-icon-links.php" instead of "icon-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1367126

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity14.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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png36.21KB21.52KB▼ 40.56%
screenshot-1.png19.45KB7.89KB▼ 59.43%