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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▲0.95ms] Passed 4 tests
An overview of server-side resources used by Social Stream
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.26 | 43.99 ▲4.83 |
Dashboard /wp-admin | 3.57 ▲0.26 | 49.31 ▲1.79 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.78 ▲2.67 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 87.34 ▼4.19 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.92 ▲3.52 |
Social Stream /wp-admin/options-general.php?page=social_stream | 3.39 | 33.15 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Social Stream
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.98 ▼0.44 | 5.52 ▲3.64 | 45.67 ▼0.03 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼0.06 | 96.49 ▼18.85 | 39.25 ▼3.91 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.04 | 34.11 ▼1.18 | 35.53 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,517 ▼3 | 23.71 ▲0.78 | 697.39 ▲19.95 | 53.46 ▼7.87 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.08 | 92.54 ▼6.67 | 40.54 ▼5.06 |
Social Stream /wp-admin/options-general.php?page=social_stream | 846 | 2.04 | 22.87 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/social-stream/views/social_stream.php
- > /wp-content/plugins/social-stream/views/loader.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/social-stream/views/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-stream/classes/SS_Settings.php:18
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/social-stream/views/social_stream.php on line 2
- > PHP Notice
Undefined variable: posts in wp-content/plugins/social-stream/views/social_stream.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: feed, twitter, facebook, posts, social
social-stream/social-stream.php Passed 13 tests
The main file in "Social Stream" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Pull your Twitter, Facebook and WordPress posts into one neat section
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin989 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 261 | 584 | 979 |
JavaScript | 1 | 1 | 0 | 8 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 12 | 10.62% |
▷ Public methods | 90 | 79.65% |
▷ Protected methods | 2 | 1.77% |
▷ Private methods | 21 | 18.58% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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