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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.66ms] Passed 4 tests
An overview of server-side resources used by Artemis Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.41 ▼7.01 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.39 ▼14.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.27 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.06 ▼7.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 44.80 ▲8.19 |
Server storage [IO: ▲7.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,484 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Artemis Payment Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.74 ▲0.14 | 1.64 ▼0.23 | 42.99 ▲0.38 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▼0.13 | 107.59 ▼5.31 | 40.51 ▼3.90 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 41.40 ▲6.75 | 36.96 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.27 ▼0.07 | 661.10 ▼42.61 | 53.29 ▼5.95 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.20 | 94.40 ▼16.19 | 42.04 ▼5.13 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
- 763× 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/artemis-payment-gateway/vendor/soneso/stellar-php-sdk/Soneso/StellarSDKTests/AmmTest.php:33
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_SipHash' not found in wp-content/plugins/artemis-payment-gateway/vendor/paragonie/sodium_compat/namespaced/Core/SipHash.php:4
- > PHP Notice
Constant SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_OPSLIMIT_INTERACTIVE already defined in wp-content/plugins/artemis-payment-gateway/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 65
- > PHP Parse error
syntax error, unexpected '->' (T_OBJECT_OPERATOR) in wp-content/plugins/artemis-payment-gateway/vendor/soneso/stellar-php-sdk/Soneso/StellarSDK/Transaction.php on line 144
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Signature\\Raw' not found in wp-content/plugins/artemis-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Signature/Raw.php:23
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/artemis-payment-gateway/vendor/bacon/bacon-qr-code/test/Common/ReedSolomonCodecTest.php:10
- > PHP Notice
Constant SODIUM_CRYPTO_BOX_SEEDBYTES already defined in wp-content/plugins/artemis-payment-gateway/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 35
- > PHP Warning
require_once(wp-content/plugins/artemis-payment-gateway/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/artemis-payment-gateway/vendor/chillerlan/php-qrcode/examples/image.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/artemis-payment-gateway/src/woocommerce/wc_agp_payment.php:3
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\AsymmetricKey' not found in wp-content/plugins/artemis-payment-gateway/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: cryptocurrency, woocommerce, crypto-currency, bitcoin, ecommerce...
artemis-payment-gateway/artemispaymentgateway.php 92% from 13 tests
The main file in "Artemis Payment Gateway for WooCommerce" v. 1.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("artemis-payment-gateway.php" instead of "artemispaymentgateway.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin122,861 lines of code in 1,425 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,330 | 22,885 | 52,556 | 112,705 |
Markdown | 57 | 2,421 | 0 | 7,096 |
JSON | 23 | 0 | 0 | 2,594 |
XML | 7 | 5 | 0 | 151 |
CSS | 2 | 2 | 0 | 139 |
HTML | 1 | 26 | 0 | 137 |
JavaScript | 2 | 7 | 0 | 34 |
Bourne Shell | 1 | 2 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
TOML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 147 | |
Interfaces | 61 | |
Traits | 11 | |
Classes | 1,224 | |
▷ Abstract classes | 243 | 19.85% |
▷ Concrete classes | 981 | 80.15% |
▷ Final classes | 170 | 17.33% |
Methods | 7,403 | |
▷ Static methods | 1,786 | 24.13% |
▷ Public methods | 6,284 | 84.88% |
▷ Protected methods | 510 | 6.89% |
▷ Private methods | 609 | 8.23% |
Functions | 382 | |
▷ Named functions | 215 | 56.28% |
▷ Anonymous functions | 167 | 43.72% |
Constants | 1,354 | |
▷ Global constants | 15 | 1.11% |
▷ Class constants | 1,339 | 98.89% |
▷ Public constants | 1,164 | 86.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/endroid/qr-code/assets/blackfire.png | 28.08KB | 10.02KB | ▼ 64.30% |
vendor/chillerlan/php-qrcode/examples/example_svg.png | 15.55KB | 6.70KB | ▼ 56.90% |
vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |
vendor/bacon/bacon-qr-code/test/Integration/__snapshots__/files/ImagickRenderingTest__testGenericQrCode__1.png | 3.04KB | 1.72KB | ▼ 43.30% |