89% fancy-date-stamp

Code Review | Fancy Date Stamp

WordPress plugin Fancy Date Stamp scored89%from 54 tests.

About plugin

  • Plugin page: fancy-date-stamp
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Apr 16, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: markcoker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.78ms] Passed 4 tests

An overview of server-side resources used by Fancy Date Stamp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.22 ▼2.28
Dashboard /wp-admin3.32 ▲0.0146.28 ▼3.63
Posts /wp-admin/edit.php3.37 ▲0.0147.78 ▼2.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.91 ▼6.81
Media Library /wp-admin/upload.php3.24 ▲0.0135.77 ▲1.01

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

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

Browser metrics Passed 4 tests

Fancy Date Stamp: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.82 ▲0.141.91 ▼0.0444.32 ▼4.99
Dashboard /wp-admin2,206 ▲185.82 ▲0.92101.34 ▼14.3638.29 ▼6.37
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0139.15 ▲3.1934.92 ▲1.62
Add New Post /wp-admin/post-new.php1,514 ▼2817.65 ▼0.89627.23 ▼46.9758.15 ▲0.46
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0497.15 ▼2.5240.83 ▼4.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === fancy-date-stamp === )
You can look at the official readme.txt

fancy-date-stamp/Fancy Date Stamp.php 92% from 13 tests

The entry point to "Fancy Date Stamp" version 0.3 is a PHP file that has certain tags in its header comment area
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 ("fancy-date-stamp.php" instead of "Fancy Date Stamp.php")

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

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions5
▷ Named functions5100.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 are no PNG files in this plugin