Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▲1.05ms] Passed 4 tests
A check of server-side resources used by Social Streams
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 50.42 ▲11.13 |
Dashboard /wp-admin | 4.02 ▲0.71 | 55.41 ▲4.39 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 50.88 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.65 | 91.54 ▼6.52 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 40.92 ▲5.60 |
Server storage [IO: ▲3.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 93 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ss_posts |
wp_ss_postmeta |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
socialstreams_version |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Social Streams: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲262 | 14.37 ▼0.19 | 23.84 ▲22.12 | 43.86 ▲3.38 |
Dashboard /wp-admin | 2,212 ▲24 | 4.88 ▼0.96 | 100.05 ▼13.75 | 79.91 ▲38.65 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▲0.00 | 35.88 ▼4.22 | 32.27 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.22 ▼0.13 | 722.37 ▲63.88 | 37.93 ▼31.84 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.20 ▲0.02 | 101.95 ▼6.43 | 73.23 ▲30.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_ss_postmeta
- wp_ss_posts
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- socialstreams_version
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/social-streams/src/views/socialstreams.php
- > /wp-content/plugins/social-streams/social-streams.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/social-streams/templates/template-socialstream.php:11
- > PHP Fatal error
Uncaught Error: Call to a member function classes() on null in wp-content/plugins/social-streams/src/views/socialstream-post.php:1
- > PHP Notice
Undefined variable: ssPost in wp-content/plugins/social-streams/src/views/socialstream-post.php on line 1
- > PHP Notice
Undefined variable: socialStreams in wp-content/plugins/social-streams/src/views/socialstreams.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/social-streams/templates/template-socialstream-fullscreen.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-streams/src/php/SocialStreams_Widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/social-streams/src/php/WpCliCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'SocialStreams\\JsonAPI\\Module' not found in wp-content/plugins/social-streams/src/php/JsonAPI/Module/Batch.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
6 plugin tags: moderation, social content, social stream, instagram, social...
social-streams/social-streams.php Passed 13 tests
The main PHP file in "Social Streams" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
14 characters long description:
Social Streams
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin24,252 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 3,274 | 3,286 | 16,308 |
PHP | 35 | 2,011 | 1,889 | 4,263 |
CSS | 9 | 130 | 239 | 2,770 |
JSON | 1 | 0 | 0 | 623 |
HTML | 1 | 17 | 2 | 263 |
SVG | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 28.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 30 | 17.14% |
▷ Public methods | 168 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 4.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.29MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/logos/socialstreams_logo.png | 17.13KB | 5.56KB | ▼ 67.54% |
assets/screenshot-6.png | 38.86KB | 11.55KB | ▼ 70.29% |
src/images/logos/socialstreams_inlinelogo.png | 8.50KB | 2.93KB | ▼ 65.48% |
src/images/transparents/post-transparent.png | 0.91KB | 0.09KB | ▼ 89.57% |
src/images/logos/logo-200x200.png | 6.57KB | 3.28KB | ▼ 50.06% |