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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲3.31ms] Passed 4 tests
Analyzing server-side resources used by Swipe for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 45.02 ▲3.42 |
Dashboard /wp-admin | 3.58 ▲0.27 | 47.72 ▲0.85 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 48.12 ▲2.52 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 96.97 ▲8.09 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 41.37 ▲6.44 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 208 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Swipe for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.28 ▼1.12 | 4.20 ▲2.31 | 41.97 ▲0.41 |
Dashboard /wp-admin | 2,242 ▲54 | 4.93 ▼0.97 | 112.88 ▲1.59 | 82.45 ▲42.74 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.06 ▲0.06 | 36.22 ▼1.79 | 35.56 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,700 ▲186 | 22.57 ▲4.98 | 706.88 ▲110.74 | 52.20 ▲0.18 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.23 ▲0.01 | 97.80 ▲2.72 | 76.47 ▲33.54 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/guzzle/src/Pool.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/swipe-for-woocommerce/libraries/swipego/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in swipe-for-woocommerce/assets to your readme.txt
swipe-for-woocommerce/swipego-wc.php 92% from 13 tests
The entry point to "Swipe for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
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 ("swipe-for-woocommerce.php" instead of "swipego-wc.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected17,265 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 135 | 2,438 | 5,760 | 10,007 |
Markdown | 17 | 1,244 | 0 | 3,658 |
JavaScript | 5 | 605 | 173 | 2,412 |
JSON | 13 | 0 | 0 | 1,051 |
CSS | 5 | 0 | 0 | 76 |
SVG | 5 | 0 | 1 | 45 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 87 | |
▷ Abstract classes | 1 | 1.15% |
▷ Concrete classes | 86 | 98.85% |
▷ Final classes | 34 | 39.53% |
Methods | 810 | |
▷ Static methods | 139 | 17.16% |
▷ Public methods | 674 | 83.21% |
▷ Protected methods | 10 | 1.23% |
▷ Private methods | 126 | 15.56% |
Functions | 134 | |
▷ Named functions | 45 | 33.58% |
▷ Anonymous functions | 89 | 66.42% |
Constants | 74 | |
▷ Global constants | 9 | 12.16% |
▷ Class constants | 65 | 87.84% |
▷ Public constants | 54 | 83.08% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin