Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.22ms] Passed 4 tests
An overview of server-side resources used by Wp Social Feeds
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.60 ▲0.93 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.83 ▼16.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.42 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.70 ▼2.03 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.98 ▼3.05 |
Manage Social Feeds /wp-admin/admin.php?page=wp-social-feeds/src/admin/class-social-feeds-admin.php | 3.20 | 31.72 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Wp Social Feeds: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲209 | 13.64 ▼0.72 | 9.71 ▲7.35 | 41.39 ▼2.38 |
Dashboard /wp-admin | 2,218 ▲38 | 5.69 ▲0.09 | 94.91 ▲0.13 | 43.49 ▲1.56 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▲0.04 | 34.79 ▼1.28 | 32.44 ▼4.81 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.04 ▼0.24 | 637.13 ▼73.48 | 49.92 ▼5.66 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.23 ▲0.01 | 99.59 ▼27.56 | 44.04 ▲0.59 |
Manage Social Feeds /wp-admin/admin.php?page=wp-social-feeds/src/admin/class-social-feeds-admin.php | 838 | 2.04 | 24.41 | 26.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=wp-social-feeds/src/admin/class-social-feeds-admin.php
- > Notice in wp-content/plugins/wp-social-feeds/wp-social-feeds.php+119
Undefined index: code
- > GET request to /wp-admin/admin.php?page=wp-social-feeds/src/admin/class-social-feeds-admin.php
- > Notice in wp-content/plugins/wp-social-feeds/wp-social-feeds.php+120
Undefined index: youtube_state
- > GET request to /wp-admin/admin.php?page=wp-social-feeds/src/admin/class-social-feeds-admin.php
- > Notice in wp-content/plugins/wp-social-feeds/wp-social-feeds.php+134
Undefined index: merchant
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-social-feeds/src/public/partials/social-feeds-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Leaddevs\\SFWPSocialFeeds\\includes\\Application\\SFWPSocialProvider_Dropdown_List_Class' not found in wp-content/plugins/wp-social-feeds/src/admin/partials/social-feeds-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'Leaddevs\\SFWPSocialFeeds\\includes\\Application\\SFWPYoutube' not found in wp-content/plugins/wp-social-feeds/src/admin/partials/templates/social-feed-youtube.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-social-feeds/wp-social-feeds.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: feed, youtube, social feeds, leaddevs
wp-social-feeds/wp-social-feeds.php 85% from 13 tests
This is the main PHP file of "Wp Social Feeds" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
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 plugin2,531 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 378 | 928 | 1,542 |
CSS | 2 | 110 | 148 | 787 |
JavaScript | 2 | 59 | 94 | 182 |
JSON | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 5 | 6.41% |
▷ Public methods | 71 | 91.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.97% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/admin/images/youtube_logo.png | 23.43KB | 12.84KB | ▼ 45.19% |
src/assets/screenshot-4.PNG | 171.24KB | 44.44KB | ▼ 74.05% |
src/assets/screenshot-1.PNG | 20.35KB | 9.97KB | ▼ 51.01% |
src/admin/images/youtube.png | 1.94KB | 1.68KB | ▼ 13.31% |
src/admin/images/grid_view.png | 27.11KB | 11.61KB | ▼ 57.17% |