Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.13MB] [CPU: ▲9.02ms] Passed 4 tests
Analyzing server-side resources used by Spotlight Social Feeds [Block, Shortcode, and Widget]
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.57 ▲1.11 | 44.67 ▲4.90 |
Dashboard /wp-admin | 4.43 ▲1.13 | 57.20 ▲8.26 |
Posts /wp-admin/edit.php | 4.48 ▲1.13 | 57.12 ▲9.25 |
Add New Post /wp-admin/post-new.php | 7.81 ▲1.92 | 810.33 ▲715.14 |
Media Library /wp-admin/upload.php | 4.38 ▲1.15 | 48.12 ▲13.66 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.68 | 42.96 |
Server storage [IO: ▲6.68MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 685 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
fs_debug_mode |
sli_api_auth_token |
widget_theysaidso_widget |
widget_sli-feed |
can_compress_scripts |
theysaidso_admin_options |
fs_accounts |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Spotlight Social Feeds [Block, Shortcode, and Widget]: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲80 | 14.69 ▼0.02 | 1.56 ▼0.10 | 29.53 ▼12.50 |
Dashboard /wp-admin | 2,228 ▲53 | 5.59 ▼0.03 | 92.42 ▼5.87 | 44.78 ▲1.30 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.01 ▲0.06 | 36.96 ▲1.44 | 31.95 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6,245 ▲4,710 | 20.04 ▼3.12 | 1,000.11 ▲333.65 | 40.14 ▼22.76 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.21 ▲0.02 | 97.11 ▲0.12 | 44.28 ▲3.03 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,101 | 1.66 | 25.84 | 27.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/spotlight-social-photo-feeds/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 11 options in the database
- widget_recent-posts
- db_upgraded
- widget_sli-feed
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- fs_accounts
- widget_recent-comments
- sli_api_auth_token
- fs_active_plugins
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 take a closer look at the following
- 223× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\Spotlight\\Instagram\\Module' not found in wp-content/plugins/spotlight-social-photo-feeds/modules/OEmbedModule.php:11
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\Spotlight\\Instagram\\RestApi\\EndPoints\\AbstractEndpointHandler' not found in wp-content/plugins/spotlight-social-photo-feeds/src/core/RestApi/EndPoints/Accounts/CustomPosts/DeleteCustomMediaEndPoint.php:13
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\WordPress\\Http\\Exception\\ResponseException' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/rebelcode/wp-http/src/Exception/BadResponseException.php:17
- > PHP Fatal error
Uncaught Error: Class 'RebelCode\\Iris\\Data\\ImmutableDataObject' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/rebelcode/iris-engine/src/Data/Source.php:8
- > PHP Fatal error
Uncaught Error: Interface 'RebelCode\\Iris\\Aggregator\\AggregationStrategy' not found in wp-content/plugins/spotlight-social-photo-feeds/src/core/Engine/Aggregator/IgAggregationStrategy.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/rebelcode/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Exception\\ThrowableInterface' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/dhii/exception-interface/src/BadSubjectExceptionInterface.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Exception\\ThrowableInterface' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/dhii/transformer-interface/src/Exception/TransformerExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Modular\\Module\\ModuleAwareInterface' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/dhii/module-interface/src/Exception/ModuleExceptionInterface.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/spotlight-social-photo-feeds/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
spotlight-social-photo-feeds/plugin.php 92% from 13 tests
The main PHP script in "Spotlight Social Feeds [Block, Shortcode, and Widget]" version 1.6.7 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spotlight-social-photo-feeds.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected57,993 lines of code in 600 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 523 | 12,898 | 28,839 | 54,079 |
JSON | 24 | 0 | 0 | 2,554 |
CSS | 24 | 43 | 4 | 502 |
XML | 4 | 11 | 0 | 446 |
JavaScript | 16 | 37 | 64 | 220 |
YAML | 5 | 38 | 0 | 143 |
SVG | 3 | 0 | 0 | 30 |
Markdown | 1 | 2 | 0 | 19 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 14.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 86 | |
Interfaces | 79 | |
Traits | 5 | |
Classes | 358 | |
▷ Abstract classes | 10 | 2.79% |
▷ Concrete classes | 348 | 97.21% |
▷ Final classes | 21 | 6.03% |
Methods | 2,779 | |
▷ Static methods | 453 | 16.30% |
▷ Public methods | 2,220 | 79.88% |
▷ Protected methods | 143 | 5.15% |
▷ Private methods | 416 | 14.97% |
Functions | 377 | |
▷ Named functions | 121 | 32.10% |
▷ Anonymous functions | 256 | 67.90% |
Constants | 461 | |
▷ Global constants | 110 | 23.86% |
▷ Class constants | 351 | 76.14% |
▷ Public constants | 335 | 95.44% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ui/images/spotlight-favicon.png | 7.59KB | 3.19KB | ▼ 58.01% |
ui/images/wp-logo.png | 4.03KB | 4.24KB | 0.00% |
ui/images/spotlight-800w.png | 4.79KB | 5.10KB | 0.00% |
ui/images/popup-link-text.png | 1.35KB | 1.28KB | ▼ 5.08% |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |