94% wpstudio-countdown

Code Review | Genesis Countdown

WordPress plugin Genesis Countdown scored 94% from 54 tests.

About plugin

  • Plugin page: wpstudio-countdown
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2.2
  • WordPress version: 5.9.2
  • First release: Feb 18, 2017
  • Latest release: Jun 20, 2019
  • Number of updates: 17
  • Update frequency: every 50.1 days
  • Top authors: frankschrijvers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,612 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼298.20ms] Passed 4 tests

A check of server-side resources used by Genesis Countdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0448.61 ▼2.44
Dashboard /wp-admin3.41 ▲0.0132.96 ▼2.89
Posts /wp-admin/edit.php3.65 ▲0.0136.59 ▼0.55
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.08 ▼1,183.29
Media Library /wp-admin/upload.php3.30 ▲0.0124.07 ▼4.19

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Countdown
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,196 ▼54815.87 ▲0.090.33 ▼5.9831.98 ▲29.83
Dashboard /wp-admin2,903 ▲456.41 ▲0.25119.92 ▼11.49153.99 ▼9.10
Posts /wp-admin/edit.php2,703 ▲183.27 ▲0.0364.88 ▲1.81145.62 ▲1.93
Add New Post /wp-admin/post-new.php1,702 ▼7119.75 ▼2.34400.01 ▼64.29152.26 ▼14.81
Media Library /wp-admin/upload.php1,705 ▲45.61 ▲0.10139.92 ▼8.44188.58 ▲4.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpstudio-countdown/inc/gcd-frontend.php
    • > /wp-content/plugins/wpstudio-countdown/inc/class-gcd-settings.php
    • > /wp-content/plugins/wpstudio-countdown/inc/class-gcd-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Countdown plugin integrated in theme), #2 (Countdown plugin default styling), #3 (Countdown plugin admin panel)
The official readme.txt is a good inspiration

wpstudio-countdown/genesis-countdown.php 92% from 13 tests

The main PHP file in "Genesis Countdown" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wpstudio-countdown.php" instead of "genesis-countdown.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 plugin847 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS24266433
JavaScript3042220
PHP580136194

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions6
▷ Named functions6100.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