Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲4.40MB] [CPU: ▼280.14ms] Passed 4 tests
An overview of server-side resources used by Social Kit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.38 ▲4.87 | 79.03 ▲23.09 |
Dashboard /wp-admin | 8.40 ▲4.99 | 59.97 ▲21.60 |
Posts /wp-admin/edit.php | 8.40 ▲4.76 | 60.57 ▲19.54 |
Add New Post /wp-admin/post-new.php | 9.96 ▲2.99 | 151.08 ▼1,175.78 |
Media Library /wp-admin/upload.php | 8.40 ▲5.11 | 46.44 ▲14.08 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.40 | 45.19 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 180 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
Social Kit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,976 ▲222 | 18.08 ▲2.68 | 19.29 ▲12.64 | 2.64 ▲0.03 |
Dashboard /wp-admin | 2,953 ▲95 | 6.14 ▼0.08 | 130.02 ▼8.62 | 203.06 ▲40.57 |
Posts /wp-admin/edit.php | 2,760 ▲72 | 3.24 ▲0.01 | 66.68 ▲3.08 | 168.03 ▲29.42 |
Add New Post /wp-admin/post-new.php | 1,704 ▼15 | 21.01 ▼1.73 | 509.33 ▲103.06 | 179.36 ▲19.00 |
Media Library /wp-admin/upload.php | 1,770 ▲72 | 5.51 ▲0.02 | 144.02 ▼5.26 | 204.13 ▲19.08 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,452 | 2.49 | 55.92 | 149.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/social-kit/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 4 options in the database
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- fs_accounts
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/social-kit/freemius/templates/ajax-loader.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-kit/widgets/call-button.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/social-kit/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/social-kit/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-kit/widgets/linkedin.php:4
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-kit/widgets/social-popup.php:4
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/social-kit/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-kit/widgets/social-bar.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/social-kit/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-kit/admin/social-kit-options.php:18
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-kit/widgets/twitch-live.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
social-kit/social-kit.php Passed 13 tests
The main file in "Social Kit" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
Social Kit For Elementor
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected34,480 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 7,404 | 16,191 | 33,188 |
CSS | 14 | 31 | 11 | 810 |
JavaScript | 4 | 41 | 59 | 241 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 77.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 1 | 1.96% |
Methods | 1,217 | |
▷ Static methods | 174 | 14.30% |
▷ Public methods | 865 | 71.08% |
▷ Protected methods | 27 | 2.22% |
▷ Private methods | 325 | 26.71% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 128 | |
▷ Global constants | 100 | 78.12% |
▷ Class constants | 28 | 21.88% |
▷ Public constants | 28 | 100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/social-kit.png | 18.05KB | 6.12KB | ▼ 66.07% |