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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.51MB] [CPU: ▼4.25ms] Passed 4 tests
Analyzing server-side resources used by Social Share Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 46.96 ▲8.09 |
Dashboard /wp-admin | 3.81 ▲0.50 | 55.86 ▲2.44 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 53.66 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 89.37 ▼20.57 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 39.36 ▼0.58 |
Migrate /wp-admin/admin.php?page=social_share_button_migrate | 3.70 | 33.74 |
Migrate /wp-admin/admin.php?page=social_share_button_migrate_settings | 3.71 | 35.91 |
Server storage [IO: ▲8.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Social Share Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.45 ▼1.11 | 9.32 ▲7.48 | 42.88 ▲3.88 |
Dashboard /wp-admin | 2,224 ▲43 | 5.55 ▼0.15 | 84.97 ▼17.76 | 36.99 ▼6.44 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.00 ▼0.01 | 38.64 ▼3.16 | 36.35 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,574 ▲43 | 23.31 ▲0.13 | 643.25 ▼49.78 | 39.52 ▼21.25 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.20 ▼0.01 | 103.46 ▼11.16 | 46.72 ▲3.30 |
Migrate /wp-admin/admin.php?page=social_share_button_migrate | 796 | 2.02 | 24.97 | 22.83 |
Migrate /wp-admin/admin.php?page=social_share_button_migrate_settings | 793 | 2.02 | 25.79 | 24.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=social_share_button_migrate
- > Notice in wp-content/plugins/social-share-button/includes/menu/migrate.php+4
Undefined index: _wpnonce
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #8 (screenshot 8), #9 (screenshot 9), #10 (screenshot 10)
social-share-button/social-share-button.php Passed 13 tests
The main PHP script in "Social Share Button" version 2.1.12 is automatically included on every request by WordPress
21 characters long description:
Awesome Share Button.
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
There were no executable files found in this plugin26,089 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 11,282 |
CSS | 44 | 996 | 74 | 5,550 |
JavaScript | 5 | 1,548 | 404 | 5,332 |
PHP | 46 | 2,476 | 476 | 3,458 |
PO File | 2 | 225 | 278 | 467 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 109.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 641.00 |
Average method complexity | 14.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/theme1.png | 3.14KB | 1.87KB | ▼ 40.50% |
assets/admin/images/theme10.png | 1.98KB | 1.39KB | ▼ 29.64% |
assets/admin/images/theme31.png | 19.40KB | 3.63KB | ▼ 81.30% |
assets/admin/images/theme15.png | 1.44KB | 0.73KB | ▼ 49.18% |
assets/admin/images/theme23.png | 6.71KB | 2.47KB | ▼ 63.23% |