Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.34ms] Passed 4 tests
This is a short check of server-side resources used by Countdown Timer Infinite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.33 ▼3.53 |
Dashboard /wp-admin | 3.55 ▲0.25 | 58.21 ▲4.22 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 54.55 ▲3.97 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 95.68 ▼5.34 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.46 ▼4.46 |
Countdown Timer Infinite /wp-admin/options-general.php?page=countdown_timer_cdt | 3.38 | 37.92 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cdt_inf_basics |
db_upgraded |
widget_recent-posts |
countdowncdt_timer_installed |
theysaidso_admin_options |
cdt_inf_color |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Countdown Timer Infinite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲298 | 15.07 ▲0.51 | 6.86 ▲5.07 | 42.19 ▼3.03 |
Dashboard /wp-admin | 2,355 ▲175 | 6.33 ▲0.80 | 106.91 ▲15.17 | 36.28 ▼6.60 |
Posts /wp-admin/edit.php | 2,286 ▲186 | 3.49 ▲1.45 | 54.17 ▲16.43 | 34.26 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.65 ▲0.42 | 629.68 ▼60.42 | 36.72 ▼29.30 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.40 ▲0.22 | 82.81 ▼16.08 | 43.85 ▼0.82 |
Countdown Timer Infinite /wp-admin/options-general.php?page=countdown_timer_cdt | 2,089 | 4.74 | 98.53 | 27.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- cdt_inf_basics
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- countdowncdt_timer_installed
- widget_theysaidso_widget
- cdt_inf_color
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/countdown-timer-infinite/includes/countdown-cdt-enqueue.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/countdown-timer-infinite/includes/functions.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/countdown-timer-infinite/includes/functions.php:90
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/countdown-timer-infinite/includes/class-countdown-final.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #4 is missing in countdown-timer-infinite/assets to your readme.txt
countdown-timer-infinite/countdown-timer-infinite.php 85% from 13 tests
This is the main PHP file of "Countdown Timer Infinite" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 154 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin1,962 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 333 | 374 | 1,314 |
JavaScript | 2 | 51 | 140 | 524 |
CSS | 2 | 12 | 10 | 105 |
JSON | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 81 | |
▷ Static methods | 16 | 19.75% |
▷ Public methods | 78 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.70% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.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