Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▲0.77ms] Passed 4 tests
This is a short check of server-side resources used by Sharing Plus - Social Sharing Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 44.92 ▲7.18 |
Dashboard /wp-admin | 4.12 ▲0.82 | 51.43 ▲5.04 |
Posts /wp-admin/edit.php | 4.17 ▲0.82 | 46.28 ▲2.94 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 76.96 ▼12.10 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 40.81 ▲7.26 |
Settings /wp-admin/admin.php?page=sharing-plus | 3.96 | 35.01 |
Import / Export /wp-admin/admin.php?page=sharing-plus-import-export | 3.96 | 36.72 |
Server storage [IO: ▲1.00MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 14 new options
New WordPress options |
---|
sharing_plus_sidebar |
theysaidso_admin_options |
widget_recent-posts |
sharing_plus_version |
widget_recent-comments |
sharing_plus_themes |
db_upgraded |
can_compress_scripts |
widget_sharing_plus_follower_widget |
sharing_plus_inline |
... |
Browser metrics Passed 4 tests
Sharing Plus - Social Sharing Icons: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲212 | 14.71 ▲0.34 | 45.10 ▲43.43 | 44.08 ▲4.94 |
Dashboard /wp-admin | 2,244 ▲64 | 5.83 ▲0.17 | 84.28 ▼3.39 | 36.02 ▼6.21 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.28 ▲0.25 | 35.58 ▼1.04 | 34.59 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6,517 ▲4,986 | 29.59 ▲6.53 | 995.22 ▲352.87 | 38.68 ▼12.49 |
Media Library /wp-admin/upload.php | 1,489 ▲86 | 4.52 ▲0.39 | 94.26 ▼1.00 | 85.18 ▲38.96 |
Settings /wp-admin/admin.php?page=sharing-plus | 2,580 | 3.42 | 70.45 | 88.05 |
Import / Export /wp-admin/admin.php?page=sharing-plus-import-export | 951 | 2.06 | 28.49 | 31.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 13 options
- widget_recent-comments
- sharing_plus_networks
- sharing_plus_sidebar
- db_upgraded
- can_compress_scripts
- sharing_plus_advanced
- theysaidso_admin_options
- sharing_plus_themes
- sharing_plus_inline
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sharing-plus/inc/widgets/templates/tcy-follower-display.php
- 88× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: youtube_type in wp-content/plugins/sharing-plus/inc/widgets/templates/tcy-follower-display.php on line 19
- > PHP Notice
Undefined variable: pinterest_follower in wp-content/plugins/sharing-plus/inc/widgets/templates/tcy-follower-display.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharing-plus/inc/widgets/fields/tcy-termlist-field.php:7
- > PHP Notice
Undefined variable: facebook_text in wp-content/plugins/sharing-plus/inc/widgets/templates/tcy-follower-display.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharing-plus/inc/widgets/fields/tcy-upload-field.php:3
- > PHP Notice
Undefined variable: pinterest_text in wp-content/plugins/sharing-plus/inc/widgets/templates/tcy-follower-display.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sharing-plus/inc/widgets/fields/tcy-master-widget.php:11
- > PHP Notice
Undefined variable: twitter_follower in wp-content/plugins/sharing-plus/inc/widgets/templates/tcy-follower-display.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharing-plus/inc/widgets/fields/tcy-radio-field.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sharing-plus/inc/widgets/fields/tcy-icon-field.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: pinterest etc, twitter, facebook, social share, whatsapp...
sharing-plus/sharing-plus.php 92% from 13 tests
The main PHP file in "Sharing Plus - Social Sharing Icons" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 251 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14,484 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 982 | 1,034 | 4,848 |
Sass | 3 | 126 | 0 | 4,499 |
CSS | 4 | 645 | 297 | 3,994 |
SVG | 14 | 0 | 13 | 649 |
JavaScript | 4 | 92 | 63 | 490 |
INI | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 89.17 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 266.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 132 | 99.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.75% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/whatsapp.png | 1.07KB | 0.96KB | ▼ 9.94% |
assets/images/linkedin.png | 0.78KB | 0.68KB | ▼ 12.81% |
assets/images/sharing_plus_grey_logo.png | 4.40KB | 4.43KB | 0.00% |
assets/images/reddit.png | 0.94KB | 0.83KB | ▼ 11.04% |
assets/images/twitter.png | 0.81KB | 0.71KB | ▼ 13.07% |