90% automatic-copyright-year

Code Review | Automatic Copyright Year

WordPress plugin Automatic Copyright Year scored 90% from 54 tests.

About plugin

  • Plugin page: automatic-copyrig...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Jul 22, 2019
  • Number of updates: 11
  • Update frequency: every 134.0 days
  • Top authors: stubgo (72.73%)miinasikk (36.36%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10,000+ active / 26,820 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.01ms] Passed 4 tests

Analyzing server-side resources used by Automatic Copyright Year
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.78 ▼5.25
Dashboard /wp-admin3.31 ▲0.0044.87 ▼1.43
Posts /wp-admin/edit.php3.36 ▲0.0049.46 ▲5.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.74 ▼4.07
Media Library /wp-admin/upload.php3.23 ▲0.0032.25 ▼1.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Automatic Copyright Year
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.66 ▼0.738.61 ▲6.8739.29 ▼16.21
Dashboard /wp-admin2,209 ▲215.88 ▲0.83107.70 ▼10.5740.32 ▼6.66
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0739.16 ▲4.0036.09 ▲2.81
Add New Post /wp-admin/post-new.php1,542 ▲1923.00 ▼0.46668.13 ▼3.2060.27 ▲11.15
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0793.54 ▼11.1641.99 ▼5.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: shortcode, copyright year, copyright, widget, footer copyright

automatic-copyright-year/automatic-copyright-year.php Passed 13 tests

"Automatic Copyright Year" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
119 characters long description:
Replaces '<span>[wpsos_year]</span>' with the current year in widget texts and in the html element 'footer'

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162618
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin