10% awesome-social-media-icons

Code Review | Awesome Social Media Icons

WordPress plugin Awesome Social Media Icons scored10%from 54 tests.

About plugin

  • Plugin page: awesome-social-me...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 28, 2018
  • Latest release: Jul 28, 2018
  • Number of updates: 15
  • Update frequency: N/A
  • Top authors: skywaveinfo (93.33%)Otto42 (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/awesome-social-media-icons/awesome-social-media-icons.php+158
    Undefined variable: table_nam

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.29ms] Passed 4 tests

Server-side resources used by Awesome Social Media Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.70 ▲3.09
Dashboard /wp-admin3.34 ▲0.0341.34 ▼9.93
Posts /wp-admin/edit.php3.39 ▲0.0346.07 ▲1.69
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.90 ▲4.30
Media Library /wp-admin/upload.php3.26 ▲0.0336.57 ▼0.00
Add Icons /wp-admin/admin.php?page=social-icon3.2430.90
View All /wp-admin/admin.php?page=View-all3.2129.84

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: 1 new table, 6 new options
New tables
wp_s_icon
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome Social Media Icons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.40 ▼0.981.82 ▲0.0441.59 ▼2.29
Dashboard /wp-admin2,239 ▲515.12 ▼0.69112.22 ▼2.5045.64 ▼0.82
Posts /wp-admin/edit.php2,125 ▲392.35 ▲0.2940.12 ▲5.7837.54 ▼0.53
Add New Post /wp-admin/post-new.php1,557 ▲2918.99 ▼4.22613.47 ▼49.1257.74 ▼1.42
Media Library /wp-admin/upload.php1,421 ▲334.50 ▲0.33100.36 ▲2.4842.94 ▲0.96
Add Icons /wp-admin/admin.php?page=social-icon1,0401.9128.5362.23
View All /wp-admin/admin.php?page=View-all8481.9028.1736.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=social-icon
    • > Notice in wp-content/plugins/awesome-social-media-icons/addicons.php+37
    Undefined variable: image_url
    • > GET request to /wp-admin/admin.php?page=View-all
    • > Notice in wp-content/plugins/awesome-social-media-icons/awesome-social-media-icons.php+135
    Undefined index: check_list

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% 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
8 plugin tags: icons, media, awesome icons, social icons, media icons...

awesome-social-media-icons/awesome-social-media-icons.php 92% from 13 tests

The main PHP script in "Awesome Social Media Icons" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 158 characters long)

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 plugin22,201 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,1915412,473
JavaScript41,7821,7056,755
SVG1002,671
PHP53926302

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.81KB6.44KB▼ 49.74%