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

Code Review | Advanced Skins for Social Media Feather

WordPress plugin Advanced Skins for Social Media Feather scored 84% 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: 6.3.1
  • 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 / 904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Advanced Skins for Social Media Feather
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.45 ▼3.66
Dashboard /wp-admin3.32 ▲0.0246.61 ▼0.52
Posts /wp-admin/edit.php3.37 ▲0.0243.14 ▼3.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.68 ▼19.78
Media Library /wp-admin/upload.php3.25 ▲0.0237.94 ▲5.07

Server storage [IO: ▲0.33MB] [DB: ▲0.33MB] 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, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Skins for Social Media Feather
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.051.76 ▲0.1445.46 ▼1.46
Dashboard /wp-admin2,209 ▲215.87 ▲0.0197.38 ▼4.3047.68 ▲2.57
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0633.36 ▼7.9733.10 ▼2.60
Add New Post /wp-admin/post-new.php1,514 ▼1917.41 ▼5.78667.13 ▲8.2853.26 ▲0.81
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.01108.62 ▲2.1547.43 ▼1.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/color-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/gray-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/white-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/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/black-transparent/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/lang/index.php
    • > /wp-content/plugins/advanced-skins-for-social-media-feather/img/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: social media, share, social buttons, socicon, social sharing

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

The main PHP script in "Advanced Skins for Social Media Feather" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin72 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP361772

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
594 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/white-transparent/16x16/linkedin.png0.29KB0.36KB0.00%
img/blue-transparent/96x96/facebook.png0.38KB0.40KB0.00%
img/silver-transparent/96x96/tumblr.png0.45KB0.49KB0.00%
img/silver-transparent/64x64/pinterest.png0.61KB0.64KB0.00%
img/black-transparent/32x32/facebook.png0.20KB0.28KB0.00%