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.06MB] [CPU: ▼8.92ms] Passed 4 tests
A check of server-side resources used by Captain Countdown Clock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.59 ▼1.89 |
Dashboard /wp-admin | 3.36 ▲0.06 | 55.39 ▼4.28 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 49.37 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.32 ▼26.33 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 42.46 ▲7.11 |
Captain Countdown /wp-admin/options-general.php?page=captain-countdown-clock | 3.30 | 35.04 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
captain_countdown_version |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Captain Countdown Clock
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.83 ▼0.55 | 9.05 ▲7.21 | 41.72 ▼2.96 |
Dashboard /wp-admin | 2,205 ▲25 | 5.74 ▲0.17 | 92.18 ▼1.47 | 42.98 ▼3.34 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.44 ▲0.45 | 35.87 ▲0.57 | 33.82 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.59 ▼0.05 | 694.10 ▲7.73 | 67.96 ▲13.59 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.47 ▲0.19 | 110.99 ▲3.61 | 46.57 ▼0.78 |
Captain Countdown /wp-admin/options-general.php?page=captain-countdown-clock | 4,123 | 1.98 | 36.07 | 38.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- captain_countdown_version
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/captain-countdown-clock/includes/shortcode.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/captain-countdown-clock/includes/instructions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/captain-countdown-clock/captain-countdown-clock.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: countdown clock, clock, timer
captain-countdown-clock/captain-countdown-clock.php 85% from 13 tests
The main PHP file in "Captain Countdown Clock" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)
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
No dangerous file extensions were detected627 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 94 | 76 | 489 |
JavaScript | 2 | 21 | 5 | 94 |
CSS | 1 | 6 | 0 | 44 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 91.44KB | 19.94KB | ▼ 78.20% |
assets/screenshot-2.png | 38.33KB | 15.16KB | ▼ 60.44% |
assets/opacity.png | 0.18KB | 0.09KB | ▼ 46.67% |