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.35MB] [CPU: ▼3.22ms] Passed 4 tests
A check of server-side resources used by Utánvét Ellenőr
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 39.69 ▲0.13 |
Dashboard /wp-admin | 3.69 ▲0.39 | 47.40 ▼10.26 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 50.55 ▲4.30 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 94.00 ▼0.06 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 36.69 ▼2.67 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 198 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
uvb_connector_woocommerce_options |
Browser metrics Passed 4 tests
Checking browser requirements for Utánvét Ellenőr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.31 ▲0.35 | 1.67 ▼0.06 | 38.72 ▼5.62 |
Dashboard /wp-admin | 2,204 ▲27 | 5.70 ▲0.08 | 89.91 ▼4.09 | 40.82 ▼1.53 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.95 ▼0.01 | 38.68 ▼0.16 | 36.54 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.23 ▲0.29 | 611.19 ▼174.61 | 51.75 ▲2.56 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▼0.07 | 96.44 ▼26.60 | 43.17 ▼6.25 |
UV-B Connector /wp-admin/uvb-connector-woocommerce.php | 26 | 0.41 | 0.08 | 14.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- uvb_connector_woocommerce_options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 50× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Warning
Use of undefined constant UVB_CONNECTOR_VENDOR_AUTOLOAD_PATH - assumed 'UVB_CONNECTOR_VENDOR_AUTOLOAD_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/uv-b-connector-for-woocommerce/admin/class-uvb-connector-woocommerce-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
require(): Failed opening required 'UVB_CONNECTOR_VENDOR_AUTOLOAD_PATH' (include_path='.:/usr/share/php') in wp-content/plugins/uv-b-connector-for-woocommerce/admin/class-uvb-connector-woocommerce-admin.php on line 3
- > PHP Warning
require(UVB_CONNECTOR_VENDOR_AUTOLOAD_PATH): failed to open stream: No such file or directory in wp-content/plugins/uv-b-connector-for-woocommerce/admin/class-uvb-connector-woocommerce-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/uv-b-connector-for-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/uvb-connector-woocommerce.php
- > Network (severe)
wp-admin/uvb-connector-woocommerce.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: szrs, utnvt, filter, ellenr, cash on delivery...
uv-b-connector-for-woocommerce/uvb-connector-woocommerce.php 85% from 13 tests
The main PHP script in "Utánvét Ellenőr" version 1.10.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uv-b-connector-for-woocommerce.php" instead of "uvb-connector-woocommerce.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin32,744 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 2,500 | 6,828 | 27,799 |
Markdown | 15 | 1,181 | 0 | 3,551 |
JSON | 11 | 0 | 0 | 1,164 |
YAML | 6 | 26 | 3 | 103 |
PO File | 1 | 16 | 20 | 63 |
JavaScript | 1 | 7 | 1 | 25 |
SVG | 1 | 0 | 0 | 16 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 1 | 4 | 4 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 16.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 91 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 91 | 100.00% |
▷ Final classes | 23 | 25.27% |
Methods | 793 | |
▷ Static methods | 166 | 20.93% |
▷ Public methods | 646 | 81.46% |
▷ Protected methods | 4 | 0.50% |
▷ Private methods | 143 | 18.03% |
Functions | 164 | |
▷ Named functions | 72 | 43.90% |
▷ Anonymous functions | 92 | 56.10% |
Constants | 163 | |
▷ Global constants | 43 | 26.38% |
▷ Class constants | 120 | 73.62% |
▷ Public constants | 120 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin