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
Installer ran successfully
Server metrics [RAM: ▲1.53MB] [CPU: ▲0.91ms] Passed 4 tests
Analyzing server-side resources used by Feed Social Sidebar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.55 | 49.62 ▲8.04 |
Dashboard /wp-admin | 4.83 ▲1.53 | 57.26 ▲1.39 |
Posts /wp-admin/edit.php | 4.88 ▲1.52 | 58.42 ▲6.46 |
Add New Post /wp-admin/post-new.php | 7.42 ▲1.53 | 91.14 ▼12.26 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 51.46 ▲17.17 |
Server storage [IO: ▲8.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,060 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_feed_social_sidebar_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Feed Social Sidebar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲145 | 14.03 ▼0.34 | 11.27 ▲9.02 | 42.38 ▼6.18 |
Dashboard /wp-admin | 2,224 ▲21 | 4.86 ▼1.01 | 105.79 ▼16.02 | 42.40 ▼7.27 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.05 ▲0.04 | 36.19 ▼1.22 | 36.92 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.19 ▲5.50 | 647.26 ▼19.33 | 53.64 ▲4.59 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.05 | 95.62 ▼10.61 | 41.75 ▼4.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_feed_social_sidebar_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/feed-social-sidebar/vendor/timber/timber/tests/assets/my-sidebar.php
- 410× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/feed-social-sidebar/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/feed-social-sidebar/vendor/timber/timber/tests/test-timber-hooks.php:3
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/feed-social-sidebar/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\TokenParser\\TokenParserInterface' not found in wp-content/plugins/feed-social-sidebar/vendor/twig/twig/src/TokenParser/AbstractTokenParser.php:21
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/feed-social-sidebar/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/feed-social-sidebar/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/feed-social-sidebar/vendor/asm89/twig-cache-extension/test/Asm89/Twig/CacheExtension/Tests/CacheProvider/DoctrineCacheAdapterTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'Timber\\Post' not found in wp-content/plugins/feed-social-sidebar/vendor/timber/timber/tests/php/timber-post-subclass-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/feed-social-sidebar/vendor/twig/twig/src/Node/Expression/Binary/MulBinary.php:17
- > PHP Fatal error
require_once(): Failed opening required '/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/feed-social-sidebar/vendor/timber/timber/tests/bootstrap.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: instagram, pinterest, twitter, sidebar, feed
feed-social-sidebar/feed-social-sidebar.php Passed 13 tests
This is the main PHP file of "Feed Social Sidebar" 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
21 characters long description:
Social sidebar widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected64,440 lines of code in 994 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 730 | 8,922 | 15,976 | 42,460 |
SVG | 5 | 0 | 12 | 9,439 |
Markdown | 57 | 2,391 | 0 | 6,576 |
reStructuredText | 114 | 2,491 | 2,474 | 2,959 |
JSON | 17 | 0 | 0 | 1,664 |
Bourne Shell | 4 | 57 | 20 | 307 |
YAML | 7 | 31 | 1 | 211 |
XML | 8 | 19 | 52 | 181 |
PO File | 1 | 68 | 86 | 180 |
JavaScript | 5 | 23 | 44 | 160 |
Twig | 41 | 11 | 0 | 148 |
CSS | 3 | 24 | 17 | 136 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 175.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 35 | |
Traits | 4 | |
Classes | 679 | |
▷ Abstract classes | 15 | 2.21% |
▷ Concrete classes | 664 | 97.79% |
▷ Final classes | 63 | 9.49% |
Methods | 3,180 | |
▷ Static methods | 369 | 11.60% |
▷ Public methods | 2,774 | 87.23% |
▷ Protected methods | 194 | 6.10% |
▷ Private methods | 212 | 6.67% |
Functions | 397 | |
▷ Named functions | 178 | 44.84% |
▷ Anonymous functions | 219 | 55.16% |
Constants | 170 | |
▷ Global constants | 50 | 29.41% |
▷ Class constants | 120 | 70.59% |
▷ Public constants | 120 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/timber/timber/tests/assets/eastern-trans.png | 12.34KB | 7.39KB | ▼ 40.11% |
vendor/timber/timber/tests/assets/flag.png | 10.33KB | 4.00KB | ▼ 61.24% |
vendor/timber/timber/tests/assets/cropper.png | 15.74KB | 0.31KB | ▼ 98.01% |