90% dynamic-year-block

Code Review | Dynamic Year Block – display a copyright notice in your footer with the current year

WordPress plugin Dynamic Year Block – display a copyright notice in your footer with the current year scored90%from 54 tests.

About plugin

  • Plugin page: dynamic-year-block
  • Plugin version: 0.6.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Oct 20, 2023
  • Number of updates: 41
  • Update frequency: every 11.6 days
  • Top authors: pagelab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.93ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Year Block – display a copyright notice in your footer with the current year
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.80 ▲0.84
Dashboard /wp-admin3.33 ▼0.0143.04 ▼20.33
Posts /wp-admin/edit.php3.39 ▲0.0343.76 ▼9.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.32 ▼11.03
Media Library /wp-admin/upload.php3.26 ▲0.0334.70 ▲2.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Dynamic Year Block – display a copyright notice in your footer with the current year
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.25 ▼0.201.66 ▲0.0738.49 ▼2.01
Dashboard /wp-admin2,192 ▲125.71 ▲0.0384.40 ▼0.8336.29 ▼2.87
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0238.74 ▲3.0035.88 ▼0.15
Add New Post /wp-admin/post-new.php1,535 ▼223.05 ▲4.76686.67 ▲57.3057.22 ▼10.15
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.03101.38 ▲6.0543.38 ▼0.40

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: year, dynamic, block, date, copyright...

dynamic-year-block/dynamic-year-block.php Passed 13 tests

The main PHP file in "Dynamic Year Block – display a copyright notice in your footer with the current year" ver. 0.6.2 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
A block that always displays the current year in your copyright footer notice.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin488 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14088212
JSON20087
PO File1303985
PHP2205267
Markdown115037

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin