89% current-year-shortcode

Code Review | Current Year, Symbols and IP Shortcode

WordPress plugin Current Year, Symbols and IP Shortcode scored89%from 54 tests.

About plugin

  • Plugin page: current-year-shor...
  • Plugin version: 2.3.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.4
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Nov 19, 2023
  • Number of updates: 77
  • Update frequency: every 27.2 days
  • Top authors: kgmservizi (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

9,000+ active /70,648 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.03MB] [CPU: ▼7.13ms] Passed 4 tests

Server-side resources used by Current Year, Symbols and IP Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.32 ▼0.44
Dashboard /wp-admin3.34 ▼0.0044.84 ▼13.43
Posts /wp-admin/edit.php3.40 ▲0.0447.20 ▲3.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.75 ▼15.61
Media Library /wp-admin/upload.php3.27 ▲0.0434.10 ▲0.98

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Current Year, Symbols and IP Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.13 ▼0.212.11 ▲0.4638.25 ▼5.17
Dashboard /wp-admin2,198 ▲215.60 ▲0.0189.84 ▼9.5143.75 ▲0.34
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0938.16 ▲0.8836.80 ▼2.17
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.12685.64 ▲93.0054.49 ▲5.80
Media Library /wp-admin/upload.php1,403 ▲64.26 ▲0.0597.21 ▼4.6541.08 ▼3.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
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
Everything seems fine, however this is by no means an exhaustive test

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

current-year-shortcode/year-kgm.php 92% from 13 tests

The main PHP file in "Current Year, Symbols and IP Shortcode" ver. 2.3.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("current-year-shortcode.php" instead of "year-kgm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected261 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP623128261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions14
▷ Named functions14100.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