10% countdown-clock-timer

Code Review | Countdown Clock Timer

WordPress plugin Countdown Clock Timer scored10%from 54 tests.

About plugin

  • Plugin page: countdown-clock-t...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 15, 2013
  • Latest release: Oct 19, 2013
  • Number of updates: 11
  • Update frequency: every 25.2 days
  • Top authors: luisperezphd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /11,888 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/countdown-clock-timer/MyPlugIn.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; CountdownWidget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.73ms] Passed 4 tests

Analyzing server-side resources used by Countdown Clock Timer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.384.48 ▼36.99
Dashboard /wp-admin2.09 ▼1.216.13 ▼40.87
Posts /wp-admin/edit.php2.10 ▼1.266.69 ▼40.93
Add New Post /wp-admin/post-new.php2.10 ▼3.796.07 ▼96.12
Media Library /wp-admin/upload.php2.10 ▼1.135.26 ▼27.67

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
widget_countdownwidget

Browser metrics Passed 4 tests

Checking browser requirements for Countdown Clock Timer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.44 ▼0.141.79 ▼0.4843.43 ▼7.29
Dashboard /wp-admin2,203 ▲125.91 ▲1.03108.95 ▼0.4739.65 ▼5.95
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0141.36 ▲1.9936.65 ▼2.81
Add New Post /wp-admin/post-new.php1,537 ▲423.14 ▲0.11673.47 ▲94.8054.23 ▼16.10
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.22103.10 ▲6.2545.88 ▲2.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/countdown-clock-timer/MyPlugIn.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; CountdownWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_countdownwidget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/countdown-clock-timer/MyPlugIn.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

countdown-clock-timer/MyPlugIn.php 92% from 13 tests

The main PHP script in "Countdown Clock Timer" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("countdown-clock-timer.php" instead of "MyPlugIn.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin80 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP119880

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin