Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.70ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Hutkigrosh Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.52 ▼0.19 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.16 ▼0.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.45 ▼1.68 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.21 ▼20.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.45 ▲1.08 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 690 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Hutkigrosh Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.31 | 1.61 ▼0.17 | 42.52 ▼1.61 |
Dashboard /wp-admin | 2,198 ▲24 | 5.60 ▲0.07 | 88.98 ▼9.94 | 41.33 ▼6.30 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.05 | 38.91 ▼0.62 | 35.47 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.03 ▲0.24 | 642.97 ▲16.03 | 74.88 ▲21.77 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.18 ▼0.00 | 98.14 ▼2.77 | 40.58 ▼4.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 18× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/layout_html.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/package.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/renderer_default.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/layout_simple.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/configurator_basic.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/mdc.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/filter_stringmatch.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/filter_levelmatch.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/layout_pattern.php
- > /wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/examples/php/configurator_php.php
- 395× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Test\\TestUtil' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/tecnickcom/tc-lib-color/test/Model/CmykTest.php:32
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Color\\Model' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/tecnickcom/tc-lib-color/src/Model/Rgb.php:31
- > PHP Fatal error
Uncaught Error: Interface 'esas\\cmsgate\\hro\\HROTuner' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/esas/cmsgate-hutkigrosh-lib/src/esas/cmsgate/hutkigrosh/hro/sections/HeaderSectionLogoContactsHROTunerHutkigrosh.php:12
- > PHP Notice
2023-10-15 23:13:37.863 DEBUG [1027895] root: Hello PHP! in wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/main/php/appenders/LoggerAppenderPhp.php on line 46
- > PHP Fatal error
Uncaught Error: Class 'esas\\cmsgate\\PaysystemConnector' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/esas/cmsgate-hutkigrosh-lib/src/esas/cmsgate/hutkigrosh/PaysystemConnectorHutkigrosh.php:22
- > PHP Fatal error
Uncaught Error: Interface 'esas\\cmsgate\\hro\\HRO' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/esas/cmsgate-core/src/esas/cmsgate/hro/panels/MessagesPanelHRO.php:8
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/apache/log4php/src/main/php/pattern/LoggerPatternConverterMessage.php:29
- > PHP Fatal error
Uncaught Error: Class 'esas\\cmsgate\\view\\admin\\fields\\ConfigField' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/esas/cmsgate-core/src/esas/cmsgate/view/admin/fields/ConfigFieldText.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/tecnickcom/tc-lib-barcode/test/Linear/CodeOneOneTest.php:31
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Linear' not found in wp-content/plugins/woo-hutkigrosh-gateway/vendor/tecnickcom/tc-lib-barcode/src/Type/Linear/PharmaTwoTracks.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in woo-hutkigrosh-gateway/assets to your readme.txt
woo-hutkigrosh-gateway/cmsgate-woocommerce-hutkigrosh-hooks.php 77% from 13 tests
The main PHP script in "WooCommerce Hutkigrosh Gateway" version 4.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-hutkigrosh-gateway.php" instead of "cmsgate-woocommerce-hutkigrosh-hooks.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected48,484 lines of code in 624 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 533 | 5,366 | 17,846 | 26,974 |
JavaScript | 13 | 2,271 | 2,121 | 8,950 |
XML | 49 | 797 | 639 | 5,123 |
CSS | 7 | 925 | 63 | 4,934 |
JSON | 8 | 0 | 0 | 637 |
Velocity Template Language | 1 | 11 | 39 | 435 |
make | 3 | 96 | 120 | 323 |
Maven | 1 | 30 | 21 | 305 |
Markdown | 3 | 90 | 0 | 284 |
SVG | 2 | 0 | 0 | 250 |
Ant | 1 | 19 | 30 | 140 |
DTD | 1 | 25 | 54 | 69 |
YAML | 2 | 11 | 0 | 60 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 69 | |
Interfaces | 48 | |
Traits | 0 | |
Classes | 432 | |
▷ Abstract classes | 60 | 13.89% |
▷ Concrete classes | 372 | 86.11% |
▷ Final classes | 0 | 0.00% |
Methods | 2,546 | |
▷ Static methods | 457 | 17.95% |
▷ Public methods | 2,219 | 87.16% |
▷ Protected methods | 257 | 10.09% |
▷ Private methods | 70 | 2.75% |
Functions | 10 | |
▷ Named functions | 6 | 60.00% |
▷ Anonymous functions | 4 | 40.00% |
Constants | 309 | |
▷ Global constants | 12 | 3.88% |
▷ Class constants | 297 | 96.12% |
▷ Public constants | 297 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/apache/log4php/src/site/resources/images/logos/maven-feather.png | 3.25KB | 2.04KB | ▼ 37.24% |
vendor/esas/cmsgate-hutkigrosh-lib/static/image/ps_icons.png | 3.42KB | 2.02KB | ▼ 40.78% |
vendor/apache/log4php/src/site/resources/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
vendor/apache/log4php/src/site/resources/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |