74% don-social-widget

Code Review | Don Social Widget

WordPress plugin Don Social Widget scored74%from 54 tests.

About plugin

  • Plugin page: don-social-widget
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Oct 22, 2016
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: rodrigodonini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.97MB] [CPU: ▼59.26ms] Passed 4 tests

A check of server-side resources used by Don Social Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.55 ▼42.26
Dashboard /wp-admin2.05 ▼1.306.18 ▼64.46
Posts /wp-admin/edit.php2.05 ▼1.316.57 ▼36.97
Add New Post /wp-admin/post-new.php2.05 ▼3.846.31 ▼93.35
Media Library /wp-admin/upload.php2.05 ▼1.185.43 ▼30.77
Social Widget /wp-admin/options-general.php?page=dsw_settings_options2.055.80

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_social_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Don Social Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.44 ▼0.701.66 ▼0.3145.26 ▲3.56
Dashboard /wp-admin2,247 ▲415.01 ▲0.1199.97 ▼6.0842.25 ▲4.51
Posts /wp-admin/edit.php2,134 ▲312.31 ▲0.2641.56 ▲1.0833.21 ▼3.66
Add New Post /wp-admin/post-new.php1,549 ▲923.91 ▲0.71671.39 ▲52.8737.84 ▼25.30
Media Library /wp-admin/upload.php1,426 ▲234.62 ▲0.36111.74 ▲8.5347.39 ▲6.32
Social Widget /wp-admin/options-general.php?page=dsw_settings_options1,0292.3847.4929.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_social_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=dsw_settings_options
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
The SRP test was a success

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: Please take inspiration from this readme.txt

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

"Don Social Widget" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
Print social icons in widgets

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,283 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS30142,214
SVG100685
PHP362108288
PO File1252568
JavaScript24128

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.00
▷ Minimum class complexity12.00
▷ Maximum class complexity14.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin