10% beautiful-social-widget

Code Review | Beautiful Social Widget

WordPress plugin Beautiful Social Widget scored10%from 54 tests.

About plugin

  • Plugin page: beautiful-social-...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.8
  • WordPress version: 6.3.1
  • First release: Nov 9, 2013
  • Latest release: Jan 16, 2014
  • Number of updates: 9
  • Update frequency: every 7.7 days
  • Top authors: sudeep611 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,816 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/beautiful-social-widget/beautiful-social-widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; beautiful_social_widget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼62.86ms] Passed 4 tests

Server-side resources used by Beautiful Social Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.334.72 ▼51.46
Dashboard /wp-admin2.16 ▼1.195.92 ▼60.00
Posts /wp-admin/edit.php2.16 ▼1.206.25 ▼43.63
Add New Post /wp-admin/post-new.php2.16 ▼3.736.31 ▼96.36
Media Library /wp-admin/upload.php2.16 ▼1.075.34 ▼29.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_beautiful_social_widget
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Beautiful Social Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.71 ▲0.362.19 ▼0.0344.29 ▲0.89
Dashboard /wp-admin2,195 ▲185.61 ▲0.0785.17 ▼4.3343.00 ▲4.88
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0334.33 ▼1.5939.13 ▲2.24
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▼0.03680.64 ▲69.1662.34 ▲9.34
Media Library /wp-admin/upload.php1,397 ▼34.11 ▼0.13110.06 ▲5.4949.13 ▲4.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > Deprecated in wp-content/plugins/beautiful-social-widget/beautiful-social-widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; beautiful_social_widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_beautiful_social_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-social-widget/beautiful-social-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Widget demo), #2 (Widget setting)
The official readme.txt might help

beautiful-social-widget/beautiful-social-widget.php Passed 13 tests

The entry point to "Beautiful Social Widget" version 1.5 is a PHP file that has certain tags in its header comment area
106 characters long description:
This plugin provides the widget to show the link to your Social profile and make your Website more Social.

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
Good job! No executable or dangerous file extensions detected127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161093
CSS11034

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity25.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%
Functions1
▷ Named functions1100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png20.85KB8.71KB▼ 58.21%
screenshot-1.png18.66KB7.24KB▼ 61.22%
images/social-icon.png17.96KB6.45KB▼ 64.07%