74% tvshowtime-countdown

Code Review | TVST Countdown

WordPress plugin TVST Countdown scored74%from 54 tests.

About plugin

  • Plugin page: tvshowtime-countdown
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Apr 26, 2013
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: Toze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /865 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.60MB] [CPU: ▼54.10ms] Passed 4 tests

An overview of server-side resources used by TVST Countdown
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.41 ▼1.0510.27 ▼33.81
Dashboard /wp-admin2.42 ▼0.9211.90 ▼54.94
Posts /wp-admin/edit.php2.42 ▼0.9311.57 ▼42.04
Add New Post /wp-admin/post-new.php2.42 ▼3.4713.06 ▼85.62
Media Library /wp-admin/upload.php2.42 ▼0.8110.87 ▼26.15

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_tvst-countdown
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for TVST Countdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.64 ▼0.614.62 ▲2.7344.88 ▲0.01
Dashboard /wp-admin2,226 ▲205.87 ▼0.03101.99 ▼4.6836.98 ▼2.40
Posts /wp-admin/edit.php2,099 ▼12.02 ▼0.0336.34 ▼0.9936.43 ▲0.27
Add New Post /wp-admin/post-new.php1,542 ▲1123.33 ▲0.05661.68 ▼41.3454.98 ▼12.96
Media Library /wp-admin/upload.php1,405 ▲54.22 ▲0.04103.42 ▼0.8747.06 ▲0.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in TVST_Countdown_Pro_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_tvst-countdown
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tvshowtime-countdown/index.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tvshowtime-countdown/tvst-countdown-widget.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tvshowtime-countdown/tvst-countdown.php:55

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 96% from 29 tests

readme.txt Passed 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
5 plugin tags: tv show, tvshowtime, counter, count, countdown

tvshowtime-countdown/index.php 92% from 13 tests

The entry point to "TVST Countdown" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tvshowtime-countdown.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected409 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP379107229
JavaScript13523101
CSS119479

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo16.png2.60KB1.10KB▼ 57.59%