99% advanced-social-media-icons

Code Review | Advanced Social Media Icons

WordPress plugin Advanced Social Media Icons scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-social-m...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.9.2
  • First release: Jun 27, 2016
  • Latest release: Aug 18, 2016
  • Number of updates: 36
  • Update frequency: every 1.4 days
  • Top authors: riotweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,509 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼336.79ms] Passed 4 tests

Analyzing server-side resources used by Advanced Social Media Icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.23 ▼1.32
Dashboard /wp-admin3.41 ▲0.0033.14 ▼6.38
Posts /wp-admin/edit.php3.65 ▲0.0040.53 ▲1.24
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.02 ▼1,339.41
Media Library /wp-admin/upload.php3.30 ▲0.0023.97 ▼0.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Social Media Icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7316.18 ▲0.506.14 ▼0.672.60 ▲0.15
Dashboard /wp-admin2,895 ▲346.10 ▼0.08116.78 ▼14.54159.15 ▼4.56
Posts /wp-admin/edit.php2,694 ▲33.23 ▲0.0060.53 ▼7.66137.85 ▼11.02
Add New Post /wp-admin/post-new.php1,661 ▼9016.30 ▼4.73414.55 ▼65.32158.78 ▼2.29
Media Library /wp-admin/upload.php1,698 ▼35.53 ▲0.05138.76 ▼7.73189.47 ▲6.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

advanced-social-media-icons/functions.php 92% from 13 tests

The main PHP script in "Advanced Social Media Icons" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-social-media-icons.php" instead of "functions.php")

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
Success! There were no dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152320

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
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
There are no PNG files in this plugin