94% advanced-skins-for-social-media-feather

Code Review | Advanced Skins for Social Media Feather

WordPress plugin Advanced Skins for Social Media Feather scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-skins-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.1
  • WordPress version: 5.9.2
  • First release: Mar 15, 2019
  • Latest release: Mar 16, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: susanwrotethis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 682 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼293.34ms] Passed 4 tests

Server-side resources used by Advanced Skins for Social Media Feather
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0258.28 ▲10.14
Dashboard /wp-admin3.43 ▲0.0233.87 ▼0.36
Posts /wp-admin/edit.php3.66 ▲0.0236.74 ▼0.15
Add New Post /wp-admin/post-new.php6.90 ▼0.0696.55 ▼1,169.81
Media Library /wp-admin/upload.php3.31 ▲0.0124.66 ▼3.02

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 649 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Skins for Social Media Feather
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲7315.81 ▲0.166.26 ▲0.242.63 ▲0.31
Dashboard /wp-admin2,888 ▲306.17 ▼0.01116.52 ▼18.30154.67 ▼5.42
Posts /wp-admin/edit.php2,694 ▲93.02 ▼0.2163.31 ▼0.24141.01 ▲0.31
Add New Post /wp-admin/post-new.php1,661 ▼716.94 ▼1.08433.20 ▲24.80161.09 ▲5.15
Media Library /wp-admin/upload.php1,698 ▼05.55 ▲0.03142.11 ▲7.53184.28 ▼6.26

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
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/white-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/lang/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/black-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/color-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/silver-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/blue-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/gray-transparent/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: socicon, social media, share, social buttons, social sharing

advanced-skins-for-social-media-feather/advanced-skins-for-social-media-feather.php 85% from 13 tests

Analyzing the main PHP file in "Advanced Skins for Social Media Feather" version 1.0
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected72 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP361772

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
594 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/gray-transparent/96x96/reddit.png0.75KB0.79KB0.00%
img/white-transparent/16x16/vimeo.png0.31KB0.37KB0.00%
img/color-transparent/16x16/pinterest.png0.31KB0.38KB0.00%
img/blue-transparent/32x32/flickr.png0.26KB0.30KB0.00%
img/black-transparent/24x24/facebook.png0.17KB0.25KB0.00%