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.10MB] [CPU: ▼6.37ms] Passed 4 tests
An overview of server-side resources used by Codup WooCommerce Dynamic Pricing Table View
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.66 ▼2.83 |
Dashboard /wp-admin | 3.41 ▲0.10 | 50.71 ▼4.61 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.59 ▼4.86 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.40 ▼13.19 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.88 ▲3.42 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Codup WooCommerce Dynamic Pricing Table View
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.32 ▼1.05 | 4.63 ▲3.03 | 41.02 ▼1.57 |
Dashboard /wp-admin | 2,218 ▲27 | 4.87 ▼1.03 | 104.88 ▲1.42 | 41.36 ▼6.11 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.04 ▲0.03 | 41.12 ▲1.45 | 34.33 ▼5.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 23.50 ▲0.30 | 657.48 ▲46.83 | 57.04 ▲5.36 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.21 ▼0.03 | 100.53 ▼2.79 | 43.42 ▲1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_checkbox() in wp-content/plugins/codup-woocommerce-dynamic-pricing-table-view/templates/wc-pricing-table-tab-options.php:7
- > PHP Notice
Undefined variable: pricing_rule_sets in wp-content/plugins/codup-woocommerce-dynamic-pricing-table-view/templates/wc-pricing-table-template.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/codup-woocommerce-dynamic-pricing-table-view/templates/wc-pricing-table-template.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/codup-woocommerce-dynamic-pricing-table-view/templates/wc-pricing-table-template.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/codup-woocommerce-dynamic-pricing-table-view/templates/wc-pricing-table-template.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/codup-woocommerce-dynamic-pricing-table-view/templates/wc-pricing-table-tab.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in codup-woocommerce-dynamic-pricing-table-view/assets to your readme.txt
codup-woocommerce-dynamic-pricing-table-view/class-wc-pricing-table.php 77% from 13 tests
The main PHP file in "Codup WooCommerce Dynamic Pricing Table View" ver. 1.2.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("codup-woocommerce-dynamic-pricing-table-view.php" instead of "class-wc-pricing-table.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin771 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 205 | 262 | 587 |
JavaScript | 3 | 23 | 29 | 77 |
YAML | 1 | 7 | 0 | 53 |
CSS | 2 | 8 | 5 | 32 |
XML | 2 | 2 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 4 | 50.00% |
▷ Concrete classes | 4 | 50.00% |
▷ Final classes | 1 | 25.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 44 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.33% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.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