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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.55 ▼42.26 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.18 ▼64.46 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.57 ▼36.97 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.31 ▼93.35 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.43 ▼30.77 |
Social Widget /wp-admin/options-general.php?page=dsw_settings_options | 2.05 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲87 | 13.44 ▼0.70 | 1.66 ▼0.31 | 45.26 ▲3.56 |
Dashboard /wp-admin | 2,247 ▲41 | 5.01 ▲0.11 | 99.97 ▼6.08 | 42.25 ▲4.51 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.31 ▲0.26 | 41.56 ▲1.08 | 33.21 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,549 ▲9 | 23.91 ▲0.71 | 671.39 ▲52.87 | 37.84 ▼25.30 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.62 ▲0.36 | 111.74 ▲8.53 | 47.39 ▲6.32 |
Social Widget /wp-admin/options-general.php?page=dsw_settings_options | 1,029 | 2.38 | 47.49 | 29.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:
- Screenshots: These screenshots need descriptions #2, #3 in don-social-widget/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 14 | 2,214 |
SVG | 1 | 0 | 0 | 685 |
PHP | 3 | 62 | 108 | 288 |
PO File | 1 | 25 | 25 | 68 |
JavaScript | 2 | 4 | 1 | 28 |
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 code | 0.22 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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