Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/beautiful-social-widget/beautiful-social-widget.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; beautiful_social_widget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼62.86ms] Passed 4 tests
Server-side resources used by Beautiful Social Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 4.72 ▼51.46 |
Dashboard /wp-admin | 2.16 ▼1.19 | 5.92 ▼60.00 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.25 ▼43.63 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.31 ▼96.36 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.34 ▼29.96 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_beautiful_social_widget |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Beautiful Social Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.71 ▲0.36 | 2.19 ▼0.03 | 44.29 ▲0.89 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.07 | 85.17 ▼4.33 | 43.00 ▲4.88 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.03 | 34.33 ▼1.59 | 39.13 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.61 ▼0.03 | 680.64 ▲69.16 | 62.34 ▲9.34 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.11 ▼0.13 | 110.06 ▲5.49 | 49.13 ▲4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/beautiful-social-widget/beautiful-social-widget.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; beautiful_social_widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_beautiful_social_widget
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-social-widget/beautiful-social-widget.php:13
- > PHP Fatal error
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 97% 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:
- Screenshots: Add images for these screenshots: #1 (Widget demo), #2 (Widget setting)
beautiful-social-widget/beautiful-social-widget.php Passed 13 tests
The entry point to "Beautiful Social Widget" version 1.5 is a PHP file that has certain tags in its header comment area
106 characters long description:
This plugin provides the widget to show the link to your Social profile and make your Website more Social.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected127 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 10 | 93 |
CSS | 1 | 1 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 20.85KB | 8.71KB | ▼ 58.21% |
screenshot-1.png | 18.66KB | 7.24KB | ▼ 61.22% |
images/social-icon.png | 17.96KB | 6.45KB | ▼ 64.07% |