83% auto-copyright-year-updater

Code Review | Auto Copyright Year Updater

WordPress plugin Auto Copyright Year Updater scored83%from 54 tests.

About plugin

  • Plugin page: auto-copyright-ye...
  • Plugin version: 1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2018
  • Latest release: Mar 7, 2023
  • Number of updates: 7
  • Update frequency: every 245.4 days
  • Top authors: ramielhabashy (71.43%)afazza (42.86%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /5,260 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Auto Copyright Year Updater
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.50 ▼1.15
Dashboard /wp-admin3.31 ▼0.0448.41 ▼6.31
Posts /wp-admin/edit.php3.36 ▲0.0045.63 ▼1.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.18 ▼8.12
Media Library /wp-admin/upload.php3.24 ▲0.0033.48 ▼0.69

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Copyright Year Updater
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3914.35 ▼0.001.96 ▼0.0341.45 ▼10.91
Dashboard /wp-admin2,198 ▲185.63 ▼0.0286.88 ▼0.8043.20 ▲0.74
Posts /wp-admin/edit.php2,097 ▼02.02 ▲0.0034.22 ▼3.3835.54 ▲0.77
Add New Post /wp-admin/post-new.php1,536 ▲823.19 ▲0.17659.92 ▼22.0356.62 ▼1.11
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.0493.23 ▼21.6041.92 ▼3.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
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 add_shortcode() in wp-content/plugins/auto-copyright-year-updater/auto_copyright_year_updater.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === auto-copyright-year-updater === )
  • Screenshots: These screenshots require images: #1 (Usage of shortcode in Post/Page Editor), #2 (Output of shortcode on front-end)
The official readme.txt might help

auto-copyright-year-updater/auto_copyright_year_updater.php 92% from 13 tests

"Auto Copyright Year Updater" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-copyright-year-updater.php" instead of "auto_copyright_year_updater.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1113311

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin