10% countdown-timer-abt

Code Review | Countdown Timer

WordPress plugin Countdown Timer scored10%from 54 tests.

About plugin

  • Plugin page: countdown-timer-abt
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 6.3.1
  • First release: Feb 22, 2012
  • Latest release: Feb 22, 2012
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,966 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php+341
    Non-static method ABT_Countdown_Timer::singleton() should not be called statically

Server metrics [RAM: ▼1.84MB] [CPU: ▼53.69ms] Passed 4 tests

An overview of server-side resources used by Countdown Timer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.22 ▼37.52
Dashboard /wp-admin2.17 ▼1.146.65 ▼46.48
Posts /wp-admin/edit.php2.17 ▼1.195.25 ▼43.57
Add New Post /wp-admin/post-new.php2.17 ▼3.725.44 ▼87.17
Media Library /wp-admin/upload.php2.17 ▼1.066.93 ▼25.23
Countdown /wp-admin/admin.php?page=abt_countdown_timer_options2.176.07
Help & Support /wp-admin/admin.php?page=abt_countdown_timer_help2.177.04

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
abt_countdown_timer_options
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Countdown Timer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.30 ▼0.031.81 ▼0.0546.95 ▲2.98
Dashboard /wp-admin2,221 ▲415.54 ▼0.1788.34 ▼2.9188.13 ▲48.56
Posts /wp-admin/edit.php2,132 ▲291.98 ▼0.0336.00 ▼6.4334.60 ▼2.07
Add New Post /wp-admin/post-new.php1,701 ▲15622.52 ▼0.56655.68 ▼54.9946.74 ▼12.24
Media Library /wp-admin/upload.php1,423 ▲204.27 ▼0.00100.17 ▼2.8478.25 ▲36.32
Countdown /wp-admin/admin.php?page=abt_countdown_timer_options9512.0227.5237.17
Help & Support /wp-admin/admin.php?page=abt_countdown_timer_help1,0442.0122.3032.15

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
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php+341
    Non-static method ABT_Countdown_Timer::singleton() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=abt_countdown_timer_help
    • > Deprecated in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php+341
    Non-static method ABT_Countdown_Timer::singleton() should not be called statically

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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/countdown-timer-abt/countdown-timer-abt.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/countdown-timer-abt/options.php:45
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/countdown-timer-abt/help.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Admin options page with templates, placeholders), #2 (Usage example - note that "explicit" options use single-quotes to allow double-quotes in HTML), #3 (Output example - with Firebug showing HTML)
The official readme.txt might help

countdown-timer-abt/countdown-timer-abt.php Passed 13 tests

The main PHP script in "Countdown Timer" version 0.7 is automatically included on every request by WordPress
33 characters long description:
Provides a simple countdown timer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin450 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3145205450

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png29.91KB14.65KB▼ 51.04%
i_admin-icon.png0.90KB0.97KB0.00%
screenshot-2.png18.57KB10.29KB▼ 44.58%
screenshot-1.png51.06KB28.98KB▼ 43.24%