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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.64ms] Passed 4 tests
A check of server-side resources used by Price Matrix for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.59 ▼5.92 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.10 ▲0.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.88 ▼4.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.48 ▼29.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.42 ▼2.53 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Price Matrix for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.28 ▼0.01 | 1.88 ▼0.29 | 43.25 ▲0.68 |
Dashboard /wp-admin | 2,201 ▲21 | 5.59 ▼0.00 | 86.08 ▼1.63 | 41.43 ▼4.82 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.99 ▼0.02 | 35.61 ▼3.26 | 40.01 ▲2.82 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.96 ▼0.64 | 685.24 ▲12.29 | 58.55 ▲0.82 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.19 ▼0.09 | 104.46 ▲0.58 | 45.46 ▲0.58 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/price-matrix-for-woocommerce/templates/table-4.php
- > /wp-content/plugins/price-matrix-for-woocommerce/templates/table-2.php
- > /wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-1.php
- > /wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-3.php
- > /wp-content/plugins/price-matrix-for-woocommerce/templates/table-vertical-3.php
- > /wp-content/plugins/price-matrix-for-woocommerce/admin/metabox/tpl.notice.php
- > /wp-content/plugins/price-matrix-for-woocommerce/templates/table-vertical-1.php
- > /wp-content/plugins/price-matrix-for-woocommerce/admin/metabox/tpl.order.php
- 43× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-3.php on line 20
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/price-matrix-for-woocommerce/templates/table-2.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-1.php on line 9
- > PHP Notice
Undefined variable: is_admin in wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-1.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/price-matrix-for-woocommerce/templates/table-vertical-3.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/price-matrix-for-woocommerce/admin/metabox/tpl.metabox.php:16
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/price-matrix-for-woocommerce/templates/table-vertical-1.php on line 3
- > PHP Notice
Undefined variable: horizontal_one_array in wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-3.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/price-matrix-for-woocommerce/admin/templates/general.php:5
- > PHP Notice
Undefined variable: data_array in wp-content/plugins/price-matrix-for-woocommerce/templates/table-horizontal-1.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #3, #4, #5, #6 in price-matrix-for-woocommerce/assets to your readme.txt
price-matrix-for-woocommerce/price-matrix-for-woocommerce.php 92% from 13 tests
The main PHP script in "Price Matrix for WooCommerce" version 1.2.2 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,369 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 414 | 180 | 2,429 |
CSS | 5 | 66 | 9 | 1,336 |
JavaScript | 5 | 130 | 36 | 583 |
SVG | 2 | 0 | 1 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 21.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 9 | 15.00% |
▷ Public methods | 54 | 90.00% |
▷ Protected methods | 1 | 1.67% |
▷ Private methods | 5 | 8.33% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin