84% copyright-autoupdater

Code Review | Copyright Autoupdater

WordPress plugin Copyright Autoupdater scored84%from 54 tests.

About plugin

  • Plugin page: copyright-autoupd...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Jan 3, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: morganestes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,175 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Copyright Autoupdater
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.32 ▼17.02
Dashboard /wp-admin3.32 ▲0.0250.45 ▼0.84
Posts /wp-admin/edit.php3.37 ▲0.0152.62 ▼0.85
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.47 ▼8.11
Media Library /wp-admin/upload.php3.24 ▲0.0142.46 ▲8.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Copyright Autoupdater
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.181.88 ▲0.2542.87 ▼4.13
Dashboard /wp-admin2,195 ▲215.63 ▲0.0996.86 ▼1.7341.85 ▼3.42
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0339.39 ▲2.0835.73 ▼3.64
Add New Post /wp-admin/post-new.php1,527 ▼223.06 ▼0.05670.83 ▼16.3253.60 ▼1.05
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0396.57 ▼7.2544.32 ▼3.63

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 did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Copyright_Autoupdater\\add_action() in wp-content/plugins/copyright-autoupdater/copyright-autoupdater.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: shortcode, copyright, template-tags

copyright-autoupdater/copyright-autoupdater.php 92% from 13 tests

The entry point to "Copyright Autoupdater" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin59 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3187159

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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
Namespaces3
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%
Functions5
▷ Named functions5100.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 were not PNG files found in your plugin