83% t-countdown

Code Review | T(-) Countdown

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

About plugin

  • Plugin page: t-countdown
  • Plugin version: 2.4.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9+
  • WordPress version: 6.3.1
  • First release: Jul 14, 2019
  • Latest release: Oct 13, 2021
  • Number of updates: 28
  • Update frequency: every 29.5 days
  • Top authors: twinpictures (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /20,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by T(-) Countdown
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1840.50 ▲0.12
Dashboard /wp-admin3.48 ▲0.1346.87 ▼13.04
Posts /wp-admin/edit.php3.59 ▲0.2470.57 ▲13.93
Add New Post /wp-admin/post-new.php6.07 ▲0.1990.26 ▼17.16
Media Library /wp-admin/upload.php3.40 ▲0.1734.21 ▼4.19
T(-) Countdown /wp-admin/options-general.php?page=t-countdown3.3730.56

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

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

Browser metrics Passed 4 tests

T(-) Countdown: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲14213.59 ▼1.025.21 ▲3.3039.98 ▼3.49
Dashboard /wp-admin2,210 ▲254.84 ▼1.16108.41 ▼7.4540.45 ▼6.90
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0639.44 ▲3.6635.51 ▲3.09
Add New Post /wp-admin/post-new.php6,210 ▲4,69126.28 ▲3.16868.81 ▲202.4938.12 ▼18.09
Media Library /wp-admin/upload.php1,392 ▲14.29 ▲0.0694.91 ▼5.1841.50 ▼2.43
T(-) Countdown /wp-admin/options-general.php?page=t-countdown1,1642.2024.3733.55

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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 fix the following items
  • 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/t-countdown/t-countdown.php:528

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tested up to: Invalid plugin version format
  • Screenshots: No descriptions were found for these screenshots #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in t-countdown/assets to your readme.txt
  • Tags: There are too many tags (16 tag instead of maximum 10)
You can take inspiration from this readme.txt

t-countdown/t-countdown.php Passed 13 tests

"T(-) Countdown" version 2.4.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
Display and configure multiple countdown timers in years, months, weeks, days, hours and seconds in a number of different styles.

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
There were no executable files found in this plugin2,206 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS147430819
PHP112076785
JavaScript310094562
Markdown19040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/carbonite-responsive/images/bg_carbon.png1.02KB0.18KB▼ 81.98%
css/carbonlite/images/bg_countdown.png4.26KB2.60KB▼ 38.93%
css/carbonite/images/bg_countdown.png6.10KB4.28KB▼ 29.72%