Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/2-click-socialmedia-buttons/libs/class-twoclick-backend.php+56
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.84ms] Passed 4 tests
A check of server-side resources used by 2 Click Social Media Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.33 ▲2.64 |
Dashboard /wp-admin | 3.53 ▲0.18 | 50.58 ▼12.71 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.79 ▼3.29 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 84.65 ▼20.20 |
Media Library /wp-admin/upload.php | 3.46 ▲0.22 | 36.34 ▲0.86 |
2-Klick-Buttons /wp-admin/options-general.php?page=twoclick_buttons | 3.44 | 32.03 |
Server storage [IO: ▲0.42MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
twoclick_buttons_settings |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by 2 Click Social Media Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.61 ▼1.05 | 7.91 ▲5.95 | 42.02 ▲5.18 |
Dashboard /wp-admin | 2,211 ▲20 | 4.95 ▲0.06 | 99.34 ▼5.02 | 79.66 ▲36.87 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.05 ▲0.04 | 36.65 ▼5.24 | 32.09 ▼10.27 |
Add New Post /wp-admin/post-new.php | 1,527 ▼13 | 23.03 ▲4.76 | 713.19 ▲61.18 | 57.06 ▼7.50 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.11 ▼0.19 | 108.07 ▲5.34 | 49.25 ▲4.13 |
2-Klick-Buttons /wp-admin/options-general.php?page=twoclick_buttons | 1,208 | 1.83 | 35.22 | 43.29 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=twoclick_buttons
- > Warning in wp-content/plugins/2-click-socialmedia-buttons/libs/class-twoclick-pages-walker.php+34
Declaration of Twoclick_Social_Media_Buttons_Pages_Walker::start_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = NULL)
- > GET request to /wp-admin/options-general.php?page=twoclick_buttons
- > Warning in wp-content/plugins/2-click-socialmedia-buttons/libs/class-twoclick-pages-walker.php+39
Declaration of Twoclick_Social_Media_Buttons_Pages_Walker::end_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = NULL)
- > GET request to /wp-admin/options-general.php?page=twoclick_buttons
- > Warning in wp-content/plugins/2-click-socialmedia-buttons/libs/class-twoclick-pages-walker.php+53
Declaration of Twoclick_Social_Media_Buttons_Pages_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $data_object, $depth = 0, $args = NULL, $current_object_id = 0)
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Buttons unter dem Text.), #2 (Hinweis bei Mouseover.), #3 (Einstellungsmenü der Buttons.)
2-click-socialmedia-buttons/2-click-socialmedia-buttons.php 85% from 13 tests
The main PHP script in "2 Click Social Media Buttons" version 1.6.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,305 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 391 | 1,068 | 2,397 |
JavaScript | 4 | 104 | 101 | 524 |
PO File | 1 | 123 | 265 | 270 |
CSS | 4 | 23 | 40 | 114 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 6.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 41.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 39 | 58.21% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/settings.png | 0.64KB | 0.68KB | 0.00% |
images/sprite-de_DE.png | 6.31KB | 4.74KB | ▼ 24.88% |
images/sprite.png | 5.79KB | 4.44KB | ▼ 23.42% |
images/socialshareprivacy_info.png | 0.16KB | 0.11KB | ▼ 31.33% |
images/socialshareprivacy_on_off.png | 1.27KB | 1.29KB | 0.00% |