Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼268.28ms] Passed 4 tests
An overview of server-side resources used by Floating Social Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 37.11 ▲16.68 |
Dashboard /wp-admin | 3.11 ▲0.06 | 44.72 ▲2.68 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 40.55 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 86.72 ▼1,059.02 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 24.47 ▼14.89 |
Floating Social Buttons /wp-admin/options-general.php?page=floating-social-buttons | 3.03 | 33.05 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 5 new options
New WordPress options |
---|
selected_button |
floating_social_button_float |
floating_social_button_position_top |
floating_social_button_position_left |
floating_social_button_disable_mobile |
Browser metrics Passed 4 tests
Floating Social Buttons: 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,967 ▲361 | 21.73 ▲5.84 | 119.55 ▲109.43 | 78.46 ▲30.19 |
Dashboard /wp-admin | 2,964 ▲117 | 5.91 ▲0.07 | 134.38 ▼7.36 | 98.67 ▼8.80 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.68 ▼0.00 | 67.11 ▼0.76 | 93.07 ▼11.25 |
Add New Post /wp-admin/post-new.php | 1,856 ▲203 | 19.12 ▲0.32 | 359.96 ▲16.68 | 103.18 ▼5.39 |
Media Library /wp-admin/upload.php | 1,780 ▲5 | 5.00 ▼0.04 | 149.76 ▼10.21 | 113.70 ▼5.22 |
Floating Social Buttons /wp-admin/options-general.php?page=floating-social-buttons | 1,877 | 6.34 | 170.31 | 87.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 5 options in the database
- floating_social_button_disable_mobile
- floating_social_button_float
- floating_social_button_position_left
- selected_button
- floating_social_button_position_top
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/floating-social-buttons/class/our_plugins.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/floating-social-buttons/floating-social-buttons.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=floating-social-buttons
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=floating-social-buttons
- > Network (severe)
https://apis.google.com/_/im/_/widget/render/plus/followers?usegapi=1&bsv=o&action=followers&height=250&source=blogger%3Ablog%3Afollowers&width=280&origin=http%3A%2F%2Fwww.click2check.net&url=https%3A%2F%2Fplus.google.com%2F115313279456959924671&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.wyNTvg-ZoSU.O%2Fm%3D__features__%2Fam%3DIQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAItRSTP1urva78IJIHxeksZE6kSRRrxiwQ#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1393700337193&parent=http%3A%2F%2Fwww.click2check.net&pfname=&rpctoken=99993975 - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: buttons, social, facebook like, stumbleupon, tweet...
floating-social-buttons/floating-social-buttons.php Passed 13 tests
The primary PHP file in "Floating Social Buttons" version 1.5 is used by WordPress to initiate all plugin functionality
82 characters long description:
Floating Social Buttons Provide an easy way to add floating social sharing button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,358 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 31 | 29 | 6,214 |
JavaScript | 3 | 588 | 279 | 1,567 |
PHP | 2 | 94 | 17 | 348 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 7 | |
▷ Named functions | 7 | 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 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected