84% copyright-footer

Code Review | Copyright Footer

WordPress plugin Copyright Footer scored84%from 54 tests.

About plugin

  • Plugin page: copyright-footer
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2023
  • Latest release: Sep 30, 2023
  • Number of updates: 3
  • Update frequency: every 39.7 days
  • Top authors: bahia0019 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Copyright Footer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.45 ▼5.15
Dashboard /wp-admin3.32 ▲0.0144.98 ▼6.03
Posts /wp-admin/edit.php3.37 ▲0.0144.46 ▲1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.40 ▼7.80
Media Library /wp-admin/upload.php3.24 ▲0.0130.57 ▼2.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Copyright Footer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4613.20 ▼1.171.87 ▼0.3844.21 ▼1.65
Dashboard /wp-admin2,206 ▲184.90 ▼0.01117.88 ▲2.5050.84 ▲6.61
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0034.67 ▼2.0832.61 ▼4.06
Add New Post /wp-admin/post-new.php6,186 ▲4,64919.61 ▼3.64880.47 ▲209.4566.39 ▲19.78
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0296.52 ▼4.0541.44 ▼2.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copyright-footer/copyright-footer.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
2 plugin tags: copyright, footer

copyright-footer/copyright-footer.php Passed 13 tests

The entry point to "Copyright Footer" version 1.0.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
Adds a footer with a Copyright date that updates every year automatically, with some additional options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin54 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112230
JSON10019
CSS2002
Markdown1002
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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