Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲1.06ms] Passed 4 tests
An overview of server-side resources used by Andpay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 45.03 ▲1.37 |
Dashboard /wp-admin | 3.60 ▲0.30 | 52.46 ▲2.08 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 53.80 ▲3.82 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 103.74 ▼3.05 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 42.94 ▲5.06 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 392 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Andpay: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.27 ▼0.29 | 1.89 ▲0.03 | 40.40 ▼4.13 |
Dashboard /wp-admin | 2,201 ▲27 | 5.58 ▲0.00 | 91.53 ▼9.04 | 42.39 ▲1.11 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.95 ▼0.06 | 39.84 ▲1.90 | 34.05 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.30 ▲0.16 | 660.97 ▲34.60 | 68.53 ▼5.45 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▲0.01 | 99.85 ▼0.82 | 46.75 ▲4.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 171× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Formatter' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/message/src/Formatter/SimpleFormatter.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/laminas/laminas-diactoros/src/Response.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/discovery/src/Strategy/MockClientStrategy.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientInterface' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/httplug/src/HttpClient.php:13
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\HttpException' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/client-common/src/Exception/CircularRedirectionException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\MessageFactory' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/message/src/MessageFactory/DiactorosMessageFactory.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/client-common/src/Plugin/HeaderSetPlugin.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Exception' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/discovery/src/Exception/NotFoundException.php:14
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/symfony/options-resolver/Exception/MissingOptionsException.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/algo-payments-by-andpay/vendor/andpay/andpay-api-php/vendor/php-http/message/src/Authentication/Chain.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: algopay, algorand, algorand payments, usdc, yldy...
algo-payments-by-andpay/woocommerce-gateway-andpay.php 69% from 13 tests
The main PHP file in "Andpay" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("algo-payments-by-andpay.php" instead of "woocommerce-gateway-andpay.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected22,326 lines of code in 363 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 299 | 3,766 | 8,059 | 16,959 |
Markdown | 32 | 1,954 | 0 | 2,884 |
JSON | 22 | 1 | 0 | 2,292 |
YAML | 5 | 24 | 7 | 131 |
SVG | 4 | 0 | 2 | 32 |
XML | 1 | 3 | 0 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 47 | |
Interfaces | 43 | |
Traits | 14 | |
Classes | 206 | |
▷ Abstract classes | 5 | 2.43% |
▷ Concrete classes | 201 | 97.57% |
▷ Final classes | 102 | 50.75% |
Methods | 1,153 | |
▷ Static methods | 191 | 16.57% |
▷ Public methods | 1,007 | 87.34% |
▷ Protected methods | 34 | 2.95% |
▷ Private methods | 112 | 9.71% |
Functions | 207 | |
▷ Named functions | 73 | 35.27% |
▷ Anonymous functions | 134 | 64.73% |
Constants | 43 | |
▷ Global constants | 4 | 9.30% |
▷ Class constants | 39 | 90.70% |
▷ Public constants | 38 | 97.44% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/icon.png | 11.23KB | 4.58KB | ▼ 59.23% |
public/images/currency-yldy.png | 17.79KB | 9.13KB | ▼ 48.66% |
public/images/currency-smile.png | 25.69KB | 11.30KB | ▼ 56.02% |
public/images/currency-eure.png | 27.76KB | 10.75KB | ▼ 61.29% |
public/images/currency-planet.png | 242.05KB | 72.08KB | ▼ 70.22% |