Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.51ms] Passed 4 tests
This is a short check of server-side resources used by PaywithTerra Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 35.71 ▼8.73 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.11 ▼4.91 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.76 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.16 ▼17.21 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.23 ▲0.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
PaywithTerra Payment Gateway: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.21 | 4.77 ▲2.80 | 38.68 ▼13.85 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▲0.00 | 112.32 ▼7.92 | 42.69 ▼1.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.07 | 40.40 ▲1.24 | 35.61 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,542 ▼5 | 18.15 ▼0.15 | 592.34 ▼57.00 | 58.89 ▼2.81 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.36 ▲0.11 | 97.12 ▼5.30 | 41.68 ▼2.42 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/tests/Parser/LCDTxParserTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/tests/Cache/FileCacheTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'PaywithTerra\\Parser\\ParserInterface' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/src/Parser/LCDTxParser.php:8
- > PHP Fatal error
Trait 'PaywithTerra\\Entity\\TxValidationTrait' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/src/Entity/NormalTx.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'PaywithTerra\\Cache\\CacheInterface' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/src/Cache/FileCache.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/tests/Parser/FCDTxParserTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'PaywithTerra\\Cache\\CacheItemInterface' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/src/Cache/FileCacheItem.php:12
- > PHP Fatal error
Trait 'PaywithTerra\\Entity\\TxValidationTrait' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/src/Entity/PaymentMessage.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/tests/TerraTxValidatorTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PaywithTerra\\Parser\\ParserInterface' not found in wp-content/plugins/paywithterra-payment-gateway/php-backend-library/src/Parser/FCDTxParser.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: woocommerce, gateway, crypto, terra
paywithterra-payment-gateway/woocommerce-paywithterra.php 92% from 13 tests
The entry point to "PaywithTerra Payment Gateway" version 2.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: Please rename the main PHP file in this plugin to the plugin slug ("paywithterra-payment-gateway.php" instead of "woocommerce-paywithterra.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,377 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 266 | 221 | 1,162 |
Markdown | 3 | 52 | 0 | 139 |
HTML | 1 | 11 | 0 | 43 |
JSON | 1 | 0 | 0 | 25 |
SVG | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 3 | 3.75% |
▷ Public methods | 57 | 71.25% |
▷ Protected methods | 19 | 23.75% |
▷ Private methods | 4 | 5.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin