Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.47ms] Passed 4 tests
Analyzing server-side resources used by Product Code for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.66 ▲1.59 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.55 ▼15.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.91 ▲3.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.77 ▼5.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.62 ▲0.64 |
Product Code /wp-admin/admin.php?page=wc_product_code | 3.00 | 24.84 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
product_code_notice_dismiss |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
product_code_text |
Browser metrics Passed 4 tests
Checking browser requirements for Product Code for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲54 | 14.27 ▼0.01 | 1.79 ▲0.22 | 35.26 ▼3.75 |
Dashboard /wp-admin | 2,198 ▲27 | 5.60 ▼0.07 | 93.70 ▼4.74 | 42.16 ▼3.16 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▲0.01 | 43.00 ▼0.42 | 35.08 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.99 ▼0.12 | 620.32 ▼36.84 | 54.04 ▼6.89 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▲0.00 | 96.34 ▼5.44 | 43.93 ▼1.58 |
Product Code /wp-admin/admin.php?page=wc_product_code | 28 | 0.41 | 0.06 | 4.08 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- product_code_notice_dismiss
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- product_code_text
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/product-code-for-woocommerce/templates/link.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/product-code-for-woocommerce/modules/search/pcfw-product-code-search.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-code-for-woocommerce/templates/quick-edit-text-field.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/product-code-for-woocommerce/templates/product-meta-row.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/product-code-for-woocommerce/modules/search/pcfw-searchwp-product-code-search.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/product-code-for-woocommerce/templates/hidden-product-list-column.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/product-code-for-woocommerce/modules/search/pcfw-relevanssi-product-code-search.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/product-code-for-woocommerce/templates/variation-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_text_input() in wp-content/plugins/product-code-for-woocommerce/templates/wc-text-input.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Artiosmedia\\WC_Product_Code\\plugins_url() in wp-content/plugins/product-code-for-woocommerce/product-code-for-woocommerce.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wc_product_code
- > Network (severe)
wp-admin/admin.php?page=wc_product_code - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
7 plugin tags: mpn, product code, warehouse tracking, product number, sku...
product-code-for-woocommerce/product-code-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Product Code for WooCommerce" v. 1.4.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,405 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 394 | 312 | 1,459 |
PO File | 5 | 230 | 266 | 738 |
JavaScript | 4 | 51 | 28 | 161 |
CSS | 2 | 12 | 0 | 46 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 29.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 3 | 4.11% |
▷ Public methods | 72 | 98.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.37% |
Functions | 18 | |
▷ Named functions | 8 | 44.44% |
▷ Anonymous functions | 10 | 55.56% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin