Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php+105
Methods with the same name as their class will not be constructors in a future version of PHP; Round_Social_Media_Buttons_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.78ms] Passed 4 tests
Server-side resources used by Round Social Media Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.34 ▼36.12 |
Dashboard /wp-admin | 2.10 ▼1.21 | 10.72 ▼42.04 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.84 ▼41.18 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.37 ▼99.51 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.85 ▼36.37 |
Social Media Buttons /wp-admin/options-general.php?page=round-social-media-buttons | 2.10 | 6.69 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_round_social_media_buttons_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Round Social Media Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.78 ▲0.03 | 1.73 ▼0.38 | 37.31 ▼4.65 |
Dashboard /wp-admin | 2,196 ▲19 | 5.68 ▲0.01 | 119.40 ▲26.06 | 49.90 ▲7.96 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▼0.00 | 39.76 ▲1.40 | 38.25 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 17.43 ▼0.14 | 662.30 ▼27.72 | 69.44 ▲12.93 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.30 ▼0.01 | 97.13 ▼19.01 | 47.46 ▲0.25 |
Social Media Buttons /wp-admin/options-general.php?page=round-social-media-buttons | 1,006 | 2.01 | 29.29 | 27.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php+105
Methods with the same name as their class will not be constructors in a future version of PHP; Round_Social_Media_Buttons_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_round_social_media_buttons_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=round-social-media-buttons
- > Deprecated in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php+105
Methods with the same name as their class will not be constructors in a future version of PHP; Round_Social_Media_Buttons_Widget has a deprecated constructor
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=round-social-media-buttons
- > Notice in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php+85
Undefined variable: hidden_field
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/round-social-media-buttons/inc/front-end.php
- 25× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: title in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 5
- > PHP Notice
Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 85
- > PHP Notice
Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 69
- > PHP Notice
Undefined variable: round_btn_instagram_url in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 36
- > PHP Notice
Undefined variable: after_widget in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 57
- > PHP Notice
Undefined variable: round_btn_google_url in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 21
- > PHP Notice
Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 45
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/round-social-media-buttons/round_social_media_buttons.php on line 18
- > PHP Notice
Undefined variable: hidden_field in wp-content/plugins/round-social-media-buttons/inc/settings_page_wrapper.php on line 77
- > PHP Notice
Undefined variable: before_title in wp-content/plugins/round-social-media-buttons/inc/front-end.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
round-social-media-buttons/round_social_media_buttons.php 92% from 13 tests
The entry point to "Round Social Media Buttons" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("round-social-media-buttons.php" instead of "round_social_media_buttons.php")
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 detected386 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 21 | 252 |
CSS | 1 | 21 | 1 | 117 |
SVG | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/round_sm_buttons-01.png | 18.72KB | 7.75KB | ▼ 58.63% |