83% show-date-for-holidays-name

Code Review | Show Full Date for a Day's Name

WordPress plugin Show Full Date for a Day's Name scored83%from 54 tests.

About plugin

  • Plugin page: show-date-for-hol...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Jul 13, 2021
  • Number of updates: 6
  • Update frequency: every 263.5 days
  • Top authors: fishbytes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 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.00MB] [CPU: ▼3.16ms] Passed 4 tests

Server-side resources used by Show Full Date for a Day's Name
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.88 ▼4.56
Dashboard /wp-admin3.31 ▲0.0053.51 ▼1.16
Posts /wp-admin/edit.php3.36 ▲0.0050.07 ▼4.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.11 ▼2.09
Media Library /wp-admin/upload.php3.23 ▲0.0038.52 ▲1.35

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Show Full Date for a Day's Name
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.182.07 ▲0.4242.59 ▼5.22
Dashboard /wp-admin2,189 ▲155.62 ▲0.0888.98 ▼7.8639.13 ▼1.92
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0338.62 ▼3.1036.70 ▲1.52
Add New Post /wp-admin/post-new.php1,538 ▲1223.18 ▼0.09652.32 ▼35.4959.11 ▲7.83
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.01101.22 ▼9.0846.09 ▼0.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/show-date-for-holidays-name/showdatefordaysname.php:161

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === show-date-for-holidays-name === )
Please take inspiration from this readme.txt

show-date-for-holidays-name/showdatefordaysname.php 85% from 13 tests

The main file in "Show Full Date for a Day's Name" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("show-date-for-holidays-name.php" instead of "showdatefordaysname.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

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
Success! There were no dangerous files found in this plugin145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1512145

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin