89% advance-social-icons

Code Review | Advanced Social icons

WordPress plugin Advanced Social icons scored89%from 54 tests.

About plugin

  • Plugin page: advance-social-icons
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 5, 2020
  • Latest release: Nov 4, 2022
  • Number of updates: 11
  • Update frequency: every 91.4 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Advanced Social icons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.05 ▲1.93
Dashboard /wp-admin3.32 ▲0.0244.57 ▼5.94
Posts /wp-admin/edit.php3.37 ▲0.0247.72 ▼0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.46 ▼21.10
Media Library /wp-admin/upload.php3.24 ▲0.0234.43 ▲2.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Advanced Social icons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.23 ▼1.074.63 ▲2.8643.81 ▲2.41
Dashboard /wp-admin2,209 ▲184.84 ▼0.02107.22 ▲7.7036.81 ▼5.71
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0136.59 ▼3.6634.11 ▼0.57
Add New Post /wp-admin/post-new.php1,533 ▲1123.28 ▲0.27652.97 ▲26.6758.12 ▲5.63
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0293.89 ▲0.4041.76 ▲0.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires at least: Version not formatted correctly
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

advance-social-icons/plugin.php 85% from 13 tests

The main file in "Advanced Social icons" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 261 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("advance-social-icons.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,398 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9175212723
JavaScript589106334
HTML110266
CSS28575

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.33
▷ Minimum class complexity6.00
▷ Maximum class complexity33.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods31
▷ Static methods722.58%
▷ Public methods2993.55%
▷ Protected methods26.45%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin