Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.61ms] Passed 4 tests
Server-side resources used by Widget for Social Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.76 ▼5.94 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.47 ▲3.85 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.82 ▼6.82 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.67 ▼12.77 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 38.39 ▲3.10 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_widget_for_social_page_embed |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Widget for Social Page: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.65 ▼0.75 | 5.43 ▲3.37 | 42.83 ▼7.78 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.96 | 98.15 ▼16.30 | 40.59 ▼5.36 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 33.39 ▼3.60 | 39.35 ▲5.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.29 ▲0.03 | 679.81 ▲33.57 | 53.23 ▲5.05 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.12 ▼0.10 | 96.11 ▼7.35 | 44.76 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_widget_for_social_page_embed
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/widget-for-social-page/includes/widget-for-social-page-embed.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-for-social-page/widget-for-social-page.php:17
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: widget, facebook page, facebook, facebook link, facebook feed...
widget-for-social-page/widget-for-social-page.php Passed 13 tests
This is the main PHP file of "Widget for Social Page" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
138 characters long description:
It will embed your facebook page into a widget area. You can add a widget in any of your widget areas and It will show your facebook page.
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 plugin112 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 14 | 76 |
PO File | 1 | 8 | 8 | 33 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected