Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.92MB] [CPU: ▲4.03ms] Passed 4 tests
Server-side resources used by Reviews Feed - Google Reviews & Yelp Reviews Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.38 ▲1.92 | 48.03 ▲8.66 |
Dashboard /wp-admin | 5.24 ▲1.89 | 58.18 ▼2.27 |
Posts /wp-admin/edit.php | 5.29 ▲1.93 | 62.42 ▲16.99 |
Add New Post /wp-admin/post-new.php | 7.85 ▲1.96 | 90.78 ▼5.37 |
Media Library /wp-admin/upload.php | 5.16 ▲1.93 | 49.45 ▲15.09 |
About us /wp-admin/admin.php?page=sbr-about | 6.18 | 79.36 |
All Feeds /wp-admin/admin.php?page=sbr | 6.20 | 76.51 |
Settings /wp-admin/admin.php?page=sbr-settings | 6.28 | 70.12 |
Support /wp-admin/admin.php?page=sbr-support | 6.19 | 73.40 |
Server storage [IO: ▲5.83MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 396 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_sbr_sources |
wp_sbr_feed_caches |
wp_sbr_reviews_posts |
wp_sbr_feed_locator |
wp_sbr_feeds |
New WordPress options |
---|
sbr_notifications |
db_upgraded |
can_compress_scripts |
sbr_settings |
widget_recent-comments |
sbr_newuser_notifications |
sbr_db_version |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reviews Feed - Google Reviews & Yelp Reviews Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲115 | 13.26 ▼1.08 | 1.46 ▼0.39 | 38.26 ▼4.74 |
Dashboard /wp-admin | 2,265 ▲77 | 5.91 ▲1.01 | 109.62 ▼9.49 | 42.46 ▲0.10 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.08 ▲0.09 | 38.74 ▲3.17 | 36.02 ▲1.29 |
Add New Post /wp-admin/post-new.php | 6,227 ▲4,713 | 18.90 ▲1.24 | 907.48 ▲226.65 | 50.73 ▼0.85 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.25 ▲0.04 | 97.92 ▼9.89 | 42.92 ▼2.58 |
About us /wp-admin/admin.php?page=sbr-about | 1,416 | 4.86 | 123.13 | 43.68 |
All Feeds /wp-admin/admin.php?page=sbr | 1,299 | 4.78 | 115.06 | 30.34 |
Settings /wp-admin/admin.php?page=sbr-settings | 1,459 | 5.03 | 70.96 | 41.24 |
Support /wp-admin/admin.php?page=sbr-support | 1,377 | 4.96 | 63.41 | 40.49 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- sbr_newuser_notifications
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- sbr_notifications
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/reviews-feed/templates/settings/index.php
- 97× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\Reviews\\Vendor\\DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/reviews-feed/vendor/php-di/php-di/src/Definition/Resolver/FactoryResolver.php:23
- > PHP Fatal error
Uncaught Error: Class 'SmashBalloon\\Reviews\\Vendor\\DI\\Container' not found in wp-content/plugins/reviews-feed/vendor/php-di/php-di/src/CompiledContainer.php:22
- > PHP Fatal error
Uncaught Error: Class 'Smashballoon\\Stubs\\Services\\ServiceProvider' not found in wp-content/plugins/reviews-feed/class/Common/Migrations/Reviews_Post.php:10
- > PHP Fatal error
Uncaught Error: Class 'Smashballoon\\Stubs\\Services\\ServiceProvider' not found in wp-content/plugins/reviews-feed/class/Common/Services/Upgrade/RoutineManagerService.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Smashballoon\\Customizer\\V2\\PreviewProvider' not found in wp-content/plugins/reviews-feed/class/Common/Customizer/ShortcodePreviewProvider.php:7
- > PHP Fatal error
Uncaught Error: Class 'SmashBalloon\\Reviews\\Vendor\\DI\\Definition\\Resolver\\ObjectCreator' not found in wp-content/plugins/reviews-feed/vendor/php-di/php-di/src/Definition/Resolver/InstanceInjector.php:16
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\Reviews\\Vendor\\DI\\Factory\\RequestedEntry' not found in wp-content/plugins/reviews-feed/vendor/php-di/php-di/src/Compiler/RequestedEntryHolder.php:10
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\Reviews\\Vendor\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/reviews-feed/vendor/psr/container/src/NotFoundExceptionInterface.php:11
- > PHP Fatal error
Uncaught Error: Class 'Smashballoon\\Customizer\\V2\\Feed_Builder' not found in wp-content/plugins/reviews-feed/class/Common/Builder/SBR_Feed_Builder.php:17
- > PHP Fatal error
Uncaught Error: Interface 'SmashBalloon\\Reviews\\Vendor\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/reviews-feed/vendor/php-di/php-di/src/NotFoundException.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: yelp, google reviews, google business, ratings, reviews
reviews-feed/sb-reviews.php 92% from 13 tests
"Reviews Feed - Google Reviews & Yelp Reviews Plugin" version 1.1'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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("reviews-feed.php" instead of "sb-reviews.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected25,712 lines of code in 335 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 191 | 2,686 | 5,849 | 16,670 |
JavaScript | 8 | 284 | 210 | 4,014 |
CSS | 6 | 251 | 93 | 2,128 |
SVG | 111 | 2 | 2 | 1,547 |
Markdown | 10 | 288 | 0 | 646 |
JSON | 7 | 0 | 0 | 541 |
YAML | 1 | 4 | 0 | 139 |
XML | 1 | 3 | 3 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 12.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 152 | |
▷ Abstract classes | 6 | 3.95% |
▷ Concrete classes | 146 | 96.05% |
▷ Final classes | 2 | 1.37% |
Methods | 933 | |
▷ Static methods | 189 | 20.26% |
▷ Public methods | 818 | 87.67% |
▷ Protected methods | 40 | 4.29% |
▷ Private methods | 75 | 8.04% |
Functions | 49 | |
▷ Named functions | 31 | 63.27% |
▷ Anonymous functions | 18 | 36.73% |
Constants | 69 | |
▷ Global constants | 35 | 50.72% |
▷ Class constants | 34 | 49.28% |
▷ Public constants | 34 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 0.46MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/smashballoon/customizer/sb-common/sb-customizer/assets/images/upsell-carousel.png | 11.57KB | 7.19KB | ▼ 37.89% |
vendor/smashballoon/customizer/sb-common/sb-customizer/assets/images/upsell-trustpilot.png | 44.05KB | 18.97KB | ▼ 56.94% |
vendor/smashballoon/customizer/sb-common/sb-customizer/assets/images/upswidget-moderation.png | 2.11KB | 1.34KB | ▼ 36.63% |
vendor/smashballoon/customizer/sb-common/sb-customizer/assets/images/upsell-tripadvisor.png | 20.38KB | 10.50KB | ▼ 48.51% |
assets/images/sprite.png | 3.85KB | 2.25KB | ▼ 41.52% |