Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.62ms] Passed 4 tests
An overview of server-side resources used by Product Disclaimer For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.73 ▼0.10 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.60 ▼1.90 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.27 ▼1.93 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.36 ▼10.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.13 ▲0.99 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Product Disclaimer For WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.19 ▼1.19 | 1.67 ▼0.17 | 39.84 ▼9.92 |
Dashboard /wp-admin | 2,209 ▲21 | 5.80 ▲0.87 | 97.50 ▼19.04 | 40.72 ▼4.94 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.02 ▲0.02 | 34.81 ▼3.31 | 30.44 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.31 ▲0.27 | 711.17 ▲52.07 | 53.50 ▼11.77 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.03 | 97.27 ▼3.84 | 44.23 ▼0.62 |
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-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-product-disclaimer/includes/views/admin/wcpd-general-settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/woo-product-disclaimer/includes/views/admin/general/global-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/woo-product-disclaimer/includes/views/admin/general/sitewide-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/woo-product-disclaimer/includes/views/admin/wcpd-single-disclaimer-settings.php:5
- > 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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce disclaimer product, woocommerce disclaimer, disclaimer product, woocommerce product, disclaimer...
woo-product-disclaimer/product-disclaimer-woocommerce.php 77% from 13 tests
The main file in "Product Disclaimer For WooCommerce" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.5.0" instead of "3.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-product-disclaimer.php" instead of "product-disclaimer-woocommerce.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 detected3,660 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 386 | 175 | 1,630 |
PHP | 11 | 317 | 198 | 1,291 |
CSS | 2 | 11 | 11 | 732 |
SVG | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 42.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 6.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 14 | 38.89% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin