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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.61ms] Passed 4 tests
Server-side resources used by WooCommerce Zenkipay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.93 ▲2.26 |
Dashboard /wp-admin | 3.33 ▲0.03 | 55.05 ▲4.47 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.14 ▼2.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.25 ▼14.29 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.74 ▼0.26 |
Server storage [IO: ▲6.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,613 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Zenkipay
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.18 ▼0.17 | 1.88 ▲0.11 | 41.10 ▲1.01 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▲0.10 | 90.89 ▲1.27 | 37.14 ▼6.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.03 | 41.58 ▲2.92 | 34.92 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.48 ▲0.29 | 662.58 ▼38.30 | 54.38 ▼6.94 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.22 ▲0.05 | 97.03 ▼7.19 | 44.68 ▲1.49 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/zenkipay/lib/zenkipay/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 815× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/phpunit/phpunit/src/Framework/Constraint/Cardinality/GreaterThan.php:15
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar.php:5
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Framework\\SelfDescribing' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/phpunit/phpunit/src/Framework/MockObject/Stub/Stub.php:18
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\CodeCoverage\\Driver\\Driver' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/phpunit/php-code-coverage/src/Driver/PhpdbgDriver.php:26
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\Type\\Type' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/sebastian/type/src/type/UnknownType.php:12
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\BinaryOp' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BooleanOr.php:7
- > PHP Fatal error
Uncaught Error: Interface 'PharIo\\Version\\Exception' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/phar-io/version/src/exceptions/UnsupportedVersionConstraintException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\StreamFactory' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/php-http/message/src/StreamFactory/DiactorosStreamFactory.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Exception' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/phpunit/phpunit/src/Framework/Exception/ComparisonMethodDoesNotExistException.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/zenkipay/lib/zenkipay/vendor/phpunit/phpunit/src/Framework/Constraint/Math/IsNan.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (19 tag instead of maximum 10)
zenkipay/zenki.gateway.php 92% from 13 tests
"WooCommerce Zenkipay" version 2.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("zenkipay.php" instead of "zenki.gateway.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin100,177 lines of code in 1,496 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,294 | 17,772 | 32,376 | 84,899 |
JSON | 55 | 7 | 0 | 5,884 |
Markdown | 94 | 2,841 | 0 | 4,533 |
yacc | 3 | 332 | 12 | 2,029 |
XSD | 3 | 0 | 0 | 964 |
XML | 15 | 5 | 0 | 848 |
CSS | 8 | 69 | 31 | 457 |
JavaScript | 10 | 35 | 21 | 229 |
YAML | 5 | 38 | 3 | 162 |
PO File | 1 | 30 | 41 | 98 |
SVG | 6 | 0 | 1 | 43 |
reStructuredText | 2 | 23 | 18 | 31 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 144)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 7.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 144.00 |
Code structure | ||
---|---|---|
Namespaces | 152 | |
Interfaces | 120 | |
Traits | 19 | |
Classes | 1,098 | |
▷ Abstract classes | 51 | 4.64% |
▷ Concrete classes | 1,047 | 95.36% |
▷ Final classes | 562 | 53.68% |
Methods | 5,677 | |
▷ Static methods | 724 | 12.75% |
▷ Public methods | 4,457 | 78.51% |
▷ Protected methods | 557 | 9.81% |
▷ Private methods | 663 | 11.68% |
Functions | 1,654 | |
▷ Named functions | 351 | 21.22% |
▷ Anonymous functions | 1,303 | 78.78% |
Constants | 646 | |
▷ Global constants | 14 | 2.17% |
▷ Class constants | 632 | 97.83% |
▷ Public constants | 559 | 88.45% |
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.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/crypto-btn-es.png | 27.26KB | 10.52KB | ▼ 61.41% |
assets/icons/logo.png | 19.10KB | 7.54KB | ▼ 60.55% |
assets/icons/logo-white.png | 3.85KB | 2.06KB | ▼ 46.52% |
assets/icons/crypto-btn.png | 27.14KB | 10.57KB | ▼ 61.05% |