Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.99ms] Passed 4 tests
A check of server-side resources used by Ims Countdown
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.72 ▲4.34 |
Dashboard /wp-admin | 3.43 ▲0.08 | 48.71 ▼14.96 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 51.66 ▼3.16 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 86.48 ▼17.12 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.40 ▲3.27 |
Settings /wp-admin/edit.php?post_type=ims_countdown&page=imsc_countdown_settings | 3.32 | 34.57 |
All Countdowns /wp-admin/edit.php?post_type=ims_countdown | 3.39 | 39.62 |
Add New /wp-admin/post-new.php?post_type=ims_countdown | 3.48 | 50.61 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
imsc_timezone |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Ims Countdown
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲123 | 14.49 ▲0.11 | 3.61 ▲1.96 | 42.41 ▼2.97 |
Dashboard /wp-admin | 2,249 ▲46 | 5.79 ▼0.05 | 98.84 ▼11.31 | 40.98 ▼8.39 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.00 ▼0.03 | 36.37 ▼0.83 | 36.40 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,571 ▲40 | 23.07 ▼0.04 | 733.06 ▲78.84 | 57.90 ▲3.87 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.31 ▲0.11 | 99.67 ▼3.79 | 47.40 ▲5.90 |
Settings /wp-admin/edit.php?post_type=ims_countdown&page=imsc_countdown_settings | 1,408 | 2.03 | 26.47 | 27.39 |
All Countdowns /wp-admin/edit.php?post_type=ims_countdown | 1,100 | 1.93 | 30.75 | 31.71 |
Add New /wp-admin/post-new.php?post_type=ims_countdown | 3,957 | 9.57 | 213.20 | 85.81 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- imsc_timezone
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ims-countdown/shortcode/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ims-countdown/admin_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ims-countdown/imsCountdown.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ims-countdown/custom_fields.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (24 tag instead of maximum 10)
ims-countdown/imsCountdown.php 92% from 13 tests
The main file in "Ims Countdown" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ims-countdown.php" instead of "imsCountdown.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin13,280 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 8,796 |
JavaScript | 5 | 409 | 579 | 2,610 |
CSS | 8 | 134 | 57 | 1,144 |
PHP | 5 | 131 | 68 | 730 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.30 |
▷ 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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 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 | 3 | |
▷ Global constants | 3 | 100.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
PNG images were not found in this plugin