Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.42ms] Passed 4 tests
Analyzing server-side resources used by Countdown WooCommerce Sale
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.52 ▲2.79 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.04 ▲0.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 39.74 ▼10.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.74 ▼8.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.26 ▼2.25 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
countdown_woocommerce_sale |
Browser metrics Passed 4 tests
Countdown WooCommerce Sale: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.81 ▼0.54 | 9.50 ▲7.87 | 43.96 ▲3.62 |
Dashboard /wp-admin | 2,198 ▲21 | 5.51 ▼0.09 | 84.12 ▼2.12 | 37.71 ▼9.53 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▼0.14 | 34.57 ▼4.02 | 31.33 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.36 ▲0.16 | 590.22 ▼75.76 | 57.38 ▼9.14 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.01 | 95.26 ▼0.77 | 41.98 ▲0.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-woocommerce-sale/lib/class-countdownwoocommercesaleadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-woocommerce-sale/lib/class-countdownwoocommercesale.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-woocommerce-sale/lib/class-countdownwoocommercesaleadmin.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: countdown, product, woocommerce, sale
countdown-woocommerce-sale/countdownwoocommercesale.php 85% from 13 tests
The main PHP script in "Countdown WooCommerce Sale" version 1.17 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("countdown-woocommerce-sale.php" instead of "countdownwoocommercesale.php")
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
No dangerous file extensions were detected624 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 78 | 165 | 338 |
JavaScript | 3 | 57 | 246 | 286 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin