Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼9.78ms] Passed 4 tests
This is a short check of server-side resources used by Yedpay for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.60 ▲2.36 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.62 ▼23.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.21 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.57 ▼16.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.07 ▲1.19 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Yedpay for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.67 ▲0.32 | 1.86 ▲0.06 | 43.46 ▲0.01 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▲0.01 | 92.58 ▲0.46 | 40.49 ▼3.15 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▼0.11 | 41.23 ▲0.41 | 34.76 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.30 ▼0.33 | 667.81 ▼23.70 | 61.74 ▲9.67 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.05 | 100.45 ▼10.27 | 45.01 ▼2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Yoast\\PHPUnitPolyfills\\TestCases\\TestCase' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/Tests/Response/ErrorTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Yoast\\PHPUnitPolyfills\\TestCases\\TestCase' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/Tests/LibraryTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Yedpay\\Client' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/examples/ExamplePrecreateClient.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Yedpay\\Curl\\HttpRequest' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/src/Curl/Request.php:7
- > PHP Fatal error
Uncaught Error: Class 'Yoast\\PHPUnitPolyfills\\TestCases\\TestCase' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/Tests/ClientTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Yedpay\\Client' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/examples/ExampleOnlinePaymentClient.php:26
- > PHP Fatal error
Uncaught Error: Class 'Yedpay\\Response\\Response' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/src/Response/Success.php:9
- > PHP Fatal error
Uncaught Error: Class 'Yedpay\\Response\\Response' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/src/Response/Error.php:9
- > PHP Fatal error
Uncaught Error: Class 'Yoast\\PHPUnitPolyfills\\TestCases\\TestCase' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/Tests/CurlTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Yedpay\\Client' not found in wp-content/plugins/yedpay-for-woocommerce/vendor/yedpay/php-library/examples/ExampleRefundClient.php:24
- > 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 errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
yedpay-for-woocommerce/index.php 77% from 13 tests
The entry point to "Yedpay for WooCommerce" version 1.1.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("yedpay-for-woocommerce.php" instead of "index.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
No dangerous file extensions were detected4,218 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 605 | 971 | 3,130 |
PO File | 3 | 189 | 189 | 468 |
Markdown | 2 | 114 | 0 | 269 |
SVG | 9 | 0 | 0 | 140 |
JSON | 2 | 0 | 0 | 93 |
YAML | 3 | 11 | 11 | 66 |
Dockerfile | 1 | 6 | 0 | 28 |
XML | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 282 | |
▷ Static methods | 18 | 6.38% |
▷ Public methods | 264 | 93.62% |
▷ Protected methods | 12 | 4.26% |
▷ Private methods | 6 | 2.13% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 35 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 35 | 100.00% |
▷ Public constants | 35 | 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
No PNG files were detected