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.00MB] [CPU: ▼2.47ms] Passed 4 tests
This is a short check of server-side resources used by Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.89 ▼4.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.58 ▼7.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.19 ▲0.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 100.85 ▲7.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.81 ▲1.68 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.30 ▼0.00 | 2.44 ▲0.37 | 40.79 ▼5.84 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.03 | 91.48 ▼1.80 | 42.46 ▼3.67 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▼0.01 | 41.09 ▲5.64 | 34.65 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.61 ▼5.61 | 677.52 ▼17.77 | 55.09 ▼6.27 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.08 | 101.46 ▼3.45 | 46.36 ▲1.80 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/subscribe-settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-backend.php:17
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-badge.php:18
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-quick-bulk-edits.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/email-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-frontend.php:18
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-shortcode.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/general-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/badge-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/countdown-settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in coming-soon-products-for-woocommerce/assets to your readme.txt
coming-soon-products-for-woocommerce/gpls-wcsamm-woo-coming-soon-products-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown" v. 1.1.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coming-soon-products-for-woocommerce.php" instead of "gpls-wcsamm-woo-coming-soon-products-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,709 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 554 | 1,255 | 3,680 |
XML | 1 | 0 | 0 | 10 |
CSS | 7 | 0 | 5 | 7 |
JavaScript | 7 | 0 | 16 | 7 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 28.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 58 | 32.77% |
▷ Public methods | 139 | 78.53% |
▷ Protected methods | 7 | 3.95% |
▷ Private methods | 31 | 17.51% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
23 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/coming-soon-icon-1.png | 5.99KB | 3.07KB | ▼ 48.78% |
assets/images/coming-soon-icon-10.png | 1.42KB | 1.56KB | 0.00% |
core/assets/images/woo-cart-limiter.png | 17.63KB | 7.17KB | ▼ 59.36% |
core/assets/dist/images/logo-icon-lg.png | 3.56KB | 2.72KB | ▼ 23.62% |
assets/images/coming-soon-icon-2.png | 3.01KB | 2.44KB | ▼ 19.09% |