83% wp-content-countdown

Code Review | Content countdown

WordPress plugin Content countdown scored83%from 54 tests.

About plugin

  • Plugin page: wp-content-countdown
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-5.3.2
  • WordPress version: 6.3.1
  • First release: May 28, 2019
  • Latest release: May 13, 2020
  • Number of updates: 27
  • Update frequency: every 13.0 days
  • Top authors: desparza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 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.01MB] [CPU: ▼4.79ms] Passed 4 tests

Analyzing server-side resources used by Content countdown
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.15 ▼4.74
Dashboard /wp-admin3.31 ▲0.0142.95 ▼6.37
Posts /wp-admin/edit.php3.36 ▲0.0145.70 ▼3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.50 ▼4.33
Media Library /wp-admin/upload.php3.23 ▲0.0133.13 ▲1.04
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu3.2032.36
Content countdown /wp-admin/admin.php?page=wp-content-countdown-settings3.2026.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Content countdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.64 ▼0.745.97 ▲4.1240.34 ▼11.59
Dashboard /wp-admin2,234 ▲525.00 ▲0.10109.97 ▲7.2649.31 ▲4.17
Posts /wp-admin/edit.php2,114 ▲252.04 ▲0.0439.20 ▲0.7337.54 ▲1.94
Add New Post /wp-admin/post-new.php1,535 ▲2117.62 ▲0.06658.03 ▼15.0259.11 ▲5.94
Media Library /wp-admin/upload.php1,416 ▲284.20 ▼0.0294.80 ▼4.5151.01 ▲7.37
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu8022.0624.2928.51
Content countdown /wp-admin/admin.php?page=wp-content-countdown-settings8002.0523.2327.66

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 output text when accessed directly:
    • > /wp-content/plugins/wp-content-countdown/wp-content-countdown.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires php: Invalid plugin version format
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-content-countdown/wp-content-countdown.php 92% from 13 tests

The primary PHP file in "Content countdown" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 219 characters long)

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
There were no executable files found in this plugin243 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2354143
PHP2212799
JavaScript1061

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin