10% round-social-media-buttons

Code Review | Round Social Media Buttons

WordPress plugin Round Social Media Buttons scored10%from 54 tests.

About plugin

  • Plugin page: round-social-medi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Mar 27, 2014
  • Latest release: Apr 18, 2014
  • Number of updates: 11
  • Update frequency: every 1.9 days
  • Top authors: solomon_s_scott (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /8,363 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php+105
    Methods with the same name as their class will not be constructors in a future version of PHP; Round_Social_Media_Buttons_Widget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.78ms] Passed 4 tests

Server-side resources used by Round Social Media Buttons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.395.34 ▼36.12
Dashboard /wp-admin2.10 ▼1.2110.72 ▼42.04
Posts /wp-admin/edit.php2.10 ▼1.267.84 ▼41.18
Add New Post /wp-admin/post-new.php2.10 ▼3.795.37 ▼99.51
Media Library /wp-admin/upload.php2.10 ▼1.134.85 ▼36.37
Social Media Buttons /wp-admin/options-general.php?page=round-social-media-buttons2.106.69

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_round_social_media_buttons_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Round Social Media Buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.78 ▲0.031.73 ▼0.3837.31 ▼4.65
Dashboard /wp-admin2,196 ▲195.68 ▲0.01119.40 ▲26.0649.90 ▲7.96
Posts /wp-admin/edit.php2,101 ▲12.03 ▼0.0039.76 ▲1.4038.25 ▲0.49
Add New Post /wp-admin/post-new.php1,529 ▲317.43 ▼0.14662.30 ▼27.7269.44 ▲12.93
Media Library /wp-admin/upload.php1,404 ▲44.30 ▼0.0197.13 ▼19.0147.46 ▲0.25
Social Media Buttons /wp-admin/options-general.php?page=round-social-media-buttons1,0062.0129.2927.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php+105
    Methods with the same name as their class will not be constructors in a future version of PHP; Round_Social_Media_Buttons_Widget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_round_social_media_buttons_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=round-social-media-buttons
    • > Deprecated in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php+105
    Methods with the same name as their class will not be constructors in a future version of PHP; Round_Social_Media_Buttons_Widget has a deprecated constructor
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=round-social-media-buttons
    • > Notice in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php+85
    Undefined variable: hidden_field

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/round-social-media-buttons/inc/front-end.php
  • 25× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 5
    • > PHP Notice
      Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 85
    • > PHP Notice
      Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 69
    • > PHP Notice
      Undefined variable: round_btn_instagram_url in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 36
    • > PHP Notice
      Undefined variable: after_widget in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 57
    • > PHP Notice
      Undefined variable: round_btn_google_url in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 21
    • > PHP Notice
      Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 45
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php on line 18
    • > PHP Notice
      Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 77
    • > PHP Notice
      Undefined variable: before_title in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

round-social-media-buttons/round_social_media_buttons.php 92% from 13 tests

The entry point to "Round Social Media Buttons" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("round-social-media-buttons.php" instead of "round_social_media_buttons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected386 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP48221252
CSS1211117
SVG11017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/images/round_sm_buttons-01.png18.72KB7.75KB▼ 58.63%