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.13MB] [CPU: ▼3.59ms] Passed 4 tests
An overview of server-side resources used by Coming Soon Badge for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.83 ▼3.57 |
Dashboard /wp-admin | 3.43 ▲0.12 | 45.64 ▼7.38 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 47.57 ▲2.66 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.67 ▼3.06 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.42 ▼0.35 |
Coming Soon config /wp-admin/admin.php?page=coming-soon-wc-opts | 3.45 | 35.88 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
coming-soon-for-woocommerce |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Coming Soon Badge for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 13.93 ▼0.45 | 4.30 ▲2.37 | 37.06 ▼8.81 |
Dashboard /wp-admin | 2,208 ▲20 | 5.85 ▲0.97 | 99.22 ▼17.95 | 39.71 ▼8.37 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.04 ▼0.01 | 38.53 ▼0.60 | 32.02 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.46 ▲0.95 | 635.83 ▼37.50 | 69.39 ▲17.70 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.17 ▼0.06 | 104.47 ▲6.95 | 41.07 ▼3.74 |
Coming Soon config /wp-admin/admin.php?page=coming-soon-wc-opts | 1,890 | 3.66 | 81.69 | 83.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- coming-soon-for-woocommerce
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/coming-soon-for-woocommerce/inc/discover-fns.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant COMING_SOON_WC_URL - assumed 'COMING_SOON_WC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/coming-soon-for-woocommerce/inc/discover-fns.php on line 19
- > PHP Warning
Use of undefined constant COMING_SOON_WC_URL - assumed 'COMING_SOON_WC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/coming-soon-for-woocommerce/inc/discover-fns.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_options() on null in wp-content/plugins/coming-soon-for-woocommerce/inc/wizard.php:17
- > PHP Warning
Use of undefined constant COMING_SOON_WC_URL - assumed 'COMING_SOON_WC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/coming-soon-for-woocommerce/inc/discover-fns.php on line 20
- > PHP Warning
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: badge, product badge, woocommerce badge, coming soon
coming-soon-for-woocommerce/coming-soon-for-woocommerce.php 92% from 13 tests
The main PHP file in "Coming Soon Badge for WooCommerce" ver. 1.0.15 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "4.7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,381 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 286 | 302 | 966 |
JavaScript | 3 | 66 | 28 | 211 |
CSS | 1 | 16 | 7 | 199 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 55.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
9 PNG files occupy 0.33MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/coming_soon_1.png | 18.18KB | 6.58KB | ▼ 63.79% |
assets/img/coming_soon_3.png | 28.71KB | 9.87KB | ▼ 65.61% |
assets/img/product-demo.png | 76.05KB | 36.39KB | ▼ 52.16% |
assets/img/coming_soon_5.png | 59.16KB | 30.95KB | ▼ 47.68% |
assets/img/coming_soon_7.png | 29.29KB | 14.14KB | ▼ 51.73% |