10% auto-copyright-1

Code Review | Auto Copyright

WordPress plugin Auto Copyright scored 10% from 54 tests.

About plugin

  • Plugin page: auto-copyright-1
  • Plugin version: 14.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-4.1.0
  • WordPress version: 6.3.1
  • First release: Jan 25, 2009
  • Latest release: Jan 17, 2016
  • Number of updates: 50
  • Update frequency: every 51.0 days
  • Top authors: christopherross (98%)phillcoxon (4%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 22,048 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/auto-copyright-1/auto-copyright-1.php+109
    Methods with the same name as their class will not be constructors in a future version of PHP; thisismyurlAutoCopyrightWidget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼48.56ms] Passed 4 tests

An overview of server-side resources used by Auto Copyright
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.34 ▼34.67
Dashboard /wp-admin2.29 ▼1.0111.10 ▼36.26
Posts /wp-admin/edit.php2.29 ▼1.0610.86 ▼38.38
Add New Post /wp-admin/post-new.php2.29 ▼3.5912.37 ▼84.91
Media Library /wp-admin/upload.php2.29 ▼0.949.59 ▼28.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_thisismyurlautocopyrightwidget
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Auto Copyright: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.201.79 ▼0.1647.56 ▲3.00
Dashboard /wp-admin2,206 ▲354.88 ▼0.02111.48 ▼1.4142.03 ▲0.87
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0039.60 ▼2.8035.06 ▼0.09
Add New Post /wp-admin/post-new.php1,537 ▼018.20 ▼5.24598.14 ▼48.5656.75 ▲0.77
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0495.75 ▼2.4140.23 ▼2.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/auto-copyright-1/auto-copyright-1.php+114
    Undefined variable: control_ops
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_thisismyurlautocopyrightwidget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/auto-copyright-1/auto-copyright-1.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

auto-copyright-1/auto-copyright-1.php Passed 13 tests

Analyzing the main PHP file in "Auto Copyright" version 14.11
44 characters long description:
Automates the copyright notice for websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin90 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1492990

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
icon.png0.94KB0.79KB▼ 15.34%