90% your-social-icons

Code Review | Your social icons

WordPress plugin Your social icons scored 90% from 53 tests.

About plugin

  • Plugin page: your-social-icons
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 5.8.1
  • First release: Feb 7, 2017
  • Latest release: Mar 1, 2017
  • Number of updates: 9
  • Update frequency: every 2.3 days
  • Top authors: erikdukker (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼333.99ms] Passed 4 tests

Analyzing server-side resources used by Your social icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1633.25 ▲10.61
Dashboard /wp-admin3.11 ▲0.0642.81 ▲10.35
Posts /wp-admin/edit.php3.16 ▲0.0644.43 ▲5.44
Add New Post /wp-admin/post-new.php5.47 ▲0.0491.94 ▼1,345.38
Media Library /wp-admin/upload.php3.05 ▲0.0532.05 ▼6.35
Basic /wp-admin/admin.php?page=ysi_basic3.0628.93
Your social icons /wp-admin/admin.php?page=ysi3.0629.92
Expert /wp-admin/admin.php?page=ysi_expert3.0329.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
ysi-option

Browser metrics Passed 4 tests

Your social icons: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲13515.86 ▼0.077.52 ▼2.0448.31 ▼2.68
Dashboard /wp-admin2,992 ▲1395.87 ▼0.11140.64 ▲7.4994.64 ▼5.00
Posts /wp-admin/edit.php2,765 ▲592.70 ▲0.0267.81 ▲2.1891.47 ▲0.85
Add New Post /wp-admin/post-new.php1,687 ▲11019.14 ▲0.62359.98 ▼10.60111.04 ▲5.19
Media Library /wp-admin/upload.php1,834 ▲625.03 ▲0.03159.54 ▲7.44111.97 ▼1.92
Basic /wp-admin/admin.php?page=ysi_basic1,9382.2258.4685.44
Your social icons /wp-admin/admin.php?page=ysi1,9352.2359.0585.52
Expert /wp-admin/admin.php?page=ysi_expert1,1972.1055.8576.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/your-social-icons/ysi_your_social_icons.php+21
    Undefined variable: a

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: perfect social icons, sticky icons, social share, your icons, social media...

your-social-icons/ysi_your_social_icons.php 92% from 13 tests

"Your social icons" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("your-social-icons.php" instead of "ysi_your_social_icons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin351 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3216351

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
defaulticonssprite.png6.70KB2.99KB▼ 55.43%