89% halloween-countdown

Code Review | Halloween Countdown

WordPress plugin Halloween Countdown scored89%from 54 tests.

About plugin

  • Plugin page: halloween-countdown
  • Plugin version: 2024...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Nov 1, 2023
  • Number of updates: 26
  • Update frequency: every 131.5 days
  • Top authors: Halloween Blog (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /4,684 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.85ms] Passed 4 tests

An overview of server-side resources used by Halloween Countdown
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.18 ▼7.98
Dashboard /wp-admin3.32 ▼0.0349.20 ▼17.92
Posts /wp-admin/edit.php3.37 ▲0.0150.48 ▲0.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.37 ▲5.77
Media Library /wp-admin/upload.php3.24 ▲0.0138.15 ▲1.65

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Halloween Countdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.25 ▲0.051.66 ▼0.4438.98 ▼7.94
Dashboard /wp-admin2,210 ▲335.61 ▲0.0685.25 ▼6.3552.75 ▲10.46
Posts /wp-admin/edit.php2,115 ▲152.03 ▲0.0139.33 ▲1.4650.19 ▲15.13
Add New Post /wp-admin/post-new.php1,538 ▲723.56 ▲0.58697.23 ▲69.2660.50 ▲7.31
Media Library /wp-admin/upload.php1,415 ▲184.25 ▲0.04102.51 ▲5.6552.81 ▲9.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: halloween, countdown

halloween-countdown/halloween-countdown.php 85% from 13 tests

"Halloween Countdown" version 2024...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "2024...")
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin