Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▲3.26ms] Passed 4 tests
An overview of server-side resources used by Zota for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 44.08 ▲6.10 |
Dashboard /wp-admin | 3.74 ▲0.43 | 45.31 ▲0.88 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 46.56 ▲1.67 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 94.73 ▲7.75 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 36.71 ▲4.38 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Zota for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲1.53 | 1.49 ▼2.89 | 37.70 ▼4.14 |
Dashboard /wp-admin | 2,195 ▲25 | 5.60 ▼0.07 | 84.69 ▼12.77 | 37.11 ▼2.09 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.06 | 33.92 ▼3.16 | 35.17 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.66 ▲0.38 | 652.90 ▲36.86 | 55.25 ▼6.78 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.18 ▼0.08 | 95.63 ▼7.90 | 42.19 ▼0.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 take a closer look at the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/examples/deposit.php
- > /wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/examples/deposit-cc.php
- > /wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/examples/orders-report.php
- > /wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/examples/order-status.php
- > /wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/examples/payout.php
- > /wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/examples/merchant-redirect.php
- 53× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/Exception/InvalidSignatureExceptionTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/Log/DefaultLogHandlerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/DepositApiResponseTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Zotapay\\HttpClient\\HttpClientInterface' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/lib/HttpClient/CurlClient.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/HttpClient/CurlClientTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/PayoutTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Zotapay\\AbstractOrder' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/lib/DepositOrder.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/PayoutOrderTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/DepositCCTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/zota-for-woocommerce/vendor/zotapay/php-sdk/tests/Zotapay/OrderStatusApiResponseTest.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
zota-for-woocommerce/zota-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Zota for WooCommerce" version 1.2.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected7,081 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 1,615 | 3,567 | 6,371 |
JavaScript | 2 | 68 | 70 | 277 |
YAML | 4 | 31 | 1 | 169 |
JSON | 3 | 0 | 0 | 131 |
Markdown | 2 | 26 | 0 | 68 |
CSS | 2 | 4 | 0 | 33 |
XML | 2 | 4 | 0 | 32 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 68 | |
▷ Abstract classes | 3 | 4.41% |
▷ Concrete classes | 65 | 95.59% |
▷ Final classes | 27 | 41.54% |
Methods | 413 | |
▷ Static methods | 83 | 20.10% |
▷ Public methods | 390 | 94.43% |
▷ Protected methods | 2 | 0.48% |
▷ Private methods | 21 | 5.08% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 25 | |
▷ Global constants | 9 | 36.00% |
▷ Class constants | 16 | 64.00% |
▷ Public constants | 12 | 75.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/logo.png | 10.33KB | 4.57KB | ▼ 55.72% |
dist/img/icon.png | 4.29KB | 2.70KB | ▼ 37.14% |