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
- Install procedure had errors
- > Deprecated in wp-content/plugins/countdown-clock-timer/MyPlugIn.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CountdownWidget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.73ms] Passed 4 tests
Analyzing server-side resources used by Countdown Clock Timer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.38 | 4.48 ▼36.99 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.13 ▼40.87 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.69 ▼40.93 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.07 ▼96.12 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.26 ▼27.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_countdownwidget |
Browser metrics Passed 4 tests
Checking browser requirements for Countdown Clock Timer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 14.44 ▼0.14 | 1.79 ▼0.48 | 43.43 ▼7.29 |
Dashboard /wp-admin | 2,203 ▲12 | 5.91 ▲1.03 | 108.95 ▼0.47 | 39.65 ▼5.95 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.01 | 41.36 ▲1.99 | 36.65 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.14 ▲0.11 | 673.47 ▲94.80 | 54.23 ▼16.10 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.22 | 103.10 ▲6.25 | 45.88 ▲2.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/countdown-clock-timer/MyPlugIn.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CountdownWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_countdownwidget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/countdown-clock-timer/MyPlugIn.php:12
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid url: ""
countdown-clock-timer/MyPlugIn.php 92% from 13 tests
The main PHP script in "Countdown Clock Timer" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("countdown-clock-timer.php" instead of "MyPlugIn.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin80 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 8 | 80 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin