83% jquery-t-countdown-widget

Code Review | jQuery T(-) Countdown Widget

WordPress plugin jQuery T(-) Countdown Widget scored83%from 54 tests.

About plugin

  • Plugin page: jquery-t-countdow...
  • Plugin version: 2.3.25
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2010
  • Latest release: Nov 30, 2023
  • Number of updates: 177
  • Update frequency: every 27.2 days
  • Top authors: baden03 (100%)

Code review

54 tests

User reviews

87 reviews

Install metrics

8,000+ active /620,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼17.49ms] Passed 4 tests

This is a short check of server-side resources used by jQuery T(-) Countdown Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1936.03 ▼7.38
Dashboard /wp-admin3.49 ▲0.1444.90 ▼15.09
Posts /wp-admin/edit.php3.60 ▲0.2447.89 ▼0.46
Add New Post /wp-admin/post-new.php6.07 ▲0.1891.48 ▼47.01
Media Library /wp-admin/upload.php3.41 ▲0.1834.35 ▲2.62
jQuery T(-) Countdown Widget /wp-admin/options-general.php?page=t-countdown3.3832.03

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_countdowntimer

Browser metrics Passed 4 tests

Checking browser requirements for jQuery T(-) Countdown Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲15813.78 ▼0.508.48 ▲6.6838.51 ▼7.72
Dashboard /wp-admin2,199 ▲225.62 ▼0.0092.33 ▲0.3140.23 ▲2.07
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0339.07 ▼2.7537.33 ▲1.15
Add New Post /wp-admin/post-new.php1,529 ▼1620.97 ▼4.34653.85 ▲39.8357.61 ▼5.16
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.0493.61 ▼0.0441.01 ▼0.98
jQuery T(-) Countdown Widget /wp-admin/options-general.php?page=t-countdown1,0712.0031.4328.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_countdowntimer
    • widget_recent-posts

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)
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jquery-t-countdown-widget/countdown-timer.php:374

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6 in jquery-t-countdown-widget/assets to your readme.txt
You can take inspiration from this readme.txt

jquery-t-countdown-widget/countdown-timer.php 92% from 13 tests

This is the main PHP file of "jQuery T(-) Countdown Widget" version 2.3.25, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("jquery-t-countdown-widget.php" instead of "countdown-timer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,026 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS1597341,023
PHP111180812
JavaScript34184191

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity32.00
▷ Minimum class complexity19.00
▷ Maximum class complexity45.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/jedi/images/light_bg_dash.png1.62KB1.86KB0.00%
css/darth/images/dark_bg_dash.png0.64KB0.51KB▼ 20.09%
css/carbonite/images/bg_trip_dash.png1.00KB1.15KB0.00%
css/carbonite-responsive/images/bg_carbon.png1.02KB0.18KB▼ 81.98%
admin/images/arrow-down.png0.45KB0.30KB▼ 32.46%