Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/countdown-clock/countdown-clock.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; countdown_clock has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼52.11ms] Passed 4 tests
This is a short check of server-side resources used by Countdown Clock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.37 ▼35.76 |
Dashboard /wp-admin | 2.29 ▼1.01 | 9.96 ▼48.89 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 9.91 ▼45.15 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 12.13 ▼78.63 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.68 ▼26.30 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_countdown_clock |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Countdown Clock: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.03 | 1.75 ▼0.05 | 42.66 ▼5.50 |
Dashboard /wp-admin | 2,195 ▲21 | 5.65 ▲0.06 | 96.03 ▼5.39 | 40.08 ▼4.90 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.99 ▲0.03 | 37.54 ▲1.88 | 33.13 ▼4.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.94 ▼0.32 | 650.87 ▼31.12 | 61.25 ▲1.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.01 | 110.21 ▼9.80 | 46.40 ▼5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in countdown_clock is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_countdown_clock
- can_compress_scripts
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× 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-clock/countdown-clock.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Compact layout), #2 (Horizontal layout), #3 (Vertical layout with animation), #4 (Compact layout with animation), #5 (Square layout with animation), #6 (Vertical Large layout with animation), #7 (Fireworks), #8 (Admin Panel), #9 (Summer countdown), #10 (Olympics countdown)
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
countdown-clock/countdown-clock.php 92% from 13 tests
The main PHP script in "Countdown Clock" version 1.4 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)
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
Everything looks great! No dangerous files found in this plugin560 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 219 | 100 | 560 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 10.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
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