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.01MB] [CPU: ▲0.21ms] Passed 4 tests
A check of server-side resources used by SocialMediaStream: Show all your social media network posts in one social media stream.
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.04 ▲2.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.93 ▼3.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.98 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 99.76 ▲8.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.48 ▼0.51 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SocialMediaStream: Show all your social media network posts in one social media stream.
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.76 ▲0.40 | 4.70 ▲2.77 | 44.37 ▼0.18 |
Dashboard /wp-admin | 2,191 ▲14 | 5.50 ▼0.07 | 85.73 ▼13.94 | 36.81 ▼7.03 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.97 ▼0.03 | 39.34 ▲3.49 | 36.53 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,528 ▼3 | 23.57 ▲0.53 | 686.06 ▲35.52 | 62.06 ▲15.71 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.20 ▼0.02 | 105.00 ▲3.61 | 44.31 ▼0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socialmediastream/socialmediastream.php:22
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #2, #3 in socialmediastream/assets to your readme.txt
socialmediastream/socialmediastream.php Passed 13 tests
Analyzing the main PHP file in "SocialMediaStream: Show all your social media network posts in one social media stream." version 1.0
43 characters long description:
Embed a social media stream into your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected281 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 11 | 6 | 174 |
PHP | 1 | 18 | 42 | 77 |
SVG | 1 | 0 | 1 | 20 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 5.56KB | 2.79KB | ▼ 49.77% |
assets/icon-256x256.png | 7.85KB | 3.67KB | ▼ 53.34% |