Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Error in wp-content/plugins/openpay-payment-gateway/class/WC_Gateway_Openpay.php+5
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/openpay-payment-gateway/class/WC_Gateway_Openpay.php:5
Stack trace:
#0 wp-content/plugins/openpay-payment-gateway/class/Cron/Openpay_Plugin_Cron.php(6): require_once()
#1 wp-content/plugins/openpay-payment-gateway/openpay.php(75): require_once('/var/www/wordpr...')
#2 wp-content/plugins/openpay-payment-gateway/openpay.php(98): Openpay_Payment::load_classes()
#3 wp-content/plugins/openpay-payment-gateway/openpay.php(83): Openpay_Payment::init()
#4 wp-includes/class-wp-hook.php(310): Openpay_Payment::activate_plugin()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.26ms] Passed 4 tests
Server-side resources used by Openpay Payment Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.35 ▼1.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.14 ▼4.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.49 ▲6.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.63 ▼23.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.40 ▲4.78 |
Server storage [IO: ▲2.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 516 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Openpay Payment Gateway
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.16 ▼0.07 | 1.81 ▲0.07 | 43.11 ▼1.77 |
Dashboard /wp-admin | 2,186 ▲9 | 5.52 ▼0.19 | 100.47 ▲7.14 | 43.59 ▲4.37 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.00 | 32.95 ▼9.54 | 33.61 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.04 ▲5.06 | 663.79 ▲39.93 | 53.46 ▼16.33 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.10 | 97.76 ▲3.85 | 43.49 ▲2.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 231× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php:27
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\DocBlock\\Tags\\Reference\\Reference' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Reference/Fqsen.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Openpay\\Client\\Model\\ModelInterface' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/lib/Model/IntegrationApiModelsCommandsPosWebJourneyDetails.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp7\\Exception\\BadResponseException' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor-static/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Doctrine\\Instantiator\\Exception\\ExceptionInterface' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Exception/UnexpectedValueException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp7\\Exception\\GuzzleException' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor-static/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php:25
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\Types\\String_' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/phpdocumentor/type-resolver/src/PseudoTypes/NonEmptyString.php:25
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp7\\Promise\\PromisorInterface' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor-static/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Prophecy\\Argument\\Token\\TokenInterface' not found in wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php:19
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid URI ("")
openpay-payment-gateway/openpay.php 92% from 13 tests
The main file in "Openpay Payment Gateway" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("openpay-payment-gateway.php" instead of "openpay.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/bin/phpcbf.bat
- ☣ wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/bin/phpcs.bat
- ☣ wp-content/plugins/openpay-payment-gateway/lib/OpenpayApi/vendor/bin/phpunit.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 388 | 7,472 | 22,329 | 34,220 |
Markdown | 26 | 1,770 | 0 | 4,895 |
YAML | 34 | 157 | 90 | 3,492 |
JSON | 17 | 5 | 0 | 2,285 |
INI | 4 | 20 | 15 | 141 |
SVG | 1 | 0 | 1 | 47 |
XML | 2 | 3 | 0 | 43 |
JavaScript | 1 | 0 | 0 | 36 |
reStructuredText | 2 | 23 | 18 | 31 |
Bourne Shell | 3 | 9 | 3 | 30 |
Smarty | 2 | 0 | 0 | 25 |
HTML | 1 | 1 | 0 | 22 |
DOS Batch | 3 | 0 | 0 | 12 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 367.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 56 | |
Traits | 4 | |
Classes | 312 | |
▷ Abstract classes | 5 | 1.60% |
▷ Concrete classes | 307 | 98.40% |
▷ Final classes | 112 | 36.48% |
Methods | 2,791 | |
▷ Static methods | 738 | 26.44% |
▷ Public methods | 2,479 | 88.82% |
▷ Protected methods | 34 | 1.22% |
▷ Private methods | 278 | 9.96% |
Functions | 193 | |
▷ Named functions | 55 | 28.50% |
▷ Anonymous functions | 138 | 71.50% |
Constants | 168 | |
▷ Global constants | 4 | 2.38% |
▷ Class constants | 164 | 97.62% |
▷ Public constants | 144 | 87.80% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin