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.00MB] [CPU: ▼4.71ms] Passed 4 tests
A check of server-side resources used by WooCommerce maib Moldova Agroindbank Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.56 ▼0.71 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.72 ▲0.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.66 ▼9.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.72 ▼9.15 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.88 ▲1.36 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 406 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce maib Moldova Agroindbank Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.01 | 1.61 ▲0.05 | 35.42 ▼7.41 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▲0.04 | 89.24 ▲2.61 | 36.55 ▼6.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.01 | 34.15 ▼8.52 | 32.99 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.17 ▲5.20 | 680.37 ▲89.21 | 61.12 ▲1.25 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.02 | 98.54 ▼14.98 | 44.29 ▼0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 201× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Command\\ToArrayInterface' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle-services/src/Operation.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php:73
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle-services/tests/ResponseLocation/ReasonPhraseLocationTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\Description' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/maib/maibapi/src/MaibApi/MaibDescription.php:7
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php:24
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/command/src/Exception/CommandException.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wc-moldovaagroindbank/vendor/guzzlehttp/guzzle-services/tests/ParameterTest.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
10 plugin tags: payment, moldova, woocommerce, maib, visa...
wc-moldovaagroindbank/wc-moldovaagroindbank.php Passed 13 tests
The main PHP file in "WooCommerce maib Moldova Agroindbank Payment Gateway" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
Accept Visa and Mastercard directly on your store with the maib Moldova Agroindbank payment gateway for WooCommerce.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin50,724 lines of code in 378 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 326 | 5,502 | 14,229 | 43,449 |
Markdown | 23 | 1,709 | 0 | 4,992 |
JSON | 15 | 0 | 0 | 1,642 |
PO File | 2 | 172 | 176 | 489 |
YAML | 6 | 24 | 3 | 107 |
XML | 1 | 0 | 0 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 5 | 0 | 10 |
HTML | 1 | 1 | 0 | 9 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 33 | |
Traits | 8 | |
Classes | 253 | |
▷ Abstract classes | 10 | 3.95% |
▷ Concrete classes | 243 | 96.05% |
▷ Final classes | 27 | 11.11% |
Methods | 1,889 | |
▷ Static methods | 233 | 12.33% |
▷ Public methods | 1,431 | 75.75% |
▷ Protected methods | 227 | 12.02% |
▷ Private methods | 231 | 12.23% |
Functions | 198 | |
▷ Named functions | 74 | 37.37% |
▷ Anonymous functions | 124 | 62.63% |
Constants | 296 | |
▷ Global constants | 76 | 25.68% |
▷ Class constants | 220 | 74.32% |
▷ Public constants | 193 | 87.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/maib.png | 2.74KB | 1.52KB | ▼ 44.47% |
assets/img/paymentsystems.png | 5.16KB | 2.90KB | ▼ 43.86% |
assets/img/card-visa.png | 0.82KB | 0.85KB | 0.00% |
assets/img/card-mastercard.png | 3.87KB | 2.16KB | ▼ 44.22% |