Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.77ms] Passed 4 tests
Server-side resources used by Floating Social Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 42.85 ▲0.23 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.46 ▲0.09 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 50.69 ▼1.26 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 97.05 ▼14.14 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.74 ▲4.23 |
Floating Social Bar /wp-admin/options-general.php?page=floating-social-bar | 3.38 | 33.42 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
fsb_global_option |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Floating Social Bar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.73 ▼0.66 | 1.63 ▼0.31 | 43.56 ▼7.54 |
Dashboard /wp-admin | 2,210 ▲19 | 5.88 ▲1.00 | 97.70 ▼5.35 | 39.46 ▲0.22 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.00 | 40.90 ▲0.92 | 33.39 ▼2.87 |
Add New Post /wp-admin/post-new.php | 6,483 ▲4,949 | 20.23 ▼2.92 | 839.19 ▲197.13 | 58.89 ▼5.83 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▼0.01 | 94.63 ▼4.80 | 41.71 ▼2.74 |
Floating Social Bar /wp-admin/options-general.php?page=floating-social-bar | 1,360 | 4.70 | 143.76 | 128.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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 require attention:
- Tags: You are using too many tags: 32 tag instead of maximum 10
floating-social-bar/floating-social-bar.php 85% from 13 tests
"Floating Social Bar" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,752 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 879 | 39 | 4,694 |
JavaScript | 4 | 486 | 382 | 1,249 |
PHP | 2 | 193 | 416 | 634 |
SVG | 1 | 0 | 0 | 175 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 125.00 |
▷ Minimum class complexity | 125.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 5 | 17.86% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fsb-sprite.png | 4.06KB | 3.17KB | ▼ 22.01% |
images/soliloquy.png | 10.51KB | 9.79KB | ▼ 6.91% |
css/images/sprite.png | 1.83KB | 1.33KB | ▼ 27.16% |