Benchmarks
Plugin footprint 65% 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: ▼1.08MB] [CPU: ▼334.03ms] Passed 4 tests
Analyzing server-side resources used by Wordpress Countdown Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.20 | 57.50 ▲4.11 |
Dashboard /wp-admin | 3.25 ▼0.16 | 22.71 ▼14.09 |
Posts /wp-admin/edit.php | 3.25 ▼0.39 | 17.71 ▼20.62 |
Add New Post /wp-admin/post-new.php | 3.25 ▼3.72 | 18.63 ▼1,294.08 |
Media Library /wp-admin/upload.php | 3.25 ▼0.04 | 23.05 ▼7.31 |
Countdown Widget /wp-admin/options-general.php?page=wp-countdown-widget | 3.26 | 21.24 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp_countdown_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Countdown Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,920 ▲176 | 16.36 ▲0.76 | 9.53 ▲3.03 | 2.37 ▲0.16 |
Dashboard /wp-admin | 2,902 ▲36 | 6.16 ▼0.04 | 124.30 ▼8.36 | 164.73 ▲0.59 |
Posts /wp-admin/edit.php | 2,714 ▲20 | 3.26 ▲0.03 | 72.26 ▲5.43 | 192.21 ▲44.41 |
Add New Post /wp-admin/post-new.php | 1,680 ▼72 | 15.88 ▼5.54 | 437.55 ▼6.23 | 159.60 ▲0.89 |
Media Library /wp-admin/upload.php | 1,722 ▲24 | 5.68 ▲0.15 | 144.67 ▲5.48 | 190.95 ▼36.59 |
Countdown Widget /wp-admin/options-general.php?page=wp-countdown-widget | 1,463 | 2.58 | 58.60 | 208.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wordpress-countdown-widget/countdown-widget.php+380
Undefined index: page
- Zombie WordPress options were found after uninstall: 1 option
- wp_countdown_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-countdown-widget
- > Notice in wp-content/plugins/wordpress-countdown-widget/countdown-widget.php+406
Undefined index: action
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wordpress-countdown-widget/countdown-options-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wordpress-countdown-widget/countdown-shortcodes.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wordpress-countdown-widget/countdown-options.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wordpress-countdown-widget/countdown-shortcodes.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Use options page to edit time span labels)
wordpress-countdown-widget/countdown-widget.php 77% from 13 tests
The primary PHP file in "Wordpress Countdown Widget" version 3.1.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 218 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wordpress-countdown-widget.php" instead of "countdown-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin845 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 202 | 39 | 685 |
Markdown | 2 | 36 | 0 | 103 |
CSS | 2 | 13 | 7 | 56 |
JavaScript | 1 | 0 | 6 | 1 |
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.31 |
Average class complexity | 76.00 |
▷ Minimum class complexity | 76.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 37.37KB | 20.04KB | ▼ 46.38% |
css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
screenshot-2.png | 11.92KB | 6.67KB | ▼ 44.00% |
screenshot-1.png | 37.82KB | 14.27KB | ▼ 62.27% |