Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.38ms] Passed 4 tests
Analyzing server-side resources used by EPOS Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 47.25 ▲7.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.38 ▼3.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.49 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.21 ▼18.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.45 ▲1.42 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 707 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for EPOS Gateway for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.84 ▲0.09 | 2.06 ▲0.25 | 43.81 ▼6.21 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▲0.91 | 107.16 ▼7.89 | 41.28 ▼5.67 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.98 ▼0.05 | 34.69 ▼2.08 | 30.39 ▼8.35 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.15 ▲5.43 | 652.45 ▼21.55 | 55.49 ▼5.48 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.22 ▲0.01 | 95.63 ▼8.13 | 42.04 ▼1.43 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/configurator_xml.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/cache.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/configurator_basic.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/filter_levelrange.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/configurator_php.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/layout_xml.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/filter_stringmatch.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/package.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/mdc.php
- > /wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/examples/php/layout_pattern.php
- 401× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/tecnickcom/tc-lib-barcode/src/Type/Linear.php:31
- > PHP Fatal error
Uncaught Error: Interface 'esas\\cmsgate\\utils\\htmlbuilder\\page\\SingleFormPage' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/esas/cmsgate-core/src/esas/cmsgate/utils/htmlbuilder/page/StorableFormPage.php:9
- > PHP Fatal error
Uncaught Error: Class 'esas\\cmsgate\\view\\admin\\validators\\ValidatorUploadFile' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/esas/cmsgate-core/src/esas/cmsgate/view/admin/validators/ValidatorUploadFileSize.php:14
- > PHP Fatal error
Uncaught Error: Class 'esas\\cmsgate\\view\\admin\\validators\\Validator' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/esas/cmsgate-core/src/esas/cmsgate/view/admin/validators/ValidatorUploadFile.php:12
- > PHP Fatal error
Uncaught Error: Interface 'esas\\cmsgate\\hro\\HRO' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/esas/cmsgate-core/src/esas/cmsgate/hro/tables/TableHRO.php:8
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverterSuperglobal' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/apache/log4php/src/main/php/pattern/LoggerPatternConverterServer.php:33
- > PHP Fatal error
Uncaught Error: Class 'esas\\cmsgate\\hro\\forms\\FormHRO_v1' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/esas/cmsgate-core/src/esas/cmsgate/hro/forms/FormHRO_v2.php:16
- > PHP Fatal error
Uncaught Error: Class 'esas\\cmsgate\\descriptors\\AbstractDescriptor' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/esas/cmsgate-core/src/esas/cmsgate/descriptors/ModuleDescriptor.php:14
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Linear' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/tecnickcom/tc-lib-barcode/src/Type/Linear/Imb.php:55
- > PHP Fatal error
Uncaught Error: Class 'Com\\Tecnick\\Barcode\\Type\\Linear\\EanOneThree' not found in wp-content/plugins/epos-gateway-for-woocommerce/vendor/tecnickcom/tc-lib-barcode/src/Type/Linear/EanEight.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in epos-gateway-for-woocommerce/assets to your readme.txt
epos-gateway-for-woocommerce/cmsgate-woocommerce-epos-hooks.php 85% from 13 tests
The primary PHP file in "EPOS Gateway for WooCommerce" version 2.0.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("epos-gateway-for-woocommerce.php" instead of "cmsgate-woocommerce-epos-hooks.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected48,988 lines of code in 639 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 541 | 5,449 | 17,968 | 27,287 |
JavaScript | 13 | 2,271 | 2,121 | 8,950 |
XML | 49 | 797 | 639 | 5,123 |
CSS | 8 | 925 | 65 | 4,936 |
JSON | 8 | 0 | 0 | 637 |
Velocity Template Language | 1 | 11 | 39 | 435 |
Markdown | 8 | 125 | 0 | 354 |
make | 3 | 96 | 120 | 323 |
SVG | 2 | 0 | 0 | 313 |
Maven | 1 | 30 | 21 | 305 |
Ant | 1 | 19 | 30 | 140 |
YAML | 3 | 15 | 2 | 116 |
DTD | 1 | 25 | 54 | 69 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 68 | |
Interfaces | 48 | |
Traits | 0 | |
Classes | 441 | |
▷ Abstract classes | 60 | 13.61% |
▷ Concrete classes | 381 | 86.39% |
▷ Final classes | 0 | 0.00% |
Methods | 2,576 | |
▷ Static methods | 458 | 17.78% |
▷ Public methods | 2,247 | 87.23% |
▷ Protected methods | 257 | 9.98% |
▷ Private methods | 72 | 2.80% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 310 | |
▷ Global constants | 12 | 3.87% |
▷ Class constants | 298 | 96.13% |
▷ Public constants | 298 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up 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/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
vendor/apache/log4php/src/site/resources/images/logos/maven-feather.png | 3.25KB | 2.04KB | ▼ 37.24% |
vendor/esas/cmsgate-epos-lib/static/image/ps_icons.png | 3.42KB | 2.02KB | ▼ 40.78% |
vendor/apache/log4php/src/site/resources/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |