84% simple-custom-countdown-timer

Code Review | Simple countdown timer

WordPress plugin Simple countdown timer scored84%from 54 tests.

About plugin

  • Plugin page: simple-custom-cou...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2016
  • Latest release: Apr 14, 2016
  • Number of updates: 7
  • Update frequency: every 42.6 days
  • Top authors: jaredshih (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,708 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.03MB] [CPU: ▼7.75ms] Passed 4 tests

Server-side resources used by Simple countdown timer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.79 ▼0.85
Dashboard /wp-admin3.35 ▼0.0049.65 ▼20.99
Posts /wp-admin/edit.php3.40 ▲0.0447.50 ▼4.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.28 ▼4.85
Media Library /wp-admin/upload.php3.27 ▲0.0435.74 ▼0.83

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple countdown timer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▲0.061.91 ▼0.0146.85 ▲5.94
Dashboard /wp-admin2,192 ▲125.54 ▼0.1287.13 ▼3.9538.97 ▼2.32
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0336.49 ▼4.1933.81 ▼4.37
Add New Post /wp-admin/post-new.php1,526 ▼823.60 ▲5.57696.35 ▲68.3663.50 ▼9.83
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.06103.67 ▼4.7945.63 ▼1.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_urj_countdown_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-custom-countdown-timer/simple-custom-countdown-timer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: timer, countdown

simple-custom-countdown-timer/simple-custom-countdown-timer.php Passed 13 tests

The entry point to "Simple countdown timer" version 1.0 is a PHP file that has certain tags in its header comment area
20 characters long description:
URJ Countdown Widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,006 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32122881,720
CSS339491,132
PHP11711154

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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
14 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.26KB0.11KB▼ 56.06%
css/images/ui-icons_cd0a0a_256x240.png4.49KB4.20KB▼ 6.46%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.31KB0.18KB▼ 39.81%
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.38KB0.15KB▼ 59.69%
css/images/ui-icons_454545_256x240.png6.81KB4.20KB▼ 38.28%