Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼140.14ms] Passed 4 tests
Analyzing server-side resources used by Social Share Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.36 ▲10.19 |
Dashboard /wp-admin | 3.10 ▲0.04 | 38.43 ▼5.58 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 45.27 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 89.42 ▼556.80 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.44 ▲3.42 |
Server storage [IO: ▲2.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 153 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Social Share Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,032 ▲436 | 16.85 ▲1.20 | 15.22 ▲4.97 | 45.23 ▼3.55 |
Dashboard /wp-admin | 3,092 ▲158 | 6.04 ▼0.18 | 140.56 ▼30.14 | 109.04 ▼0.30 |
Posts /wp-admin/edit.php | 2,861 ▲122 | 2.77 ▲0.04 | 68.96 ▲0.88 | 89.62 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,723 ▲108 | 18.90 ▼2.69 | 394.59 ▲94.35 | 109.39 ▲7.36 |
Media Library /wp-admin/upload.php | 1,929 ▲122 | 5.11 ▲0.09 | 161.83 ▲17.49 | 120.33 ▲6.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function 'wpassfi_delete_options' not found or invalid function name
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-share-floating-icons/social-share-floating-icons.php:13
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Social Share Buttons Settings Tab), #2 (Social Share Buttons Icons Selection Tab), #3 (Social Share Buttons Icons Manage Location Tab), #4 (Social Share Buttons Icons Setting Tab), #5 (Social Share Buttons Icons Themes Tab)
- Tags: Please delete some tags, you are using 73 tag instead of maximum 10
social-share-floating-icons/social-share-floating-icons.php Passed 13 tests
The main PHP script in "Social Share Buttons" version 3.0 is automatically included on every request by WordPress
73 characters long description:
Adds social floating icons on your Posts to share your content with style
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
Good job! No executable or dangerous file extensions detected6,503 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 478 | 167 | 5,454 |
PHP | 1 | 112 | 9 | 767 |
JavaScript | 1 | 36 | 0 | 282 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
146 PNG files occupy 1.68MB with 1.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-size.png | 23.25KB | 0.83KB | ▼ 96.42% |
images/t3-pinterest.png | 15.21KB | 6.47KB | ▼ 57.47% |
images/both-post.png | 18.86KB | 0.45KB | ▼ 97.60% |
images/t19-google.png | 9.54KB | 4.44KB | ▼ 53.48% |
images/t7-google.png | 15.90KB | 6.69KB | ▼ 57.93% |