Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.78MB] [CPU: ▼3.60ms] Passed 4 tests
This is a short check of server-side resources used by Simple Social Media Share Buttons - Social Sharing for Everyone
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 37.32 ▼2.62 |
Dashboard /wp-admin | 4.22 ▲0.88 | 54.28 ▼6.46 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 52.10 ▲6.20 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 89.24 ▼11.52 |
Media Library /wp-admin/upload.php | 4.08 ▲0.86 | 40.83 ▲8.17 |
Settings /wp-admin/admin.php?page=simple-social-buttons | 4.06 | 35.81 |
Help /wp-admin/admin.php?page=ssb-help | 4.10 | 38.07 |
Import / Export /wp-admin/admin.php?page=ssb-import-export | 4.06 | 34.73 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 90 new files
Database: no new tables, 17 new options
New WordPress options |
---|
ssb_networks |
ssb_pr_version |
widget_recent-comments |
widget_theysaidso_widget |
ssb_positions |
ssb_themes |
widget_ssb_widget |
ssb_media |
widget_recent-posts |
ssb_inline |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Social Media Share Buttons - Social Sharing for Everyone
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲209 | 14.30 ▼0.13 | 42.99 ▲41.31 | 46.47 ▲1.02 |
Dashboard /wp-admin | 2,243 ▲63 | 5.95 ▲0.32 | 88.77 ▼12.70 | 41.05 ▼3.84 |
Posts /wp-admin/edit.php | 2,150 ▲47 | 2.26 ▲0.18 | 40.00 ▲0.28 | 36.33 ▼2.38 |
Add New Post /wp-admin/post-new.php | 6,275 ▲4,744 | 26.16 ▲3.07 | 935.54 ▲239.96 | 38.30 ▼24.64 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.36 ▲0.15 | 97.27 ▼9.36 | 41.77 ▼6.57 |
Settings /wp-admin/admin.php?page=simple-social-buttons | 2,963 | 2.88 | 64.36 | 80.46 |
Help /wp-admin/admin.php?page=ssb-help | 859 | 2.15 | 34.55 | 28.35 |
Import / Export /wp-admin/admin.php?page=ssb-import-export | 909 | 1.92 | 27.21 | 28.06 |
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
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/simple-social-buttons/uninstall.php+18
Undefined index: ssb_uninstall_data
- The uninstall procedure has failed, leaving 17 options in the database
- ssb_positions
- ssb_media
- widget_theysaidso_widget
- ssb_networks
- ssb_inline
- can_compress_scripts
- widget_ssb_widget
- ssb_themes
- theysaidso_admin_options
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php
- 61× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: display in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 10
- > PHP Notice
Undefined variable: display in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 26
- > PHP Warning
include_once(SSB_PLUGIN_DIR/classes/ssb-settings-structure.php): failed to open stream: No such file or directory in wp-content/plugins/simple-social-buttons/classes/ssb-settings.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-social-buttons/classes/ssb-widget.php:10
- > PHP Notice
Undefined variable: facebook_show_counter in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-social-buttons/inc/ssb-widget-fields.php:3
- > PHP Notice
Undefined variable: instagram_follower in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 33
- > PHP Notice
Undefined variable: google_id in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 21
- > PHP Notice
Undefined variable: whatsapp_text in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 36
- > PHP Notice
Undefined variable: youtube_text in wp-content/plugins/simple-social-buttons/inc/ssb-widget-front.php on line 26
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: twitter, social buttons, facebook, plus one, pinterest...
simple-social-buttons/simple-social-buttons.php 92% from 13 tests
The main PHP file in "Simple Social Media Share Buttons - Social Sharing for Everyone" ver. 5.1.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 don't use more than 140 characters for the plugin description (currently 262 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin15,335 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,196 | 1,705 | 5,246 |
CSS | 4 | 412 | 423 | 4,554 |
JavaScript | 4 | 543 | 366 | 2,756 |
PO File | 12 | 1,237 | 2,153 | 2,147 |
SVG | 14 | 0 | 12 | 632 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 91.86 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 1 | 0.53% |
▷ Public methods | 186 | 99.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.53% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
12 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/images/ssb_grey_logo.png | 9.53KB | 5.18KB | ▼ 45.60% |
assets/images/viber.png | 0.94KB | 0.83KB | ▼ 11.05% |
assets/images/fblike.png | 1.65KB | 0.48KB | ▼ 71.07% |
assets/images/twitter.png | 0.81KB | 0.71KB | ▼ 13.07% |
assets/images/googleplus.png | 0.89KB | 0.79KB | ▼ 11.91% |