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
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼2.63ms] Passed 4 tests
This is a short check of server-side resources used by SpritesFeed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 44.09 ▼1.44 |
Dashboard /wp-admin | 3.94 ▲0.64 | 49.04 ▲3.16 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 49.13 ▲0.22 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 84.18 ▼10.81 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 37.16 ▲1.53 |
Facebook /wp-admin/admin.php?page=sfs-feed-fb-settings | 3.85 | 38.71 |
Twitter /wp-admin/admin.php?page=sfs-feed-twitter-settings | 3.85 | 35.22 |
Instagram /wp-admin/admin.php?page=sprites-feed-insta-settings | 3.85 | 35.29 |
Youtube /wp-admin/admin.php?page=sfs-feed-yt-settings | 3.85 | 34.43 |
Flickr /wp-admin/admin.php?page=sfs-feed-flickr-settings | 3.85 | 35.33 |
Settings /wp-admin/admin.php?page=sfs-feed | 3.86 | 34.01 |
Server storage [IO: ▲19.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7,582 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
sfs-feed |
Browser metrics Passed 4 tests
SpritesFeed: 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,891 ▲145 | 13.24 ▼1.14 | 2.04 ▲0.24 | 39.64 ▼1.74 |
Dashboard /wp-admin | 2,268 ▲77 | 4.89 ▼0.00 | 109.12 ▲8.44 | 41.08 ▼5.43 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.05 ▲0.01 | 40.29 ▲0.18 | 34.87 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,558 ▲22 | 23.35 ▲0.04 | 658.90 ▲51.55 | 64.77 ▲17.71 |
Media Library /wp-admin/upload.php | 1,450 ▲68 | 4.24 ▼0.01 | 104.11 ▲8.90 | 44.65 ▲2.89 |
Facebook /wp-admin/admin.php?page=sfs-feed-fb-settings | 985 | 2.06 | 28.13 | 31.36 |
Twitter /wp-admin/admin.php?page=sfs-feed-twitter-settings | 955 | 2.07 | 26.38 | 28.05 |
Instagram /wp-admin/admin.php?page=sprites-feed-insta-settings | 957 | 2.06 | 22.82 | 28.21 |
Youtube /wp-admin/admin.php?page=sfs-feed-yt-settings | 953 | 2.06 | 24.62 | 31.03 |
Flickr /wp-admin/admin.php?page=sfs-feed-flickr-settings | 947 | 2.06 | 25.41 | 30.86 |
Settings /wp-admin/admin.php?page=sfs-feed | 1,016 | 2.06 | 22.88 | 31.18 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- sfs-feed
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 18 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sfs-feed
- > Notice in wp-content/plugins/spritesfeed/modules/instagram_access.php+40
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sfs-feed-yt-settings
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/spritesfeed/modules/import.php+48
json_encode() expects parameter 2 to be int, string given
- > GET request to /wp-admin/admin.php?page=sfs-feed-yt-settings
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/spritesfeed/vendor/google/apiclient/src/Google/Service/Resource.php+291
implode(): Passing glue string after array is deprecated. Swap the parameters
- > GET request to /wp-admin/admin.php?page=sfs-feed-flickr-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/spritesfeed/includes/functions.php+376
Undefined index: photosets
- > GET request to /wp-admin/admin.php?page=sfs-feed-flickr-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/spritesfeed/includes/functions.php+376
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=sfs-feed-flickr-settings
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/spritesfeed/includes/functions.php+376
array_reverse() expects parameter 1 to be array, null given
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/spritesfeed/vendor/j7mbo/twitter-api-php/index.php
- 4095× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Devprojects/TosesCheckRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Webmasters/UrlCrawlErrorsCountsQueryResponse.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Devprojects/UiCustomizationSection.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/DeploymentManager/OperationError.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Iam/Resource/ProjectsServiceAccountsKeys.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Dfareporting/Recipient.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/CloudTasks/RenewLeaseRequest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/ServiceUser/SystemParameterRule.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Doubleclicksearch/Report.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/spritesfeed/vendor/google/apiclient-services/src/Google/Service/Compute/OperationsScopedList.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== spritesfeed ===
)
spritesfeed/sprites-social-feed.php 77% from 13 tests
"SpritesFeed" version 0.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("spritesfeed.php" instead of "sprites-social-feed.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected400,327 lines of code in 7,546 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7,464 | 24,025 | 231,931 | 393,814 |
Markdown | 32 | 1,450 | 0 | 4,716 |
JSON | 19 | 0 | 0 | 1,423 |
JavaScript | 9 | 20 | 4 | 131 |
Sass | 10 | 6 | 0 | 116 |
XML | 5 | 3 | 0 | 68 |
YAML | 3 | 12 | 0 | 47 |
make | 1 | 4 | 0 | 9 |
CSS | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 606.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 30 | |
Traits | 6 | |
Classes | 7,435 | |
▷ Abstract classes | 11 | 0.15% |
▷ Concrete classes | 7,424 | 99.85% |
▷ Final classes | 9 | 0.12% |
Methods | 54,695 | |
▷ Static methods | 155 | 0.28% |
▷ Public methods | 54,199 | 99.09% |
▷ Protected methods | 231 | 0.42% |
▷ Private methods | 265 | 0.48% |
Functions | 352 | |
▷ Named functions | 168 | 47.73% |
▷ Anonymous functions | 184 | 52.27% |
Constants | 765 | |
▷ Global constants | 30 | 3.92% |
▷ Class constants | 735 | 96.08% |
▷ Public constants | 735 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in 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/j7mbo/twitter-api-php/test/img.png | 18.88KB | 10.40KB | ▼ 44.90% |
assets/icon-128x128.png | 6.81KB | 3.12KB | ▼ 54.17% |
assets/icon-256x256.png | 17.46KB | 5.87KB | ▼ 66.39% |