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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.39ms] Passed 4 tests
A check of server-side resources used by TargetBay Product and Site Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 50.44 ▲7.62 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.59 ▼3.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.03 ▼6.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 109.07 ▲16.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.28 ▼2.69 |
Server storage [IO: ▲8.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,955 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
TargetBay Product and Site Reviews: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.34 ▲0.05 | 2.00 ▼0.15 | 44.77 ▼0.90 |
Dashboard /wp-admin | 2,195 ▲24 | 5.56 ▼0.11 | 87.00 ▼7.98 | 36.95 ▼8.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.02 | 36.46 ▼0.05 | 34.56 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.15 ▲4.59 | 619.68 ▼39.75 | 55.33 ▼12.34 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.15 ▼0.05 | 94.88 ▼7.18 | 42.76 ▲1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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/targetbay-product-and-site-reviews/vendor/phpcompatibility/php-compatibility/phpunit-bootstrap.php
- 830× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\AbstractNewFeatureSniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/LanguageConstructs/NewLanguageConstructsSniff.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPCompatibility\\Sniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/phpcompatibility/php-compatibility/PHPCompatibility/Sniffs/FunctionDeclarations/NonStaticMagicMethodsSniff.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMethodPropertiesTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php:16
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php:16
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/CSS/ColourDefinitionSniff.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Namespaces/NamespaceDeclarationSniff.php:16
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (WooCommerce Product Review - Mobile View), #2 (WooCommerce Product Review - Web View), #3 (WooCommerce Q&A), #4 (WooCommerce Review Widgets), #5 (WooCommerce Rich Snippets)
targetbay-product-and-site-reviews/targetbay-product-and-site-reviews.php 92% from 13 tests
"TargetBay Product and Site Reviews" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/targetbay-product-and-site-reviews/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,082 | 25,380 | 51,349 | 128,142 |
Markdown | 29 | 2,029 | 0 | 6,874 |
Pascal | 130 | 3,217 | 7,090 | 6,548 |
XML | 176 | 426 | 779 | 5,986 |
JavaScript | 56 | 756 | 859 | 2,089 |
JSON | 20 | 0 | 0 | 1,879 |
CSS | 34 | 189 | 92 | 671 |
Bourne Shell | 2 | 32 | 6 | 138 |
XSD | 1 | 6 | 0 | 130 |
YAML | 5 | 22 | 3 | 91 |
DOS Batch | 2 | 4 | 10 | 10 |
Dockerfile | 1 | 8 | 0 | 10 |
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
- Method cyclomatic complexity has to be reduced to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 721.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 205 | |
Interfaces | 18 | |
Traits | 3 | |
Classes | 882 | |
▷ Abstract classes | 20 | 2.27% |
▷ Concrete classes | 862 | 97.73% |
▷ Final classes | 28 | 3.25% |
Methods | 3,277 | |
▷ Static methods | 239 | 7.29% |
▷ Public methods | 2,681 | 81.81% |
▷ Protected methods | 381 | 11.63% |
▷ Private methods | 215 | 6.56% |
Functions | 176 | |
▷ Named functions | 76 | 43.18% |
▷ Anonymous functions | 100 | 56.82% |
Constants | 345 | |
▷ Global constants | 192 | 55.65% |
▷ Class constants | 153 | 44.35% |
▷ Public constants | 153 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin