89% countdown-timer-ultimate

Code Review | Countdown Timer Ultimate

WordPress plugin Countdown Timer Ultimate scored89%from 54 tests.

About plugin

  • Plugin page: countdown-timer-u...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 94
  • Update frequency: every 27.8 days
  • Top authors: wponlinesupport (54.26%)anoopranawat (46.81%)

Code review

54 tests

User reviews

35 reviews

Install metrics

20,000+ active /551,620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼3.12ms] Passed 4 tests

Analyzing server-side resources used by Countdown Timer Ultimate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3235.60 ▼6.36
Dashboard /wp-admin3.62 ▲0.3150.26 ▼2.87
Posts /wp-admin/edit.php3.73 ▲0.3850.10 ▲2.49
Add New Post /wp-admin/post-new.php6.22 ▲0.3494.01 ▼5.58
Media Library /wp-admin/upload.php3.54 ▲0.3135.82 ▲2.35

Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
wpos_anylc_site_uid
theysaidso_admin_options
widget_recent-posts
db_upgraded
wpos_anylc_redirect
wpcdt_free_plugin_version
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Countdown Timer Ultimate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,569 ▼1,17813.41 ▼1.351.58 ▲0.0417.17 ▼27.36
Dashboard /wp-admin2,221 ▲445.52 ▼0.10100.69 ▲4.2951.64 ▲5.29
Posts /wp-admin/edit.php2,125 ▲252.03 ▲0.0740.28 ▲2.5534.64 ▼3.43
Add New Post /wp-admin/post-new.php1,549 ▲2323.41 ▼0.21640.80 ▼52.1732.40 ▼27.59
Media Library /wp-admin/upload.php1,416 ▲254.22 ▲0.0597.66 ▼2.2939.79 ▼2.91

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
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-comments
    • wpos_anylc_site_uid
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • wpos_anylc_redirect
    • wpcdt_free_plugin_version
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

countdown-timer-ultimate/countdown-timer.php 92% from 13 tests

The principal PHP file in "Countdown Timer Ultimate" v. 2.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("countdown-timer-ultimate.php" instead of "countdown-timer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected5,469 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP296741,0583,034
JavaScript72081121,100
PO File2280316671
CSS45451664

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.80
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods35
▷ Static methods12.86%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.59MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/SlidersPack-50.png6.48KB2.79KB▼ 56.91%
assets/images/popup-icon/14-days-money-back-guarantee.png30.03KB8.44KB▼ 71.91%
assets/images/utility-50.png1.64KB0.82KB▼ 50.30%
assets/images/divi-icon.png8.15KB3.14KB▼ 61.44%
assets/images/vc-icon.png5.24KB1.92KB▼ 63.42%