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: ▲2.40MB] [CPU: ▲16.91ms] Passed 4 tests
An overview of server-side resources used by Smart Quick View for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.98 | 54.64 ▲17.19 |
Dashboard /wp-admin | 6.19 ▲2.88 | 66.53 ▲17.88 |
Posts /wp-admin/edit.php | 6.24 ▲2.88 | 68.42 ▲21.58 |
Add New Post /wp-admin/post-new.php | 8.77 ▲2.88 | 114.04 ▲10.98 |
Media Library /wp-admin/upload.php | 6.11 ▲2.88 | 62.57 ▲24.46 |
Server storage [IO: ▲6.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 744 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Quick View for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.03 | 1.75 ▼0.24 | 42.00 ▼2.69 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.02 | 92.65 ▼0.42 | 37.92 ▼4.98 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.10 | 39.11 ▲2.50 | 36.20 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.33 ▼0.29 | 671.22 ▲6.33 | 55.54 ▼5.18 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.08 | 102.34 ▼5.94 | 43.97 ▼3.47 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smart-quick-view/app/views/defaultpopupskeleton.php
- > /wp-content/plugins/smart-quick-view/vendor/mustangostang/spyc/examples/yaml-load.php
- > /wp-content/plugins/smart-quick-view/vendor/mustangostang/spyc/php4/5to4.php
- > /wp-content/plugins/smart-quick-view/app/views/popupmarkup.php
- 250× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\ParserAbstract' not found in wp-content/plugins/smart-quick-view/vendor/piwik/device-detector/Parser/Device/DeviceParserAbstract.php:19
- > PHP Fatal error
Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/smart-quick-view/vendor/kirki/packages/kirki-framework/control-image/src/Control/Image.php:21
- > PHP Fatal error
Uncaught Error: Class 'SmartQuickView\\App\\Components\\Popup' not found in wp-content/plugins/smart-quick-view/app/components/defaultpopup.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/smart-quick-view/vendor/symfony/translation/Tests/Catalogue/AbstractOperationTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/smart-quick-view/vendor/kirki/packages/kirki-framework/util/src/Setting/Site_Option.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/smart-quick-view/vendor/symfony/translation/Tests/Dumper/YamlFileDumperTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'SmartQuickView\\Original\\Collections\\Mapper\\Mappable' not found in wp-content/plugins/smart-quick-view/app/data/preferences/preferences.php:13
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Device\\DeviceParserAbstract' not found in wp-content/plugins/smart-quick-view/vendor/piwik/device-detector/Parser/Device/PortableMediaPlayer.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/smart-quick-view/vendor/mustangostang/spyc/tests/LoadTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/smart-quick-view/vendor/symfony/translation/Tests/TranslatorCacheTest.php:21
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in smart-quick-view/assets to your readme.txt
smart-quick-view/smartquickview.php 85% from 13 tests
"Smart Quick View for WooCommerce" version 1.0.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:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smart-quick-view.php" instead of "smartquickview.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin75,961 lines of code in 623 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 392 | 6,560 | 14,547 | 27,216 |
JSON | 52 | 0 | 0 | 16,365 |
JavaScript | 96 | 3,419 | 5,086 | 14,770 |
YAML | 26 | 1,254 | 821 | 10,038 |
XSD | 4 | 99 | 76 | 4,991 |
Markdown | 7 | 467 | 0 | 1,184 |
CSS | 21 | 218 | 267 | 940 |
XML | 16 | 3 | 0 | 318 |
SVG | 1 | 0 | 0 | 91 |
PO File | 6 | 7 | 0 | 37 |
Qt Linguist | 1 | 0 | 0 | 10 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 157)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 157.00 |
Code structure | ||
---|---|---|
Namespaces | 82 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 338 | |
▷ Abstract classes | 24 | 7.10% |
▷ Concrete classes | 314 | 92.90% |
▷ Final classes | 10 | 3.18% |
Methods | 1,897 | |
▷ Static methods | 282 | 14.87% |
▷ Public methods | 1,500 | 79.07% |
▷ Protected methods | 263 | 13.86% |
▷ Private methods | 134 | 7.06% |
Functions | 155 | |
▷ Named functions | 55 | 35.48% |
▷ Anonymous functions | 100 | 64.52% |
Constants | 56 | |
▷ Global constants | 6 | 10.71% |
▷ Class constants | 50 | 89.29% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/kirki/assets/images/3cr.png | 0.91KB | 0.32KB | ▼ 64.81% |
vendor/kirki/assets/images/2cl.png | 0.85KB | 0.27KB | ▼ 68.48% |
vendor/kirki/assets/images/jquery.fs.stepper-arrows.png | 0.30KB | 0.18KB | ▼ 40.52% |
vendor/kirki/assets/images/kirki-bottom.png | 1.51KB | 1.09KB | ▼ 27.89% |
vendor/kirki/assets/images/3cl.png | 0.91KB | 0.32KB | ▼ 64.26% |