Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.46ms] Passed 4 tests
Analyzing server-side resources used by HuCommerce | Magyar WooCommerce kiegészítések
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.66 ▼7.53 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.19 ▼3.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.28 ▼2.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.75 ▼4.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.78 ▲3.26 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HuCommerce | Magyar WooCommerce kiegészítések
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.13 ▼0.22 | 1.57 ▼0.22 | 40.33 ▼2.14 |
Dashboard /wp-admin | 2,220 ▲42 | 5.57 ▼0.12 | 86.44 ▼25.53 | 70.88 ▲23.59 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.11 ▲0.11 | 37.84 ▼9.79 | 35.53 ▼5.23 |
Add New Post /wp-admin/post-new.php | 1,702 ▲173 | 21.93 ▼1.57 | 733.93 ▲63.62 | 53.32 ▲0.42 |
Media Library /wp-admin/upload.php | 1,428 ▲34 | 4.22 ▲0.06 | 105.87 ▲6.09 | 69.31 ▲28.59 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 50% 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
Please take a closer look at the following
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/smtp.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/coupon.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/redirect-cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/surbma-magyar-woocommerce/modules/global-info.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/surbma-magyar-woocommerce/modules/one-product-in-cart.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/product-price-additions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/surbma-magyar-woocommerce/modules/custom-addtocart-button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/surbma-magyar-woocommerce/modules/product-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/surbma-magyar-woocommerce/modules/catalog-mode.php:21
- > PHP Warning
include_once(CPS_DIR/pages/plugins-page.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-magyar-woocommerce/cps-sdk/lib/admin.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: magyarorszg, woocommerce, magyar, hungarian, webruhz...
surbma-magyar-woocommerce/surbma-magyar-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "HuCommerce | Magyar WooCommerce kiegészítések" version 2023.2.5
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "4.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin28,265 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 220 | 76 | 10,227 |
CSS | 4 | 105 | 3,120 | 9,860 |
PHP | 54 | 912 | 874 | 5,917 |
Markdown | 6 | 1,210 | 0 | 2,117 |
SVG | 2 | 0 | 2 | 74 |
XML | 1 | 0 | 0 | 43 |
JSON | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 188 | |
▷ Named functions | 52 | 27.66% |
▷ Anonymous functions | 136 | 72.34% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cps-sdk/assets/images/cps-logo.png | 0.88KB | 1.03KB | 0.00% |
assets/images/hucommerce-logo-white.png | 3.43KB | 2.57KB | ▼ 24.98% |
assets/images/hucommerce-logo.png | 3.31KB | 2.60KB | ▼ 21.63% |
assets/images/hucommerce-logo-2023-dark.png | 9.41KB | 5.45KB | ▼ 42.08% |