Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/social-media-widgets/social-media-widget.php+133
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.15ms] Passed 4 tests
An overview of server-side resources used by Social Media Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.47 ▼35.38 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.20 ▼38.97 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 4.97 ▼47.63 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.57 ▼82.63 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.85 ▼26.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_social_media_widget |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.62 ▼0.80 | 4.81 ▲3.32 | 43.53 ▲5.97 |
Dashboard /wp-admin | 2,208 ▲19 | 4.84 ▼0.09 | 107.25 ▼10.96 | 37.83 ▼7.98 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▲0.01 | 35.25 ▼6.02 | 30.21 ▼4.33 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.30 ▲0.05 | 609.51 ▼66.57 | 50.66 ▼4.21 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.20 ▼0.00 | 96.05 ▼6.90 | 44.30 ▲1.02 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_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 socialmediaStylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_social_media_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/social-media-widgets/social-media-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Screenshots: Add a description for screenshot #2 in social-media-widgets/assets to your readme.txt
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-media-widgets/social-media-widget.php 77% from 13 tests
The primary PHP file in "Social Media Widget" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-media-widgets.php" instead of "social-media-widget.php")
- Description: The description should be shorter than 140 characters (currently 185 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin149 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 23 | 93 |
CSS | 1 | 0 | 0 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon_twitter_h.png | 2.08KB | 1.02KB | ▼ 50.92% |
assets/img/icon_facebook_h.png | 1.90KB | 0.83KB | ▼ 56.09% |
assets/img/icon_g-plus.png | 2.23KB | 1.13KB | ▼ 49.26% |
assets/img/icon_g-plus_h.png | 2.34KB | 1.21KB | ▼ 48.23% |
assets/img/icon_pinterest_h.png | 2.37KB | 1.23KB | ▼ 48.25% |