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
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/wp-social-blocks/widgets.php+11
Declaration of Fblb_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
Server metrics [RAM: ▼1.86MB] [CPU: ▼50.13ms] Passed 4 tests
This is a short check of server-side resources used by Social Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.71 ▼32.03 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.74 ▼46.15 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.62 ▼38.86 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.16 ▼83.46 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.91 ▼27.17 |
Twitter /wp-admin/admin.php?page=tw | 2.16 | 5.60 |
Facebook /wp-admin/admin.php?page=fblb | 2.16 | 6.70 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 25 new options
New WordPress options |
---|
fblb_height |
widget_recent-comments |
tw_nofooter |
fblb_header |
fb_page_link |
can_compress_scripts |
fblb_border |
fblb_color |
widget_recent-posts |
widget_twitter_timeline_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.24 ▼1.13 | 1.80 ▼0.04 | 40.79 ▼8.84 |
Dashboard /wp-admin | 2,233 ▲42 | 5.84 ▲0.98 | 102.45 ▲1.48 | 38.84 ▼6.60 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.03 ▲0.02 | 40.14 ▲2.43 | 36.30 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 17.82 ▼5.41 | 676.30 ▲20.81 | 57.39 ▼5.75 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.21 ▼0.04 | 98.25 ▼7.12 | 41.16 ▼5.07 |
Twitter /wp-admin/admin.php?page=tw | 998 | 2.20 | 28.44 | 25.35 |
Facebook /wp-admin/admin.php?page=fblb | 964 | 2.07 | 24.60 | 24.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wp-social-blocks/widgets.php+11
Declaration of Fblb_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_fblb_widget
- widget_twitter_timeline_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fblb
- > Warning in wp-content/plugins/wp-social-blocks/widgets.php+11
Declaration of Fblb_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fblb
- > Warning in wp-content/plugins/wp-social-blocks/widgets.php+27
Declaration of Twitter_Timeline_Widget::widget() should be compatible with WP_Widget::widget($args, $instance)
SRP 50% 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
Please fix the following items
- 7× 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/wp-social-blocks/admin/tinymce/tinymce.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-blocks/admin/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-social-blocks/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-social-blocks/twitter_timeline.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-social-blocks/wp-social-blocks.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-social-blocks/fblb.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-blocks/admin/update_options.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
wp-social-blocks/wp-social-blocks.php Passed 13 tests
The main PHP file in "Social Blocks" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
Add Social Blocks to your wordpress sites
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected400 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 44 | 13 | 352 |
JavaScript | 1 | 27 | 1 | 48 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/tinymce_icon.png | 0.23KB | 0.14KB | ▼ 36.36% |