Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cssable-countdown/CSSable-Countdown.php+88
Methods with the same name as their class will not be constructors in a future version of PHP; CSSable_Countdown_Widget has a deprecated constructor
Server metrics [RAM: ▼7.85MB] [CPU: ▼1,191,900.59ms] Passed 4 tests
A check of server-side resources used by CSSable Countdown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.41 | 4.83 ▼39.85 |
Dashboard /wp-admin | 2.12 ▼24.88 | 6.12 ▼4,767,423.57 |
Posts /wp-admin/edit.php | 2.12 ▼1.28 | 7.23 ▼47.02 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.81 | 6.52 ▼91.93 |
Media Library /wp-admin/upload.php | 2.12 ▼1.16 | 5.17 ▼30.19 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_cssable-countdown |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
cssable-countdown_version |
can_compress_scripts |
Browser metrics Passed 4 tests
CSSable Countdown: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.85 ▼0.71 | 10.37 ▲8.85 | 41.83 ▲1.13 |
Dashboard /wp-admin | 2,197 ▲20 | 5.56 ▼0.11 | 91.15 ▼2.23 | 41.51 ▲0.27 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 2.02 ▲0.07 | 37.09 ▼4.77 | 35.30 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.21 ▼4.97 | 628.48 ▼73.73 | 64.75 ▲10.89 |
Media Library /wp-admin/upload.php | 1,396 ▼1 | 4.24 ▲0.03 | 98.57 ▼3.68 | 42.61 ▼4.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/cssable-countdown/CSSable-Countdown.php+88
Methods with the same name as their class will not be constructors in a future version of PHP; CSSable_Countdown_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- widget_cssable-countdown
- theysaidso_admin_options
- widget_theysaidso_widget
- cssable-countdown_version
- 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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cssable-countdown/includes/shortcode.php:124
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cssable-countdown/includes/widget.php on line 5
- > PHP Notice
Undefined variable: widget_options in wp-content/plugins/cssable-countdown/includes/widget.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cssable-countdown/includes/widget.php on line 8
- > PHP Notice
Undefined variable: widget_options in wp-content/plugins/cssable-countdown/includes/widget.php on line 8
- > PHP Warning
array_push() expects parameter 1 to be array, null given in wp-content/plugins/cssable-countdown/includes/widget.php on line 35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cssable-countdown/includes/widget.php on line 3
- > PHP Notice
Undefined variable: widget_options in wp-content/plugins/cssable-countdown/includes/widget.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function build_countdown_args() in wp-content/plugins/cssable-countdown/includes/widget.php:49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cssable-countdown/includes/widget.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
3 plugin tags: timer, css, countdown
cssable-countdown/CSSable-Countdown.php 92% from 13 tests
The entry point to "CSSable Countdown" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("cssable-countdown.php" instead of "CSSable-Countdown.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,220 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 52 | 41 | 314 | 1,149 |
PHP | 10 | 223 | 187 | 941 |
CSS | 4 | 27 | 22 | 130 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected