Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▲3.91ms] 75% from 4 tests
This is a short check of server-side resources used by Social Share Buttons by Supsystic
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,028.52ms on /wp-admin/admin.php?page=supsystic-social-sharing&module=overview)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.15 | 16.46 ▼21.92 |
Dashboard /wp-admin | 3.66 ▲0.35 | 59.79 ▲15.29 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 58.52 ▲10.40 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 99.35 ▲12.34 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 51.85 ▲14.81 |
Projects /wp-admin/admin.php?page=supsystic-social-sharing&module=projects | 4.47 | 463.48 |
Social Share by Supsystic /wp-admin/admin.php?page=supsystic-social-sharing | 4.47 | 64.60 |
Overview /wp-admin/admin.php?page=supsystic-social-sharing&module=overview | 6.26 | 1,028.52 |
New Project /wp-admin/admin.php?page=supsystic-social-sharing&module=projects&action=add | 4.49 | 68.47 |
Server storage [IO: ▲6.10MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 555 new files
Database: 6 new tables, 11 new options
New tables |
---|
wp_supsystic_ss_shares |
wp_supsystic_ss_shares_object |
wp_supsystic_ss_views |
wp_supsystic_ss_project_networks |
wp_supsystic_ss_networks |
wp_supsystic_ss_projects |
New WordPress options |
---|
sss_promo_shown |
can_compress_scripts |
widget_supsystic_social_sharing |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
sss_welcome_page_was_showed |
showSharingRevNotice |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Social Share Buttons by Supsystic
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.35 ▲0.07 | 1.56 ▲0.12 | 42.09 ▲2.76 |
Dashboard /wp-admin | 2,237 ▲63 | 5.63 ▼0.02 | 92.60 ▲5.63 | 41.30 ▲0.24 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.01 ▼0.02 | 39.94 ▲1.70 | 34.02 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,559 ▲21 | 23.26 ▼0.04 | 680.44 ▼0.84 | 65.40 ▲10.91 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.20 ▼0.07 | 97.17 ▲3.65 | 42.19 ▼0.16 |
Projects /wp-admin/admin.php?page=supsystic-social-sharing&module=projects | 1,392 | 9.77 | 312.91 | 67.16 |
Social Share by Supsystic /wp-admin/admin.php?page=supsystic-social-sharing | 1,072 | 3.32 | 61.55 | 45.95 |
Overview /wp-admin/admin.php?page=supsystic-social-sharing&module=overview | 2,342 | 16.79 | 445.94 | 49.39 |
New Project /wp-admin/admin.php?page=supsystic-social-sharing&module=projects&action=add | 1,208 | 3.69 | 62.88 | 42.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 6 tables in the database
- wp_supsystic_ss_networks
- wp_supsystic_ss_views
- wp_supsystic_ss_projects
- wp_supsystic_ss_project_networks
- wp_supsystic_ss_shares_object
- wp_supsystic_ss_shares
- Zombie WordPress options detected upon uninstall: 9 options
- can_compress_scripts
- widget_recent-posts
- widget_supsystic_social_sharing
- db_upgraded
- showSharingRevNotice
- widget_theysaidso_widget
- theysaidso_admin_options
- sss_welcome_page_was_showed
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 213× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Twig_SupTwgSss_TestInterface' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/Test.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Twig_SupTwgSss_TokenParserInterface' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/TokenParser.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSss_Node_Expression_Binary' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/Node/Expression/Binary/EndsWith.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSss_BaseNodeVisitor' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/NodeVisitor/Optimizer.php:24
- > PHP Fatal error
Uncaught Error: Class 'RscSss_Mvc_Module' not found in wp-content/plugins/social-share-buttons-by-supsystic/src/SocialSharing/Overview/Module.php:4
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSss_TokenParser' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/TokenParser/Block.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Twig_SupTwgSss_LoaderInterface' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/Loader/Array.php:26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/Test/NodeTestCase.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_SupTwgSss_Node_Expression' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/Node/Expression/TempName.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Twig_SupTwgSss_CacheInterface' not found in wp-content/plugins/social-share-buttons-by-supsystic/vendor/Twig/Cache/Null.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 ([Social Buttons Design](http://supsystic.com/plugins/social-share-plugin?utm_source=plugin&utm_medium=screenshotfirst&utm_campaign=socialbuttons "Social Buttons Design")), #2 (Social Share Buttons Admin Interface), #3 ([Social Share Buttons](http://supsystic.com/plugins/social-share-plugin?utm_source=plugin&utm_medium=screenshotsecond&utm_campaign=socialbuttons "Social Share Buttons") by Supsystic - admin interface. Where and when to show social buttons), #4 (Black and White Social Buttons)
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-share-buttons-by-supsystic/index.php 92% from 13 tests
The main PHP file in "Social Share Buttons by Supsystic" ver. 2.2.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-share-buttons-by-supsystic.php" instead of "index.php")
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 detected44,794 lines of code in 456 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 307 | 4,380 | 9,010 | 19,118 |
JavaScript | 64 | 656 | 1,427 | 8,364 |
CSS | 41 | 430 | 488 | 6,042 |
PO File | 12 | 2,422 | 104 | 5,362 |
SVG | 2 | 0 | 0 | 2,908 |
Twig | 20 | 143 | 88 | 2,168 |
LESS | 10 | 107 | 30 | 832 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 34 | |
Traits | 0 | |
Classes | 270 | |
▷ Abstract classes | 19 | 7.04% |
▷ Concrete classes | 251 | 92.96% |
▷ Final classes | 1 | 0.40% |
Methods | 1,769 | |
▷ Static methods | 66 | 3.73% |
▷ Public methods | 1,564 | 88.41% |
▷ Protected methods | 167 | 9.44% |
▷ Private methods | 38 | 2.15% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 64 | |
▷ Global constants | 3 | 4.69% |
▷ Class constants | 61 | 95.31% |
▷ Public constants | 61 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
57 PNG files occupy 0.63MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/css/libraries/minimal/minimal.png | 2.23KB | 1.44KB | ▼ 35.45% |
app/assets/css/libraries/minimal/yellow@2x.png | 1.37KB | 2.66KB | 0.00% |
src/SocialSharing/Projects/assets/images/free_icons.png | 23.46KB | 10.08KB | ▼ 57.02% |
app/assets/css/images/ui-bg_highlight-hard_15_888888_1x100.png | 0.25KB | 0.14KB | ▼ 43.82% |
src/SocialSharing/Overview/assets/img/overview-02.png | 16.54KB | 5.61KB | ▼ 66.11% |