84% wp-fixed-social-profile-icons

Code Review | Wp Fixed Social Profile Icons

WordPress plugin Wp Fixed Social Profile Icons scored84%from 54 tests.

About plugin

  • Plugin page: wp-fixed-social-p...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.5
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Aug 28, 2020
  • Number of updates: 11
  • Update frequency: every 205.3 days
  • Top authors: aman086 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Wp Fixed Social Profile Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0228.26 ▼14.25
Dashboard /wp-admin3.39 ▲0.0450.02 ▼12.34
Posts /wp-admin/edit.php3.44 ▲0.0846.36 ▲0.11
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.85 ▲1.98
Media Library /wp-admin/upload.php3.31 ▲0.0837.59 ▼1.84

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: 11 new files
Database: no new tables, 7 new options
New WordPress options
fsi_settings
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Wp Fixed Social Profile Icons: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7514.43 ▲0.081.80 ▲0.2143.40 ▲2.76
Dashboard /wp-admin2,228 ▲475.81 ▲0.1090.30 ▼22.4142.04 ▼0.81
Posts /wp-admin/edit.php2,132 ▲322.26 ▲0.2435.68 ▲0.4032.01 ▼3.39
Add New Post /wp-admin/post-new.php1,551 ▲2323.52 ▲0.15687.84 ▲12.4737.64 ▼26.42
Media Library /wp-admin/upload.php1,430 ▲304.50 ▲0.33100.31 ▼12.0544.69 ▼2.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • fsi_settings
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-fixed-social-profile-icons/fixed-social-profile-icons.php

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: social plugin, google plus, linkedin, instagram, social...

wp-fixed-social-profile-icons/fixed-social-profile-icons.php 92% from 13 tests

"Wp Fixed Social Profile Icons" version 1.1'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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-fixed-social-profile-icons.php" instead of "fixed-social-profile-icons.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
There were no executable files found in this plugin259 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP18521213
CSS11246

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/youtube-icon.png1.82KB1.49KB▼ 18.31%
img/tumblr-icon.png0.80KB0.66KB▼ 17.50%
img/twitter-icon.png1.05KB0.94KB▼ 10.53%
img/google-icon.png1.52KB1.22KB▼ 19.74%
img/instagram-icon.png3.55KB2.11KB▼ 40.65%