83% et-current-year-month-copyright-shortcode

Code Review | Current Year, Month & Copyright Shortcode

WordPress plugin Current Year, Month & Copyright Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: et-current-year-m...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Jan 25, 2021
  • Latest release: Jan 27, 2021
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: easytoolbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.57ms] Passed 4 tests

A check of server-side resources used by Current Year, Month & Copyright Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.57 ▲1.35
Dashboard /wp-admin3.39 ▲0.0842.94 ▼8.38
Posts /wp-admin/edit.php3.50 ▲0.1449.10 ▼3.72
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.80 ▲0.48
Media Library /wp-admin/upload.php3.31 ▲0.0836.61 ▲1.91

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
et_current_year_month_installed
widget_recent-posts
et_current_year_month_version
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Current Year, Month & Copyright Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.47 ▼0.281.69 ▼0.0141.16 ▼0.46
Dashboard /wp-admin2,222 ▲315.86 ▼0.04109.44 ▲2.0045.32 ▲0.10
Posts /wp-admin/edit.php2,108 ▲192.03 ▲0.0440.22 ▼1.3735.38 ▼2.42
Add New Post /wp-admin/post-new.php1,546 ▲1823.33 ▲5.24597.31 ▼38.9856.98 ▲5.19
Media Library /wp-admin/upload.php1,401 ▲104.29 ▲0.0993.77 ▼11.8742.85 ▼0.90

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
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • et_current_year_month_installed
    • et_current_year_month_version
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/et-current-year-month-copyright-shortcode/includes/Backend/Views/settings.php:2

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: The official readme.txt might help

et-current-year-month-copyright-shortcode/et-current-year-month-copyright-shortcode.php 77% from 13 tests

This is the main PHP file of "Current Year, Month & Copyright Shortcode" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected885 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP17257276779
CSS13011101
JSON1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.73
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods61
▷ Static methods1422.95%
▷ Public methods5996.72%
▷ Protected methods00.00%
▷ Private methods23.28%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/easy-toolbox-logo-100x100-v2.png3.72KB2.21KB▼ 40.57%