89% advanced-social-media-icons

Code Review | Advanced Social Media Icons

WordPress plugin Advanced Social Media Icons scored 89% 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: 6.3.1
  • 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

20+ active / 1,718 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.40ms] Passed 4 tests

Analyzing server-side resources used by Advanced Social Media Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.06 ▼5.36
Dashboard /wp-admin3.31 ▲0.0151.74 ▲0.72
Posts /wp-admin/edit.php3.36 ▲0.0047.43 ▲2.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.60 ▲6.51
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▲3.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Advanced Social Media Icons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.33 ▼1.052.29 ▲0.2443.57 ▼6.20
Dashboard /wp-admin2,206 ▲215.90 ▲0.08106.47 ▼11.7739.48 ▼2.82
Posts /wp-admin/edit.php2,086 ▼02.05 ▲0.0340.27 ▲1.8934.50 ▼0.09
Add New Post /wp-admin/post-new.php1,514 ▼1923.38 ▲0.11604.13 ▼87.6057.97 ▲1.25
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0597.64 ▼20.8142.02 ▼5.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

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

"Advanced Social Media Icons" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152320

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected