83% display-multiple-countdown

Code Review | Display Multiple Countdown

WordPress plugin Display Multiple Countdown scored83%from 54 tests.

About plugin

  • Plugin page: display-multiple-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Dec 2, 2021
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: charlestsmith (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.34ms] Passed 4 tests

An overview of server-side resources used by Display Multiple Countdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.25 ▼2.47
Dashboard /wp-admin3.33 ▲0.0258.04 ▲3.49
Posts /wp-admin/edit.php3.38 ▲0.0251.15 ▲1.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.99 ▼2.77
Media Library /wp-admin/upload.php3.25 ▲0.0238.06 ▲2.17
Multi CountDown /wp-admin/tools.php?page=JCDC_add_menu_page3.2331.78

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Display Multiple Countdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▼0.022.26 ▲0.6044.73 ▼1.05
Dashboard /wp-admin2,199 ▲225.62 ▲0.0588.21 ▼9.1043.50 ▲0.76
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0135.04 ▼0.0433.05 ▼4.41
Add New Post /wp-admin/post-new.php1,531 ▲523.17 ▼0.37688.59 ▼29.3958.13 ▼5.35
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.0497.79 ▼7.7944.08 ▼3.53
Multi CountDown /wp-admin/tools.php?page=JCDC_add_menu_page2,3832.1644.3942.24

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/display-multiple-countdown/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: multipal countdown in a page, countdown in post, multipal countdown, countdown

display-multiple-countdown/index.php 85% from 13 tests

"Display Multiple Countdown" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("display-multiple-countdown.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected215 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43518157
CSS15050
JavaScript12218

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.00
▷ Minimum class complexity7.00
▷ Maximum class complexity9.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.26MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png70.91KB34.96KB▼ 50.69%
(invalid) assets/icon-128x128.png8.14KB0.00KB▼ 100.00%
assets/screenshot-3.png19.03KB8.80KB▼ 53.76%
(invalid) assets/icon-256x256.png16.63KB0.00KB▼ 100.00%
(invalid) assets/banner-1544X500.png54.97KB0.00KB▼ 100.00%