99% advance-social-icons

Code Review | Advanced Social icons

WordPress plugin Advanced Social icons scored 99% from 54 tests.

About plugin

  • Plugin page: advance-social-icons
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.9.2
  • First release: Feb 5, 2020
  • Latest release: Jul 29, 2021
  • Number of updates: 8
  • Update frequency: every 67.7 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 532 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼289.95ms] Passed 4 tests

Analyzing server-side resources used by Advanced Social icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2460.27 ▲9.16
Dashboard /wp-admin3.58 ▲0.1734.60 ▼1.99
Posts /wp-admin/edit.php3.80 ▲0.1638.58 ▲2.57
Add New Post /wp-admin/post-new.php7.04 ▲0.0796.05 ▼1,164.60
Media Library /wp-admin/upload.php3.45 ▲0.1627.12 ▲4.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Social icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲6215.81 ▲0.205.94 ▲0.162.66 ▲0.50
Dashboard /wp-admin2,892 ▲316.26 ▲0.11117.83 ▼10.28155.40 ▼0.05
Posts /wp-admin/edit.php2,688 ▼03.24 ▼0.0064.17 ▲2.83138.16 ▲2.54
Add New Post /wp-admin/post-new.php1,690 ▲2920.59 ▲4.23418.37 ▲8.72158.01 ▲5.17
Media Library /wp-admin/upload.php1,695 ▼35.52 ▼0.00140.57 ▲0.08185.67 ▼4.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: share, social media, custom icons, social widget, font awesome...

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

"Advanced Social icons" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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: Even though not officially enforced, the main 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,398 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9183212723
JavaScript589106334
HTML110266
CSS28575

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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
No PNG images were found in this plugin