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
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.29ms] Passed 4 tests
A check of server-side resources used by Reusable Product Description for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.64 ▼2.75 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.48 ▲0.85 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.04 ▲4.51 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.71 ▼7.77 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.32 ▲5.10 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Reusable Product Description for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.07 | 1.89 ▲0.18 | 40.62 ▼5.84 |
Dashboard /wp-admin | 2,198 ▲21 | 5.67 ▲0.05 | 97.37 ▲7.14 | 44.76 ▲3.58 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.05 | 39.86 ▲0.06 | 38.10 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.35 ▲5.01 | 655.84 ▼0.36 | 51.32 ▼15.69 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.01 | 96.90 ▼6.91 | 40.60 ▼3.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: meta_key in wp-content/plugins/woo-product-attribute-tab/templates/cat-add-form-field.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-attribute-tab/templates/cat-edit-form-field.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-attribute-tab/templates/pa-add-form-field.php:2
- > PHP Notice
Undefined variable: meta_key in wp-content/plugins/woo-product-attribute-tab/templates/cat-edit-form-field.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-attribute-tab/templates/cat-add-form-field.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-attribute-tab/templates/pa-edit-form-field.php:3
- > PHP Notice
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 96% 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
9 plugin tags: product attribute, category description, woocommerce, attribute description, product...
woo-product-attribute-tab/woo-product-attribute-tab.php 92% from 13 tests
The main PHP script in "Reusable Product Description for WooCommerce" version 1.3.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4.0" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected587 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 104 | 413 | 489 |
PO File | 1 | 21 | 25 | 98 |
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.43 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 30 | 73.17% |
▷ Protected methods | 5 | 12.20% |
▷ Private methods | 6 | 14.63% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 119.29KB | 32.58KB | ▼ 72.69% |
assets/screenshot-2.png | 62.02KB | 22.30KB | ▼ 64.04% |