Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.70ms] Passed 4 tests
A check of server-side resources used by Supplier Data Fields for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 48.06 ▲8.01 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.94 ▼3.24 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.36 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.38 ▲9.85 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.41 ▲1.96 |
Supplier Data Fields for WC /wp-admin/options-general.php?page=supplier-data-fields-for-wc | 3.26 | 32.93 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
jdssdf_options |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Supplier Data Fields for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.07 | 1.76 ▼0.17 | 43.07 ▼7.59 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.03 | 112.82 ▲9.12 | 38.55 ▼6.77 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.04 | 38.83 ▲5.18 | 34.11 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,523 ▲4 | 23.21 ▲0.08 | 663.03 ▼19.17 | 65.99 ▲13.91 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.22 ▲0.05 | 93.30 ▼0.30 | 40.43 ▼5.48 |
Supplier Data Fields for WC /wp-admin/options-general.php?page=supplier-data-fields-for-wc | 947 | 2.05 | 28.57 | 33.07 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- jdssdf_options
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 everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/supplier-data-fields-for-wc/supplier-data-fields-for-wc.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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: data, products, supplier, custom, fields...
supplier-data-fields-for-wc/supplier-data-fields-for-wc.php Passed 13 tests
The primary PHP file in "Supplier Data Fields for WooCommerce" version 1.0.5 is used by WordPress to initiate all plugin functionality
65 characters long description:
Adds supplier fields to the product data section of each product.
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
There were no executable files found in this plugin489 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 115 | 41 | 489 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stars-small.png | 1.50KB | 1.51KB | 0.00% |
dbut.png | 13.46KB | 6.06KB | ▼ 55.01% |
dbut-small.png | 5.33KB | 2.67KB | ▼ 49.92% |