Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/social-media-badge-widget/social-media-badge-widget.php+211
Methods with the same name as their class will not be constructors in a future version of PHP; Social_Media_Badge_Widget has a deprecated constructor
Server metrics [RAM: ▼1.75MB] [CPU: ▼53.31ms] Passed 4 tests
Analyzing server-side resources used by Social Media Badge Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 5.00 ▼32.21 |
Dashboard /wp-admin | 2.27 ▼1.08 | 6.30 ▼57.20 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 5.80 ▼38.49 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 6.63 ▼85.33 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 6.39 ▼24.94 |
Social Media Badge Widget /wp-admin/options-general.php?page=social-media-badge-widget | 2.27 | 5.78 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 122 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
smbw_settings |
widget_recent-comments |
widget_theysaidso_widget |
widget_social-media-badge-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Badge Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.56 ▼0.81 | 10.10 ▲8.58 | 43.15 ▲5.22 |
Dashboard /wp-admin | 2,213 ▲39 | 5.58 ▲0.05 | 82.49 ▼25.07 | 38.78 ▼4.20 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.12 ▲0.09 | 32.94 ▼1.89 | 35.03 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,552 ▲17 | 23.19 ▲5.03 | 677.21 ▲62.04 | 57.53 ▼14.35 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.20 ▲0.00 | 95.39 ▲2.84 | 40.63 ▼2.05 |
Social Media Badge Widget /wp-admin/options-general.php?page=social-media-badge-widget | 1,464 | 6.21 | 145.06 | 80.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/social-media-badge-widget/social-media-badge-widget.php+211
Methods with the same name as their class will not be constructors in a future version of PHP; Social_Media_Badge_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_social-media-badge-widget
- theysaidso_admin_options
- widget_recent-posts
- smbw_settings
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=social-media-badge-widget
- > Deprecated in wp-content/plugins/social-media-badge-widget/social-media-badge-widget.php+211
Methods with the same name as their class will not be constructors in a future version of PHP; Social_Media_Badge_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=social-media-badge-widget
- > Deprecated in wp-content/plugins/social-media-badge-widget/social-media-badge-widget.php+472
Function create_function() is deprecated
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/social-media-badge-widget/social-media-badge-widget.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-badge-widget/social-media-badge-widget-admin.php:45
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=social-media-badge-widget
- > Network (severe)
wp-content/plugins/business-contact-widget/images/spacd.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=social-media-badge-widget
- > Network (severe)
wp-content/plugins/social-media-badge-widget/css/images/ui-bg_flat_100_E4E4E4_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=social-media-badge-widget
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=social-media-badge-widget
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Widget front end - overview.), #2 (Widget front end - display Facebook business profile.), #3 (Widget front end - social stream colour on hover.), #4 (Widget front end - LinkedIn widget pops out of accordion to fully display.), #5 (Widget backend - details of widget.), #6 (Widget backend - display which social channels to display.), #7 (Settings backend - easily add the different social channels.), #8 (Settings backend - customise the styling options.)
social-media-badge-widget/social-media-badge-widget.php 85% from 13 tests
"Social Media Badge Widget" version 2.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin1,379 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 100 | 74 | 824 |
CSS | 13 | 81 | 97 | 300 |
PO File | 1 | 76 | 76 | 197 |
JavaScript | 4 | 20 | 24 | 58 |
PHP code Passed 2 tests
An short overview of 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 code | 0.26 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 8.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
94 PNG files occupy 0.73MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/linkedin_grey.png | 2.97KB | 0.33KB | ▼ 88.81% |
css/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.38KB | 0.18KB | ▼ 52.97% |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
images/twitter_grey.png | 0.64KB | 0.46KB | ▼ 28.57% |