Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼8.06ms] Passed 4 tests
Server-side resources used by CTC Countdown Timer Cookies
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.38 ▲0.83 |
Dashboard /wp-admin | 3.41 ▲0.11 | 42.58 ▼4.88 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 52.09 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 75.37 ▼27.36 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 33.35 ▼0.83 |
Countdown List /wp-admin/edit.php?post_type=ctc_countdown | 3.38 | 34.52 |
Add Countdown /wp-admin/post-new.php?post_type=ctc_countdown | 3.38 | 41.07 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by CTC Countdown Timer Cookies
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 14.47 ▲0.05 | 1.63 ▼0.31 | 40.25 ▲0.47 |
Dashboard /wp-admin | 2,233 ▲45 | 4.84 ▼0.04 | 116.24 ▲10.77 | 44.90 ▲1.44 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 1.99 ▲0.01 | 41.37 ▲1.48 | 34.91 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.12 ▲5.67 | 608.93 ▲21.35 | 58.94 ▲11.12 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.22 ▲0.10 | 99.17 ▼7.32 | 40.78 ▼6.12 |
Countdown List /wp-admin/edit.php?post_type=ctc_countdown | 1,089 | 1.95 | 35.48 | 31.07 |
Add Countdown /wp-admin/post-new.php?post_type=ctc_countdown | 1,576 | 2.57 | 50.30 | 54.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ctc-countdown-timer-cookies/admin/partials/ctc-countdown-timer-cookies-admin-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ctc-countdown-timer-cookies/public/partials/ctc-countdown-timer-cookies-public-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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: Add a description for screenshot #3 in ctc-countdown-timer-cookies/assets to your readme.txt
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
ctc-countdown-timer-cookies/ctc-countdown-timer-cookies.php Passed 13 tests
This is the main PHP file of "CTC Countdown Timer Cookies" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin536 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 156 | 608 | 384 |
JavaScript | 3 | 24 | 4 | 65 |
PO File | 1 | 16 | 18 | 51 |
CSS | 3 | 11 | 12 | 36 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 84.11KB | 24.04KB | ▼ 71.41% |
assets/screenshot-2.png | 114.77KB | 31.15KB | ▼ 72.86% |
assets/screenshot-3.png | 19.03KB | 6.19KB | ▼ 67.46% |