83% delivery-countdown-timer

Code Review | Delivery Countdown Timer

WordPress plugin Delivery Countdown Timer scored 83% from 54 tests.

About plugin

  • Plugin page: delivery-countdow...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Jun 3, 2016
  • Number of updates: 7
  • Update frequency: every 28.4 days
  • Top authors: aruljayarajs (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 6,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.43ms] Passed 4 tests

This is a short check of server-side resources used by Delivery Countdown Timer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.44 ▲1.42
Dashboard /wp-admin3.40 ▲0.0948.19 ▲1.19
Posts /wp-admin/edit.php3.45 ▲0.0948.56 ▲1.33
Add New Post /wp-admin/post-new.php5.98 ▲0.0997.51 ▼13.66
Media Library /wp-admin/upload.php3.32 ▲0.0938.30 ▲2.66
Countdown Timer /wp-admin/options-general.php?page=countdown-timer3.2832.72

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
ct_settings
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Delivery Countdown Timer: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.57 ▼0.995.80 ▲4.0140.68 ▼0.17
Dashboard /wp-admin2,210 ▲284.89 ▼0.0997.63 ▼6.6839.97 ▼4.00
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0039.85 ▼1.0434.63 ▼1.75
Add New Post /wp-admin/post-new.php1,536 ▲823.45 ▲0.25628.45 ▼8.3051.24 ▼1.10
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.0295.05 ▼7.9842.20 ▼2.81
Countdown Timer /wp-admin/options-general.php?page=countdown-timer1,2272.0323.4927.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/delivery-countdown-timer/countdown-timer.php:10

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

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

delivery-countdown-timer/countdown-timer.php 92% from 13 tests

The entry point to "Delivery Countdown Timer" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("delivery-countdown-timer.php" instead of "countdown-timer.php")

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
No dangerous file extensions were detected394 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43231348
CSS15145
JavaScript1461

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity7.08
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin